ubuntu 16.04LTS 下CodeBlocks16.01版
阿新 • • 發佈:2019-02-04
1、安裝編譯環境,C庫、C++庫和Boost庫裝好
sudo apt-get install build-essential //有可能安裝 build-essential 後gdb就已經安裝過了
sudo apt-get install gdb
2、安裝Code::Blocks 16.01
首先登入Code::Blocks官方網站:http://www.codeblocks.org/,查詢PPA 。本文在安裝時Code::Blocks最新版本為16.01,PPA為:ppa:damien-moore/codeblocks-stable
-
sudo add-apt-repository ppa:damien-moore/codeblocks-stable
- sudo apt-get update
- sudo apt-get install codeblocks
- //將會同時安裝下列軟體:
- //codeblocks-common libcodeblocks0 libwxbase2.8-0 libwxgtk2.8-0
- //建議安裝:
- //libwxgtk2.8-dev | libwxgtk3.0-dev wx-common codeblocks-contrib
- sudo apt-get install codeblocks-dbg
- sudo apt-get install codeblocks-contrib
- //將會同時安裝下列軟體:
-
//cccc codeblocks-contrib-common codeblocks-libwxcontrib0 cppcheck cscope
- //gamin libgamin0 libtinyxml2-2v5 libwxsmithlib0 python-chardet
- //python-pkg-resources python-pygments valgrind
- 建議安裝:
- //cscope-el python-setuptools ttf-bitstream-vera valgrind-dbg kcachegrind
- //alleyoop valkyrie
- sudo apt-get install valgrind-dbg
- //Valgrind 用來探測記憶體洩露
3、安裝wxWidgets 圖形介面庫
-
sudo apt-get install libwxbase3.0
- sudo apt-get install libwxbase3.0-dev
- sudo apt-get install libwxgtk3.0-0
- sudo apt-get install libwxgtk3.0-dev
- sudo apt-get install wx-common
- sudo apt-get install wx3.0-headers
- sudo apt-get install wx3.0-i18n