Table of Contents
• Building CodeLite - Linux
On this page (hide)
This page gives links to the available binary packages for CodeLite 9.2 and its RAD plugin wxCrafter.
Note that the CodeLite packages now incorporate wx3.1 libraries, so there is no need to install wxWidgets too. Of course you can if you wish, and you'll need to do so to build apps against wxWidgets.
To download CodeLite for Debian based systems (Debian / Mint / Ubuntu etc):
sudo apt-key adv --fetch-keys http://repos.codelite.org/CodeLite.asc
For example, if you use Ubuntu xenial (16.04), either open
from Table 1, or else use
sudo apt-add-repository 'deb http://repos.codelite.org/ubuntu/ xenial universe'
Table 1: CodeLite repositories
sudo apt-get update
sudo apt-get install codelite wxcrafter
The ubuntu packages should also work on other *buntus, and on derivatives e.g. Mint.
For a long time the debian and ubuntu packages in the official CodeLite repositories have been the ancient 6.1 version. However the latest ubuntu release, 16.04 (xenial), has CodeLite 9.1, as does debian testing (stretch). This is very welcome, but creates a name-clash with any packages we supply. Therefore, starting with CodeLite 9.2, our debian packages have 'unofficial' added to the version e.g. codelite_9.2-1unofficial.xenial_amd64.deb. This allows you to select which to install using apt (or aptitude or synaptic).
You can see which versions are available by doing:
apt-cache madison codelite
Then you can select which version to install. For example, to prefer the official 9.1 package use the line:
sudo apt-get install codelite=9.1*
You can see which versions are available in the 'Versions' tab of Proporties. Then use Package > Force Version followed by Apply. You may wish also to use Package > Lock Version.
There are rpms available for fedora 24, and openSUSE 42.1 (leap):
First tell rpm about the CodeLite public key. As superuser do:
rpm --import http://repos.codelite.org/CodeLite.asc
Then either download the required rpm and install it as usual, or download and install in one step; e.g.
rpm -Uvh http://repos.codelite.org/rpms-9.2/fedora/codelite-9.2-1.fc24.x86_64.rpm
There are also source rpms for fedora and openSUSE. Note that these do not contain wxCrafter. To build binary rpms containing wxCrafter, you'll need to download the appropriate wxCrafter.so, plus the file wxgui.zip that contains its bitmaps, and put both in the rpmbuild/SOURCES dir before you build.
CodeLite is available on ArchLinux via their AUR repository
To install codelite:
yaourt -S codelite
See this page for links to packages from previous CodeLite and wxCrafter releases.
The above packages supply the CodeLite IDE. Also available is wxCrafter, its gui-designer plugin. There are five types of 32 and 64 bit packages here: for debian jessie; ubuntu xenial (for CodeLite 9.2unofficial); for the official xenial CodeLite, currently 9.1; for fedora 24; and for openSUSE 42.1. They will not work on earlier distro versions as they are built against wxWidgets-3.1 (though they might work if you build your own CodeLite against wx3.1...). Instead you can find older CodeLite/wxCrafter packages via the previous-releases pages.
If you are using ubuntu 16.04 (xenial), be careful to select the wxCrafter package that matches your CodeLite choice; official or unofficial. With the wrong combination wxCrafter will not load. Note also that the official wxCrafter debs are not in the repo; use the direct links below.
In the following table I've provided direct links to the debian/ubuntu packages but (except for the official ones) these are more easily installed from the CodeLite repos in the usual way.
Download and install them with alongside CodeLite (it will do no harm to install wxCrafter without CodeLite, but it won't run!).
What if you don't want to use a package, or there isn't one that your distro supports? If you want to build your own CodeLite (using wxWidgets 3.1), or are using the official xenial ones (which use wx3.0.2), here are the wxCrafter libs that the packages contain.
You will also need the file wxgui.zip that contains some of wxCrafter's bitmaps. This needs to end up inside the CodeLite 'share' installation (e.g. in /usr/share/codelite/). The wxCrafter.so itself needs to go in CodeLite's 'plugins' dir, which by default is probably /usr/lib/codelite/.