Page 1 of 1

Best way to install Codelite locally under Linux

Posted: Mon Mar 21, 2016 9:07 pm
by marmistrz
I'm doing a programming project at my university and I must say I really like Codelite.

But I don't have administrative rights in our lab, so I can't really install Codelite system wide, besides, they're using the PLD Linux distribution Codelite isn't packaged for.

What's my best bet for installing Codelite locally? Building from source?

Re: Best way to install Codelite locally under Linux

Posted: Tue Mar 22, 2016 2:53 pm
by DavidGH
Hi,
What's my best bet for installing Codelite locally? Building from source?
If PLD doesn't supply CodeLite rpms, and assuming that the fedora or openSUSE ones that we supply won't work on PLD (which they almost certainly won't), building from source is your only option.

Fortunately it's not hard. Make sure you have the dependencies installed, especially wx3.0.2 or later; if you didn't build wx yourself, make sure you have any wx development packages installed too. There will be other dependencies as well; for example the list of fedora dependencies is cmake, sqlite-devel, clang-devel, and optionally lldb-devel. You'll also need standard things like g++ and make, of course.

Download and unpack the CodeLite-9.1 source. Then in the source dir do:

Code: Select all

mkdir build-dir
cd build-dir
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DWITH_PCH=1 -DPREFIX=$(pwd)/../CL-install ..
make -j<n> && make install # where 'n' is your number of cpu cores
This will install CodeLite into <source-dir>/CL-install. You should be able to run it from there by doing:
/path/to/<source-dir>/CL-install/bin/codelite

Regards,

David