-
Notifications
You must be signed in to change notification settings - Fork 468
Building CodeLite on Linux
Eran Ifrah edited this page Dec 3, 2018
·
5 revisions
To build CodeLite on you computer you will need these packages:
- The gtk development package: often called libgtk2.0-dev or wxGTK-devel or similar
-
pkg-config
(which usually comes with the gtk dev package) - The
build-essential
package (or the relevant bit of it: g++, make etc) git
cmake
You can use the following command on Ubuntu:
sudo apt-get install
libgtk2.0-dev
pkg-config
build-essential
git
cmake
libsqlite3-dev
libssh-dev
libedit-dev
libhunspell-dev
libclang-6.0-dev
clang-format-6.0
xterm
liblldb-6.0-dev
First, you will need to build wxWidgets (the below example shows how to build wxWidgets against GTK2):
cd /home/eran/devl
git clone https://github.com/eranif/wxWidgets.git
cd /home/eran/devl/wxWidgets
git submodule init
git submodule update
mkdir build-release
cd build-release
../configure --disable-debug_flag
make -j8 && sudo make install
- If you wish to build for GTK3, change the configure line to include
--with-gtk=3
- Replace
/home/eran/
with your actual user name
Assuming you checked out your CodeLite sources into /home/eran/devl/codelite
:
cd /home/eran/devl/codelite
mkdir build-release
cd build-release
cmake -DCMAKE_BUILD_TYPE=Release .. -DCOPY_WX_LIBS=1
make -j8
sudo make install
That's it!
CodeLite uses CMake
for its build system. CMake
does not provide an uninstall
target.
However, you can use this command to uninstall CodeLite which was previously installed using
sudo make install
command:
cd /home/eran/devl/codelite/build-release
sudo xargs rm < install_manifest.txt