Forum > Linux

Install Lazarus 3.0 on Ubuntu 24.04

(1/2) > >>

Just got a second Raspberry Pi5 and downloaded the released version of Ubuntu 24.04 Arm version from the Ubuntu site.

Had a quirky time installing Ubuntu, first try failed when I installed with adding a WiFi connection during the install.
Second try, no WiFi and it seemed to work. Some odd display issues while completing the install, but seemed to work. For the install I just the Raspberry Pie imager and selected the option to allow me to supply the image. Took a few minutes, but finally burned the memory stick, then dumped it into the RP5 and installed.

This is all I did to do the Lazarus install -

--- Code: Bash  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---sudo apt-get install lazarus
Changed the debugger to GDB instead of FPC's debugger which does not work on Arm so I have been told.

F9 to compile and it seemed to work. Not much more then testing with a simple form.

Lazarus doesn't show up in the SNAP package manager search as well as a lot of other stuff (Like Geany editor) but using the 'apt-get' seems to work just fine.

Easy for a change.

Well not quite so good news. In trying to install a new package into Lazarus, the IDE will not rebuild with it.

Error is something like can't fine Unit for Laz.virtualtree or the source. Going to play with it and see if a path issue, but out of the box on ARM Ubuntu 24.04 can't rebuild the IDE to add packages  :(


Try to install Lazarus manually to somewhere where you have enough access rights (no guarantee that suggestion works but seems to work for me). Do not use the default package from your package manager. see also #40701

The compile error is some fpc issue...

Compile the package in question with -Ur

But mind, if you make changes to that package, you need to force recompile it. -Ur will prevent recompilation triggered by source changes. But it will also (afaik) work around the issue at hand.

The package that need -Ur the the laz.virtualtreeview in this case.

I'll have to play with it and see if I can get it to work with the complier option change. Seems like something else in the build might be causing it, but don't know much about how it all works. Seems like a bad release on Ubuntu/Deb side for it to go out, but I guess automated testing can only catch so much.

I did add a note to one of the reports that it also happens on ARM Ubuntu so possibly someone will also look at it.

Thanks, will play and see what I can do.



[0] Message Index

[#] Next page

Go to full version