forked from obfuscated/codeblocks_sf
-
Notifications
You must be signed in to change notification settings - Fork 3
build_linux_mint_18
bluehazzard edited this page Feb 20, 2018
·
15 revisions
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.
First we need a compiler and some other tools to build codeblocks.
- Open a terminal (iiiek terminal) window by clicking on the terminal symbol (at the bottom the black symbol with ">_" init)
- type
sudo apt install gcc build-essential subversion libtool autotools-dev automake debhelper cdbs. This will install compiler and build tools to compile codeblocks - 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
- Open a terminal
- type
sudo apt install libwxgtk3.0-dev - Again enter your password and confirm everything with yes
We need additional libraries for many plugins:
- Open a terminal
- type
sudo apt install libgtk2.0-dev libhunspell-dev libgamin-dev libboost-dev libboost-system-dev libbz2-dev
- Open a terminal
- Go to your home directory by typing
cd ~and hit enter - Create a directory for codeblocks with
mkdir codeblocksand go into this directory withcd codeblocks - Download the latest source code with
svn checkout https://svn.code.sf.net/p/codeblocks/code/trunk codeblocks-codeand change the directory to it withcd codeblocks-code - run
./bootstrap - create a debian package with
dpkg-buildpackage -us -uc
- Open a terminal
- Go to your home directory by typing
cd ~and hit enter - Create a directory for codeblocks with
mkdir codeblocksand go into this directory withcd codeblocks - Download the latest source code with
svn checkout https://svn.code.sf.net/p/codeblocks/code/trunk codeblocks-codeand change the directory to it withcd codeblocks-code - run
./bootstrap - run
./configure --with-contrib=all - run
make - run
sudo make install - run
sudo ldconfig
- in the folder you run
sudo make installyou run nowsudo make uninstall
##Building wxWidgets
- create a folder with the name wxWidgets
- download the wx30 release code with
wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.0.3/wxWidgets-3.0.3.tar.bz2 - extract it with
tar -x -f wxWidgets-3.0.3.tar.bz2 - Go into the extracted direcotry:
cd wxWidgets-3.0.3 - Configure wxWidgets
./configure --enable-unicode --enable-monolithic --enable-debug --enable-shared - build it with
make - Install it with
make install