CodeLite, a good IDE to develop your codes in Ubuntu

about codelite

In the next article we are going to take a look at CodeLite. This is a free and cross-platform integrated development environment for the C / C ++ programming language even though it supports other languages ​​such as PHP and JavaScript. CodeLite can be downloaded for free, but if you wish you can make a symbolic donation when downloading it, to continue supporting the development of this IDE.

CodeLite is a IDE free and open source multiplatform for C / C ++ languages ​​it uses wxWidgets for its graphical interface. To comply with the open source spirit of CodeLite, it is compiled and debugged using only free tools (MinGW and GDB).

General features of CodeLite

This IDE for programming offers users a easy project management (workspaces / projects), code completion, navigation through source files, syntax highlighting, integration with Subversion, Cscope and UnitTest ++, an interactive debugger mounted on gdb and a powerful code editor, based on Scintilla.

Among its most notable features we have the system of code completion for all supported languages ​​in this IDE. It will also inform us of the errors we make in our lines of code as an annotation in the window in which you are working. It also uses XDebug, one of the most popular debuggers for PHP.

CodeLite development screen

This program provides us with a development environment so that programmers working with C and C ++ make the code creation process easier. This will increase productivity through multiple tabs, tools, and autocomplete functions for writing code. A series of characteristics in which this Cross-platform IDE open source. In the large number of tabs and side panels, there are many of the functions and tools that we will need during the development and writing process of our codes.

CodeLite is licensed under the GNU General Public License v2 or later.

Those who need it will be able to see the characteristics of this program more in depth in the project website.

Install CodeLite on Ubuntu

As usual, we will have different options to install this program in our Ubuntu.

Install from .deb file

The first option will be to download the .deb package from the project page, with which we will get the latest version of the program. Once we have it downloaded we can install it using the following command in the console (Ctrl + Alt + T):

sudo dpkg -i CodeLite-10.0.6-ubuntu-xenial-x86_64.deb

If it happens to you like me and after the installation the console warns you that errors have occurred During the installation, you can fix it like I did. I just had to force the installation using the following command:

sudo apt install -f

Install from PPA

We can install this program both in Ubuntu 16.04 and in its version 17.04 using its PPA. It must be clarified that if we install the program using this method, the penultimate version of it will be installed. If you are interested in installing it, for this we will write the following commands in the terminal (Ctrl + Alt + T):

sudo add-apt-repository ppa:eugenesan/ppa && sudo apt update && sudo apt install codelite -y

Install via git

Another option that we will have to install CodeLite will be to do it through its code git. To compile CodeLite on our computer, we will need the following packages that indicate us from the page of GitHub of the project:

  • wxWidgets 3.0 or later.
  • The GTK development package. It is often called libgtk2.0-dev, wxGTK-devel, or something similar.
  • pkg-config which usually comes with the GTK dev package.
  • The build-essential package or the corresponding bit: g ++, make, etc.
  • go.
  • cmake.

We must have wxWidgets 3.0 or later built into our machine. If someone does not know how to install it, they will be able to download install wxWidgets from the CodeLite repository.

On Ubuntu / Debian you can install all of the above by typing:

sudo apt install libgtk2.0-dev pkg-config build-essential git cmake libssh-dev libwxbase3.0-dev libsqlite3-dev libwxsqlite3-3.0-dev

Let's download the source code:

git clone https://github.com/eranif/codelite.git

Run cmake and compile CodeLite:

cd codelite
mkdir build-release
cd build-release
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
make -j4
sudo make install

Uninstall CodeLite

If you don't quite like this application, we will be able to get rid of it by means of a simple command in the terminal (Ctrl + Alt + T):

sudo apt remove codelite && sudo apt autoremove

2 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   tximistargi said

    Let's see, I have installed Lighttpd as a web server, with PHP 7.3, to develop and learn at home. It works fine, but I want to configure Xdebug in CodeLite and the wizard asks me to add a few lines by copying and pasting to the php.ini. The problem is that in /etc/php/7.3/ there are several subdirectories with as many php.ini, and I cannot find anywhere more precise instructions on which of those configuration files to add the lines in question.
    Specifically, there is a php.ini in the following subdirectories that hang from /etc/php/7.3/: apache2, cgi, cli, and fpm. In good logic it should be CGI, but how to be sure? ...

    1.    Damien A. said

      Hello. I would tell you to take a look at the Wiki of the project. Maybe there you will find a solution to your doubts. Salu2.