Skip to content

Compile and install codelite10 in centOS7

Kinjal Raykarmakar edited this page Jun 21, 2018 · 9 revisions

This article tells how to compile and install codelite 10 in cent-os 7 from source code. First of all, download the source of the codelite 10 and extract it anywhere. For instance, the source code is extracted into a folder named codelite-10.0. Before we start to compile, we need to install the dependencies:

sudo yum -y install gtk2-devel binutils-devel

These two are dependencies for wxWidgets. Now compile and install wxWidgets from source code downloaded from https://www.wxwidgets.org/. Extract the source code and enter into it, input command below:

./configure && make && sudo make install

This step could take a quite long time,and the wxWidgets whill be installed into /usr/local. Once this was done,we would start to install some other dependencies:

sudo yum install libssh

sudo yum install libssh-devel

Basically, if we have installed those necessary components including some other tools such as the compiler and clang etc, there would be no more issues that prevent us from compiling and installing the codelite. Let's enter codelite-10.0,and start to compile and install codelite:

cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCOPY_WX_LIBS=1 -DWITH_WXPATH=/usr/local

make -j4

make install

Pay attention to the cmake params:

-DCOPY_WX_LIBS=1 Incorporate the wxWidgets libs into CodeLite so the binary doesn't depend on them. the default is 0

-DWITH_WXPATH=<fullpath>,Specify a particular wxWidgets build to use. The format must be /path/to/different_wx-config/directory/

Just install it if any error happens which usually caused by the missed dependency during the cmake step. All we need is some patience to wait until all those works done!