tomboy-ng icon indicating copy to clipboard operation
tomboy-ng copied to clipboard

compile problem in lazarus 4

Open onionmixer opened this issue 11 months ago • 4 comments

  1. ubuntu 22.04
  2. lazarus 4.0
  3. FPC 3.2.2
  4. lazarus ide qt5
  5. using libqt5pas-dev_2.16-4_amd64.deb and libqt5pas1_2.16-4_amd64.deb

load project and compile then encounterd this error.

==code : savenote.pas==

    case Level of
        BulletOne   : iLevel := 1;
        BulletTwo   : iLevel := 2;
        BulletThree : iLevel := 3;
        BulletFour  : iLevel := 4;
        BulletFive  : iLevel := 5;
        BulletSix   : iLevel := 6;
        BulletSeven : iLevel := 7;
        BulletEight : iLevel := 8;
        otherwise iLevel := 8;
    end;     
    

==error msg==

Compile Project, Mode: Default, Target: /mnt/USERS/onion/DATA_ORIGN/Workspace/tomboy-ng/tomboy-ng/source/tomboy-ng: Exit code 1, Errors: 23 savenote.pas(492,13) Error: Identifier not found "BulletOne" savenote.pas(492,25) Error: Constant Expression expected savenote.pas(493,13) Error: Identifier not found "BulletTwo" savenote.pas(493,25) Error: Constant Expression expected savenote.pas(493,25) Error: duplicate case label savenote.pas(494,13) Error: Identifier not found "BulletThree" savenote.pas(494,25) Error: Constant Expression expected savenote.pas(494,25) Error: duplicate case label savenote.pas(495,13) Error: Identifier not found "BulletFour" savenote.pas(495,25) Error: Constant Expression expected savenote.pas(495,25) Error: duplicate case label savenote.pas(496,13) Error: Identifier not found "BulletFive" savenote.pas(496,25) Error: Constant Expression expected savenote.pas(496,25) Error: duplicate case label savenote.pas(497,13) Error: Identifier not found "BulletSix" savenote.pas(497,25) Error: Constant Expression expected savenote.pas(497,25) Error: duplicate case label savenote.pas(498,13) Error: Identifier not found "BulletSeven" savenote.pas(498,25) Error: Constant Expression expected savenote.pas(498,25) Error: duplicate case label savenote.pas(499,13) Error: Identifier not found "BulletEight" savenote.pas(499,25) Error: Constant Expression expected savenote.pas(499,25) Error: duplicate case label

need changes code? or change compiler options? or.. wait a next version?

im ok. using deb package already. not hurry. but tomboy-ng is important to me. only report to you.

onionmixer avatar May 21 '25 07:05 onionmixer

onionmixer, sorry to catch you like that. I assume you are building using the KControls from Lazarus's Online Package Manager, OPM ? That has rather an old version of Kcontrols, I use the current one direct from https://github.com/kryslt/KControls

TK, KControls' author, very kindly added multilevel bullets to Kmemo (and a few other things) but that update has not made it into OPM, honestly, that's probably my fault, being the most active user of KControls in the FPC/Lazarus. But I use only KMemo and cannot guarantee all the other units in KControls are happy with Lzarus. Sigh...

If you are new to Lazarus, some breif instructions to install it into Lazarus IDE.

  • Remove the existing kcontrols package Menu->Packages->Install/Uninstall Packages.
  • Download, perhaps a zip, of KControls from above link.
  • Unzip into a suitable directory.
  • In Lazarus, Menu->Package->Open Package File (.lpk) and browse to your download and KControls-Master->Packages->KControls->kcontrolslaz.lpk
  • In the window that opens, look for a menu item like "install", i don't remember the exact syntax.

Lazarus will want to rebuild itself, few minutes and all will be good.

Please get back to me if you have a problem. Warning, I am currently traveling in some remote areas and network can be a bit flakey.

Davo

davidbannon avatar May 24 '25 11:05 davidbannon

Great! i can compile successfuly! (but need little work for libnotify-dev :D)

I have been a long-time user of Tomboy, ever since the days of the old GNOME 2. Tomboy’s markup, simple linking, and search features made it the perfect sticky note app for me. And you managed to recreate all of that in PASCAL, which I absolutely love. :D

The early LCL-gtk2 version of tomboy-ng wasn’t very good for me, because I’m a Korean user and LCL-gtk2 wasn’t very friendly with Korean input. However, everything changed with the arrival of LCL-QT5. In the past, I had to edit text in gedit and then copy and paste it into tomboy-ng... but now, I don’t have to do that anymore.

Now that tomboy-ng is available as a multi-platform application, I can confidently recommend your project to my friends. It’s all thanks to you. :D

P.S. This isn’t an important enough question to open a new issue, so I’m leaving it here. By any chance, do you have any plans to add integration with evolution-data-server on Linux as another sync method? This is the only thing I miss compared to the original Tomboy, although I understand it’s not really necessary for a multi-platform application like tomboy-ng.

P.S.2. I hope your journey is an enjoyable one. I hope my question didn’t spoil your trip. :D

onionmixer avatar May 26 '25 05:05 onionmixer

Good that you sorted it out onionmixer ! And thanks for keeping me informed. I was not aware that QT5 offered better (non-roman) text input, makes sense. I will make a note about that in case it helps someone else. gtk2 is way past its use by date anyway. I expect to be able to make a GTK3 version some time not too far away.

Korean ? If you would like to help with a translation, that would be really cool ! I don't have any non-roman languages supported.

Davo

davidbannon avatar May 28 '25 03:05 davidbannon

If this could help, because i install it on a fresh debian, you also need to install libnotify-dev sudo apt install libnotify-dev and of course what's said before :

  • Downloads Kcontrols from : https://github.com/kryslt/KControls Clic on "<>Code" and then on the green button select "Download zip"
  • Unzip into a suitable directory.-
  • Remove the existing kcontrols package Menu->Packages->Install/Uninstall Packages.
  • In Lazarus, Menu->Package->Open Package File (.lpk) and browse to your download and KControls-Master->Packages->lazarus->kcontrolslaz.lpk
  • In the window that opens, look for a menu item like "install", i don't remember the exact syntax. Just ignore all warnings

And here you are. EDIT : for nubs, because it could be helpfull git clone https://github.com/tomboy-notes/tomboy-ng go to the directory git pull git checkout v0.42

swingrock-dev avatar Sep 13 '25 15:09 swingrock-dev