I am having an error with Lazarus-IDE v3.2. Installed Lazarus from the HailuDepo using “Lazarus_bin” I have two things:
One the souce is not installed to “/boot/system/lib/lazarus/” as expected and the search cannot find it.
Second (I’m not sure if it’s realted to one or not). I attempted to “run” the defualt app that just opens with the ide and it won’t compile. This is the most basic of apps, just a form, no controls etc.
Also I installed the lazarus examples from Haiku Depo but can’t find where they are.
The error message looks as though it’s saying you need to install the libiconv_devel package so it can find and link with the libiconv library.
The examples should be installed in /boot/system/data/lazarus/examples as far as I can tell from a quick glance at the recipe file.
pkgman search libiconv_devel, or pkgman install devel:libiconv should work.
For HaikuDepot, notice that there is a setting somewhere on its menus (under Show most likely?) to make visible the development files (hidden by default, because regular users have no use for them).
OK, guys… we are very close here. I have one more issues. I found that after I checked “Show Source” I could indeed find the source that Larzus said was missing. But I am not able to install it.
The source packages from HaikuDepot do not work. Also, there would be no source files to include in the package because it’s a “bin” package(not built from source by Haikuports). Anything you need for the IDE itself should be included in the package already. Perhaps somewhere in /boot/system/data/lazarus.
I created the package, last time it still worked for me updating the package for CudaText, I’ll have another go at it today to see what’s happening, thanks for reporting.
EDIT, checked a clean install, indeed the first opening example doesn’t build, but I guess that’s because Lazarus/fpc expects the source to be an a rwitable place, grabbed one of the examples from the example package and copy’d it to the Desktop and it worked then (get an error on first run - seen that before and no idea how to fix that), but on the second run it was fine.
EDIT2: make sure you source points to: /boot/system/lib/fpc/3.2.2/src
EDIT3 I see where you got that /system/lib/lazarus thing now, maybe should look into that (doesn’t error the build for now, so not something prio), my current settings (with gdb installed it skips the intro screen also).
Thank you I have it all working now. I moved my examples folder from /system/data/lazarus/examples to /home/lazarus/examples. Maybe the recipie can be updated to install it there. If I can also sugest. The Examples install doesn’t say or do anything when done. So unless you already know where it is being installed it just kinda goes “Poof” Maybe an entry on the Haiku Depot entry can tell users where it is going to be located when done.
Installing in ~/* is a nogo in packaging, this has been for a long time (I cp the data for CudaText for this with a postinstall script).
About a message, I think only Texlive is using a message, but also with a postinstall script), not something a user would expect.
I could expand the DESCRIPTION for that package to include a message though, but seeing this is data belonging to lazarus a user should expect it to be in the current installed location.