forked from obfuscated/codeblocks_sf
build_ubuntu_22_4
bluehazzard edited this page Jun 12, 2022
·
2 revisions
WORK IN PROGRESS
This guide describes a step by step list to install codeblocks from source on a fresh ubuntu 22.04 installation.
We will use only the command line because it is the most usefull and versatile tool, plus 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 ">_" in it)
- type
sudo apt install gcc build-essential subversion libtool autotools-dev automake debhelper cdbs
. This will install compiler and build tools to compile codeblocks and build a package to install it. - 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 libgtk-3-dev libhunspell-dev libgamin-dev libboost-dev libboost-system-dev libbz2-dev
- Again enter your password and confirm everything with yes
- Open a terminal
- Go to your home directory by typing
cd ~
and hit enter - Create a directory for codeblocks with
mkdir codeblocks
and go into this directory withcd codeblocks
- 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 withcd codeblocks-code
- run
./bootstrap
- run
./configure --with-contrib-plugins=all
- run
make
- run
sudo make install
- run
sudo ldconfig
You can run codeblocks now by running codeblocks
in a command line window
- in the folder you run
sudo make install
you run nowsudo make uninstall
- Open a terminal
- Go to your home directory by typing
cd ~
and hit enter - Create a directory for codeblocks with
mkdir codeblocks
and go into this directory withcd codeblocks
- 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 withcd codeblocks-code
- run
./bootstrap
- create a debian package with
dpkg-buildpackage -us -uc