下载wxGTK-2.8.11.tar.gz(http://www.wxwidgets.org/)
# tar -xvf wxGTK-2.8.11.tar.gz
# cd wxGTK-2.8.11
# mkdir buildgtk
# cd bildgtk
# apt-get install make
# apt-get install pkg-config
# apt-get install libgtk2.0-dev
# ../configure --with-gtk --enable-unicode
# make
# make install
# ldconfig (/etc/ld.so.conf)
可以通过以下操作的输出检查安装是否正确
# wx-config --prefix
# wx-config --libs
# which wx-config
下载codeblocks-10.05-1debian-src.tar.bz2(www.codeblocks.org)
# tar -xvf codeblocks-10.05-1debian-src.tar.bz2
# cd src
# tar -xvf codeblocks_10.05-1.tar.gz
# cd codeblocks-10.05
# apt-get install zip
# apt-get install libtool
# apt-get install autoconf
# ./bootstrap
注意!此时会出现aclocal:configure.in:61: warning: macro `AM_OPTIONS_WXCONFIG' not found in library
的错误,通过export ACLOCAL_FLAGS="-I `wx-config --prefix`/share/aclocal"即可解决。
# ./configure
# make
# make install