Page 1 of 1

compiling on modern linux distros (2019 version)

Posted: Thu Mar 07, 2019 3:37 am
by mwieder
In looking at the build instructions at https://github.com/livecode/livecode/bl ... d-linux.md I notice that they were last updated on 20 Feb 2018. Since that time Debian Wheezy was supported until of the end of May 2018. Is that really still the base system that the team uses to build from? Debian Jessie will be supported for another year, and Debian Stretch until June 2022.

Also, the libesd0-dev library was deprecated as of Unbuntu 18.04, and compilation succeeds without it, so it should probably be taken out of the requirements.

And a valid jdk (preferably OpenJDK) needs to be installed or else the compilation will fail with a "can't find jni.h" message.

Libpango is now an essential part of the build process, so should be added to the list of requirements.

Probably most importantly, gcc 6.2 and later (I'm currently on 7.3.0) now defaults to the "-enable-default-pie" option, so compilation will fail unless the compiler and linker default to "-fno-pie and -no-pie" respectively in the config.py file. Additionally, the CEF build fill fail unless the linux-settings.gypi file also specifies "-fPIC" as a compiler option.

Re: compiling on modern linux distros (2019 version)

Posted: Thu Mar 07, 2019 11:26 am
by bogs
I'm curious about a different aspect of this as well (thanks for the link btw, Mark) and that is this - If the build system is designed for base Debian, why isn't that the base supported distro as opposed to 'buntu ?

Re: compiling on modern linux distros (2019 version)

Posted: Tue Mar 12, 2019 11:02 pm
by mwieder
I'm not in a position to be able to answer that question, but I see that Ian submitted a pull request to fix the -no-pie problem. Unfortunately it can't be accepted until the team upgrades to a more modern version of gcc.

https://github.com/livecode/livecode/pull/6693

Re: compiling on modern linux distros (2019 version)

Posted: Thu Aug 08, 2019 9:37 pm
by mwieder
which branch is which now?

these branches are all active on the tree:
develop
develop-9.0
develop-9.5

If I build from the develop branch the build is tagged as 9.5-rc1.
Should I no longer submit PRs to the develop branch? What's it for now?
Is the develop-9.5 branch actually just for 9.5.0?
Is develop-9.5 only still existing until the crashing bugs can be resolved?

Re: compiling on modern linux distros (2019 version)

Posted: Thu Aug 08, 2019 9:40 pm
by bwmilby
Develop is always the latest. 9.5 will be for all point updates to 9.5 while also progressing toward 9.6 or whatever is next on develop.

Re: compiling on modern linux distros (2019 version)

Posted: Fri Aug 09, 2019 12:49 am
by mwieder
Hmmm

So I'll assume that bugfixes should be submitted against 9.5 (or 9.0 respectively) and other pull requests should be submitted against develop. Which sort of makes sense as long as someone takes care of the catherding.