That's rather disturbing. I distribute my app as pre-made binaries and have not had any reports of such 'niggles'. Could you be more specific?
lets start with the glibc2.34 issue that means not even the lazarus 4.0 IDE can run on many linux machines out in the wild:
https://forum.lazarus.freepascal.org/index.php/topic,71050.msg553991.html#msg553991the cure, in that case, is running
sudo make bigide from within the 4.0.0 directory.
then there is talk of GTK2 being removed from distros:
https://forum.lazarus.freepascal.org/index.php/topic,72724.msg570777.html#msg570777in which case Lazarus GUI applications will need to be made runnable under both GTK2 and GTK3 - a task that i can see as being only practical by doing the actual ELF binary build on the end user's computer.
and not to forget the
instance by many of our most active forum members that Lazarus (in the context of Linux) is strictly "write once, compile anywhere", NOT "compile once, run [under Linux] anywhere",
https://forum.lazarus.freepascal.org/index.php/topic,67629.msg521013.html#msg521013this philosophy stated by MarkMLl in the above link, but repeated by many others in numerous forum postings. any discussions on the subject invariably end up with those "most active forum members" insisting that, for any Lazarus application that is going to be used on Linux, the end user
must download the full Lazarus and FPC packages and then compile the application they want to use from source.
these are all issues (particularly regarding GLIBC) that i have been prattling on about for years, with nearly zero traction achieved. Michael Van Canneyt even took an interest a few yeas back, by as far as i can tell got nowhere with the other core developers. as far as i can determine, the only way forward is creating a 'lightweight' build environment as outlined in the link posted by
Scoops in
reply #5. the question is - how lightweight can we get?
I'd think a deb source package might be a better approach. In that package you can specify the build process dependencies, ie FPC and Lazarus. Maybe you could also provide a bash script that looks at the deb source package, installs the dependencies, builds the app and then, still using apt or rpm (etc) removes the headline dependencies. But honestly, I really don't think this should be necessary.
pulling in 220mb of dependencies just to
build a single 4mb ELF binary is ridiculous. it is almost as insane as creating a SNAP package. surely we can do better than this?! or should we be using a different language?
cheers,
rob :-)