compiling on modern linux distros (2019 version)

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, LCMark

Locked
mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

compiling on modern linux distros (2019 version)

Post by mwieder » 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.

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: compiling on modern linux distros (2019 version)

Post by bogs » Thu Mar 07, 2019 11:26 am

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 ?
Image

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: compiling on modern linux distros (2019 version)

Post by mwieder » Tue Mar 12, 2019 11:02 pm

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

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: compiling on modern linux distros (2019 version)

Post by mwieder » Thu Aug 08, 2019 9:37 pm

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?

bwmilby
Posts: 438
Joined: Wed Jun 07, 2017 5:37 am
Location: Henrico, VA
Contact:

Re: compiling on modern linux distros (2019 version)

Post by bwmilby » Thu Aug 08, 2019 9:40 pm

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.
Brian Milby

Script Tracker https://github.com/bwmilby/scriptTracker

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: compiling on modern linux distros (2019 version)

Post by mwieder » Fri Aug 09, 2019 12:49 am

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.

Locked

Return to “Engine Contributors”