How to install CodeBlocks on Ubuntu 18.04?

codeblocks-splash

In Linux we have enough tools with which we can support ourselves for application development and programming, in many of them you can obtain great results for your projects so this time we are going to focus on one of them.

That is why, if you have the need for programs in C, C ++ and Fortran and you haven't found the right tool, we can recommend you the CodeBlocks IDE which is an excellent integrated development environment for these languages.

About CodeBlocks

For those who do not know CodeBlocks yet, we can tell you a little about it. This is an open source development environment licensed under the GNU General Public License which It has support for multiple compilers, among which we can find MinGW / GCC, Digital Mars, Microsoft Visual C ++, Borland C ++, LLVM Clang, Watcom, LCC and Intel C ++ Compiler.

CodeBlocks is developed in the C ++ programming language using wxWidgets as the GUI toolkit.

Using a plugin architecture, its capabilities and features are defined by the plugins provided, is oriented towards C, C ++. It has a custom build system and optional build support.

Code Blocks is available for Windows, Linux, and macOS and has been ported to FreeBSD, OpenBSD, and Solaris.

This IDE is designed to be very extensible and fully configurable, you can extend the use of plugins.

Although the IDE has been designed for the C ++ language, it has support for compiling into other languages, including GNU Fortran, Digital Mars D, and GNU GDC.

CodeBlocks features

Among the main characteristics that we can highlight of this program we can find:

  • Workspaces to combine multiple projects.
  • Adaptive workspace
  • Project browser; view of files, symbols (inherited, etc.), classes, resources.
  • Tabbed editor, multiple files.
  • Things to do
  • Syntax coloring
  • Code autocompletion.
  • Drop-down list.
  • Advanced searches for strings within files: current, open, project, workspace, in folders).
  • Support for compilation in parallel (using multiple processors / cores).
  • Dependencies between projects within the workspace.
  • Projects with multiple objectives (multi-target).
  • Statistics and code summary (code profiler).

Installing CodeBlocks on Ubuntu 18.04 and derivatives

If you want to install this development environment on your system you must follow the following instructions.

The first thing we must do is open a terminal with Ctrl + T + Alt and we are going to run the following commands.

Let add this repository to our system with:

sudo add-apt-repository ppa:damien-moore/codeblocks-stable

Done this we are going to update our list of repositories with:

sudo apt update

Y we finally installed with:

sudo apt install codeblocks codeblocks-contrib

The method works, but since the repository does not have support for Ubuntu 18.04, someone may have problems with the installation, so we have another method to install CodeBlocks on our system.

codeblocks

Installing CodeBlocks on Ubuntu 18.04 from .deb file

To install it from the deb package we must go to the following link where we must download the application according to our architecture along with all its dependencies.

Done the download only we install the newly downloaded packages with our application manager or from the terminal with the following command:

sudo dpkg -i codeblock*.deb

sudo dpkg -i libcodeblocks0*.deb

sudo dpkg -i wxsmith*.deb

And ready with it, we will already have CodeBlocks installed in our system.

Once the installation is done, you can start using CodeBlocks on your system, you can search for the application in your application menu to run it.

The first time you run CodeBlocks the program will ask you if you want to use the default compiler We click ok and almost immediately we will be inside the main interface of the program which we can start using.

How to uninstall CodeBlocks on Ubuntu and derivatives?

If you want to remove this application from your system You simply have to open a terminal with Ctrl + Alt + T and execute the following commands.

If you installed from repository you must type this command:

sudo add-apt-repository ppa:damien-moore/codeblocks-stable -r -y

Finally we type this command to remove the application from our system:

sudo apt-get remove codeblocks --auto-remove

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.   Eugenio Fernandez Carrasco said

    For my taste the best IDE I have used