Skip to content

build_linux_mint_18

bluehazzard edited this page Feb 20, 2018 · 15 revisions

Installing Codeblocks from source on linux mint 18

This guide describes a step by step guide to install codeblocks from source on a fresh linux mint 18.3 installation.

We will use only the command line because it is the most usefull and versatile tool. And it is easy to use. If you never worked with the command line tool, please read this. It will make your work a lot easier.

Build codeblocks to a deb-package

Build environment

First we need a compiler and some other tools to build codeblocks.

  1. Open a terminal (iiiek terminal) window by clicking on the terminal symbol (at the bottom the black symbol with ">_" init)
  2. type sudo apt install gcc build-essential subversion libtool autotools-dev automake debhelper cdbs . This will install compiler and build tools to compile codeblocks
  3. Enter your admin password if asked and confirm any question with Y (or hit enter)

Codeblocks uses wxWidgets as window framework, so first step is to install wxWidgets

Installing wxWidgets

  1. Open a terminal
  2. type sudo apt install libwxgtk3.0-dev
  3. Again enter your password and confirm everything with yes

Install other needed libraries

We need additional libraries for many plugins:

  1. Open a terminal
  2. type sudo apt install libgtk2.0-dev libhunspell-dev libgamin-dev libboost-dev libboost-system-dev libbz2-dev

Building codeblocks to package

  1. Open a terminal
  2. Go to your home directory by typing cd ~ and hit enter
  3. Create a directory for codeblocks with mkdir codeblocks and go into this directory with cd codeblocks
  4. Download the latest source code with svn checkout https://svn.code.sf.net/p/codeblocks/code/trunk codeblocks-code and change the directory to it with cd codeblocks-code
  5. run ./bootstrap
  6. create a debian package with dpkg-buildpackage -us -uc

Installing the package

Uninstalling codeblocks

Building codeblocks with make and installing it

  1. Open a terminal
  2. Go to your home directory by typing cd ~ and hit enter
  3. Create a directory for codeblocks with mkdir codeblocks and go into this directory with cd codeblocks
  4. Download the latest source code with svn checkout https://svn.code.sf.net/p/codeblocks/code/trunk codeblocks-code and change the directory to it with cd codeblocks-code
  5. run ./bootstrap
  6. run ./configure --with-contrib=all
  7. run make
  8. run sudo make install
  9. run sudo ldconfig

Uninstall codeblocks after installing it with make

  1. in the folder you run sudo make installyou run now sudo make uninstall

##Building wxWidgets

  1. create a folder with the name wxWidgets
  2. download the wx30 release code with wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.0.3/wxWidgets-3.0.3.tar.bz2
  3. extract it with tar -x -f wxWidgets-3.0.3.tar.bz2
  4. Go into the extracted direcotry: cd wxWidgets-3.0.3
  5. Configure wxWidgets ./configure --enable-unicode --enable-monolithic --enable-debug --enable-shared
  6. build it with make
  7. Install it with make install

Building codeblocks with codeblocks for development and custom plugins

Clone this wiki locally