compiling on modern linux distros (2019 version)
Posted: Thu Mar 07, 2019 3:37 am
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.
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.