1. Install the basic compilation environment
$sudo Apt-get Install Build-essential
$sudo apt-get Install GDB
2. Install Codeblocks (ubuntu12.04 default comes with codeblocks10.05)
Search Codeblocks installation in Software Center
3. Installing wxwidgets
$sudo Apt-get Install libwxbase2.8
$sudo Apt-get Install Libwxbase2.8-dev
$sudo Apt-get Install libwxgtk2.8-0
$sudo Apt-get Install Libwxgtk2.8-dev
$sudo Apt-get Install libwxgtk2.8-dbg
$sudo Apt-get Install Wx-common
$sudo Apt-get Install Wx2.8-headers
$sudo Apt-get Install wx2.8-i18n
4. After installation, open Code::Blocks can be used directly.
5. New project: When you choose the storage path A small problem occurs:
Couldn ' t create the project directory ...:
Description created directory does not have permissions Ubuntu below is not superuser, so choose the current user's home directory to store the project.
(/home/xd/myproject (This MyProject folder is created by itself to give write permission to the project to be stored in this directory).
Install Codeblocks under Ubuntu