Table of Contents
• Building CodeLite - Linux
On this page (hide)
This page gives links to the available binary packages for CodeLite 10.0 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 https://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 official debian and ubuntu repositories supplied only the ancient CodeLite 6.1. However since ubuntu 16.04 (xenial) it has been updated to CodeLite 9.1 or later, and debian testing (stretch) has 10.0. 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_10.0-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 Properties. Then use Package > Force Version followed by Apply. You may wish also to use Package > Lock Version.
There are rpms available for fedora 25, and openSUSE 42.2 (leap):
First tell rpm about the CodeLite public key. As superuser do:
rpm --import https://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 https://repos.codelite.org/rpms-10.0/fedora/codelite-10.0-2.fc25.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 several types of 32 and 64 bit packages here: for debian jessie and the official stretch (testing); ubuntu xenial and for yakkety (for CodeLite 10.0unofficial); for the official xenial CodeLite, currently 9.1; for the official yakkety CodeLite, currently 9.2; for the official zesty CodeLite 10.0; for fedora 25; and for openSUSE 42.2. The unofficial ones 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 xenial or yakkety, 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/.