Recent

Author Topic: Cannot rebuild Lazarus after installing TreeListViewPackage [SOLVED]  (Read 704 times)

carl_caulkett

  • Sr. Member
  • ****
  • Posts: 412
* Mac Mini M1 (silicon)
* macOS 14.6.1
* Lazarus 3.4
* FPC 3.2.2

I'm trying to install the TTreeListView package from https://www.benibela.de/components_en.html#treelistview
I've loaded in the "treelistviewpackage.lpk"and I am able to compile the package successfully. However, if I choose to install the package, Lazarus starts to rebuild itself, but the process fails with an error in the file "EditorConverter"...

Code: Text  [Select][+][-]
  1. EditorConverter.pas(40,3) Error: Cannot find Converter used by EditorConverter,
  2. incompatible ppu=/Users/carlcaulkett/.lazarus/lib/jcfbase/lib/x86_64-darwin/Converter.ppu, multiple packages: jcfbase, jcfidelazarus
  3.  

Converter and EditorConverter are part of the "jcf2" package, apparently. I believe this is the JEDI Code Format package.

Does anyone know why my Lazarus will not rebuild?
« Last Edit: September 20, 2024, 01:52:11 am by carl_caulkett »
"It builds... ship it!"

carl_caulkett

  • Sr. Member
  • ****
  • Posts: 412
Re: Cannot rebuild Lazarus after installing TreeListViewPackage
« Reply #1 on: September 20, 2024, 01:24:28 am »
I then tried "Tools" => "BuildLazarus..." and that seemed to get much further than when I initiated it from the package install dialog. However, this rebuild eventually failed on the "DateTimePicker" component...
Code: Text  [Select][+][-]
  1. Warning: Recompiling DateTimePicker, checksum changed for /Applications/Lazarus/lcl/units/x86_64-darwin/lclintf.ppu
  2. datetimepicker.pas(85,12) Error: Can't find unit DateTimePicker used by DateTimeCtrls
  3.  

So basically, I cannot, at present, install the TreeListView package or rebuild Lazarus as a separate operation.

This is not good! Can anyone shed some light on what the problem could be?
"It builds... ship it!"

carl_caulkett

  • Sr. Member
  • ****
  • Posts: 412
Re: Cannot rebuild Lazarus after installing TreeListViewPackage
« Reply #2 on: September 20, 2024, 01:38:20 am »
I did a search and found this thread https://forum.lazarus.freepascal.org/index.php/topic,65829.0.html

I applied the commands...
Code: Bash  [Select][+][-]
  1. sudo chown -R youruser /Applications/Lazarus/
  2. sudo chgrp -R staff /Applications/Lazarus/
  3.  

And I was able to do a full rebuild on Lazarus. The only problem now is that Lazarus is displaying in light mode, and it's way too bright  :o
"It builds... ship it!"

carl_caulkett

  • Sr. Member
  • ****
  • Posts: 412
Re: Cannot rebuild Lazarus after installing TreeListViewPackage
« Reply #3 on: September 20, 2024, 01:51:46 am »
I managed to switch it back to dak mode by adding "-WM10.14" to the "Configure Build Lazarus..." options!

And best of all, following my "sudo chown" and "sudo chgrp" changes, I was able to install TTreeListView  :D
"It builds... ship it!"

PierceNg

  • Sr. Member
  • ****
  • Posts: 386
    • SamadhiWeb
Re: Cannot rebuild Lazarus after installing TreeListViewPackage [SOLVED]
« Reply #4 on: September 20, 2024, 03:44:47 am »
I usually build Lazarus from source in situ somewhere at $HOME. For macOS:

Code: Text  [Select][+][-]
  1. % cd ~/Applications
  2. % git clone --single-branch --branch lazarus_3_4 https://gitlab.com/freepascal.org/lazarus/lazarus Lazarus34
  3. % cd Lazarus34
  4. % make clean bigide

carl_caulkett

  • Sr. Member
  • ****
  • Posts: 412
Re: Cannot rebuild Lazarus after installing TreeListViewPackage [SOLVED]
« Reply #5 on: September 20, 2024, 03:00:16 pm »
I usually build Lazarus from source in situ somewhere at $HOME. For macOS:

Code: Text  [Select][+][-]
  1. % cd ~/Applications
  2. % git clone --single-branch --branch lazarus_3_4 https://gitlab.com/freepascal.org/lazarus/lazarus Lazarus34
  3. % cd Lazarus34
  4. % make clean bigide

Thanks! I'll bear that in mind!
"It builds... ship it!"

MarkMLl

  • Hero Member
  • *****
  • Posts: 7622
Re: Cannot rebuild Lazarus after installing TreeListViewPackage [SOLVED]
« Reply #6 on: September 20, 2024, 09:31:07 pm »
I usually build Lazarus from source in situ somewhere at $HOME. For macOS:

