Page 1 of 1

Building on Linux

Posted: Thu Dec 12, 2013 1:54 pm
by MaxV
Hello,
I'm trying to build on x86 32bit Linux, so I did:

Code: Select all

sudo apt-get update

sudo apt-get install make gcc g++ libX11-dev libXext-dev libXrender-dev libXft-dev libXinerama-dev libXv-dev libXcursor-dev libfreetype6-dev libgtk2.0-dev libpopt-dev libesd0-dev liblcms-dev

git clone --recursive https://github.com/runrev/livecode.git

cd livecode

MODE=release make development
Is this procedure correct?

Well, it seems to me that the Revolution.lnx binary in prebuilt/bin directory creates incorrect .cpp source files.
Those files contain missing or wrong variables like: pArg1, pArg2, pArg3, pArg4, pArg5
:shock:

What is the correct procedure to build Livecode?

Re: Building on Linux

Posted: Fri Dec 13, 2013 6:07 pm
by LCfraser
Hi again MaxV,

It is possible that the submodule pointers haven't been updated properly for the submodules in our GitHub repo. Try the following:

Code: Select all

cd prebuilt
git checkout develop
cd ../ide
git checkout develop
cd ../thirdparty
git checkout develop
And hopefully that will help.

Re: Building on Linux

Posted: Sat Dec 14, 2013 7:11 am
by monte
Hmm... is there an advantage to doing that over

Code: Select all

git submodule update
Submodules are such a headache though... I have no idea why submodule init and update is not automatic when you checkout the parent repo.

Re: Building on Linux

Posted: Sat Dec 14, 2013 12:24 pm
by LCfraser
The advantage is that it definitely checks out those branches on the submodules. I have a feeling that the develop and master branches of the main repo still point to the 6.1.x versions of the submodules (which won't work for 6.5.x). When I'm back in the office on Monday, I'll make sure everything is up-to-date; I can't see an obvious way to do it via GitHub.