Code: Text  [Select][+][-]
  1. % cd ~/Applications
  2. % git clone --single-branch --branch lazarus_3_4 https://gitlab.com/freepascal.org/lazarus/lazarus Lazarus34
  3. % cd Lazarus34
  4. % make clean bigide

That's definitely a good starting point, but I think that it will ignore any non-default packages. A subsequent attempt to add a package from inside the IDE might or might not be successful, and doing it using lazbuild is... non-trivial.

After fairly extensive discussion in this forum I've got a bash (shell) script which will rebuild at least v2 of the IDE with various extra packages and dependencies ab initio. It's not tested on a Mac, but might still be a useful resource for working out the various lazbuild options and parameters.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

carl_caulkett

  • Sr. Member
  • ****
  • Posts: 412
Re: Cannot rebuild Lazarus after installing TreeListViewPackage [SOLVED]
« Reply #7 on: September 20, 2024, 10:01:36 pm »
That's definitely a good starting point, but I think that it will ignore any non-default packages. A subsequent attempt to add a package from inside the IDE might or might not be successful, and doing it using lazbuild is... non-trivial.

After fairly extensive discussion in this forum I've got a bash (shell) script which will rebuild at least v2 of the IDE with various extra packages and dependencies ab initio. It's not tested on a Mac, but might still be a useful resource for working out the various lazbuild options and parameters.

MarkMLl

I'd be interested in seeing that. After all macOS is basically FreeBSD with a fancy front-end. How different can it be?  ;)
"It builds... ship it!"

MarkMLl

  • Hero Member
  • *****
  • Posts: 7622
Re: Cannot rebuild Lazarus after installing TreeListViewPackage [SOLVED]
« Reply #8 on: September 20, 2024, 10:43:11 pm »
That's definitely a good starting point, but I think that it will ignore any non-default packages. A subsequent attempt to add a package from inside the IDE might or might not be successful, and doing it using lazbuild is... non-trivial.

After fairly extensive discussion in this forum I've got a bash (shell) script which will rebuild at least v2 of the IDE with various extra packages and dependencies ab initio. It's not tested on a Mac, but might still be a useful resource for working out the various lazbuild options and parameters.

MarkMLl

I'd be interested in seeing that. After all macOS is basically FreeBSD with a fancy front-end. How different can it be?  ;)

Attached. That's for v2 (but I don't think that the lazbuild options/parameters are going anywhere) and has an unfixed rough spot where a revision number has to be given in two places. It builds for both gtk2 and Qt, and adds the Lazmapviewer and Richmemo packages... there's some frills in there getting package and dependency syntax right.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

carl_caulkett

  • Sr. Member
  • ****
  • Posts: 412
Re: Cannot rebuild Lazarus after installing TreeListViewPackage [SOLVED]
« Reply #9 on: September 20, 2024, 11:52:58 pm »
Thanks! I'll check it out tomorrow  ;)
"It builds... ship it!"

PierceNg

  • Sr. Member
  • ****
  • Posts: 386
    • SamadhiWeb
Re: Cannot rebuild Lazarus after installing TreeListViewPackage [SOLVED]
« Reply #10 on: September 21, 2024, 01:46:36 am »
That's definitely a good starting point, but I think that it will ignore any non-default packages. A subsequent attempt to add a package from inside the IDE might or might not be successful, and doing it using lazbuild is... non-trivial.

Right after building Lazarus from source I rebuild from within the IDE to incorporate the anchordockingdsgn package. Haven't had an issue so far.

For lazbuild I have the following script, here for Linux named lazb34:

Code: Text  [Select][+][-]
  1. #!/bin/sh
  2. LAZB=$HOME/pkg/lazarus34/lazbuild
  3. if [ $# -eq 0 ]; then
  4.     $LAZB
  5.     exit 1
  6. fi
  7. exec $LAZB --pcp=$HOME/.lazarus34 --lazarusdir=$HOME/pkg/lazarus34 "$@"

I also have lazb20, lazb22, lazb30 etc for the various releases of Lazarus.

After fairly extensive discussion in this forum I've got a bash (shell) script which will rebuild at least v2 of the IDE with various extra packages and dependencies ab initio. It's not tested on a Mac, but might still be a useful resource for working out the various lazbuild options and parameters.

Nice!

TRon

  • Hero Member
  • *****
  • Posts: 3234
Re: Cannot rebuild Lazarus after installing TreeListViewPackage [SOLVED]
« Reply #11 on: September 21, 2024, 08:26:44 am »
Right after building Lazarus from source I rebuild from within the IDE to incorporate the anchordockingdsgn package. Haven't had an issue so far.
anchordockingdsgn is now part of the IDE itself and you can choose if you want to have it active (it is asked at the first startup dialog)
All software is open source (as long as you can read assembler)

 

TinyPortal © 2005-2018