1 安装 wxGTK
1-1 安装
tar zxf wxGTK-2.8.x.tar.gz
cd wxGTK-2.8.x
mkdir build_gtk2_shared_monolithic_unicode
cd build_gtk2_shared_monolithic_unicode
../configure --prefix=/usr/local/wxGTK2.8.x \
--enable-xrc \
--enable-monolithic \
--enable-unicode
make
make install
1-2 配置
vim /etc/profile
(添加) export PATH=$PATH:/usr/local/wxGTK-2.8.x/bin
vim /etc/ld.so.conf
(添加) /usr/local/wxGTK-2.8.x/lib
ldconfig
source /etc/profile
2 安装 codeblocks
2-1 安装
tar xjvf codeblocks-10.x-src.tar.bz2
cd codeblocks-10.x-release/
./configure (如果报错 (wx-config), --with-wx-config=/path/to/wx-config)
make
make install
2-2 配置
vim /etc/ld.so.conf
(添加, 有则省略) /usr/local/lib
ldconfig
2-3 debug 配置
2-3-1 安装 gcc 和 gdb 或其他编译器
2-3-2 设置
Setting -> Compiler and debugger settings -> Toolchain executables
2-2 运行
/usr/local/codeblocks10.x/bin/codeblocks
3 参照
http://www.nguyenhongvu.com/2009/05/codeblocks-installation-in-centos.html
4. 快捷键
4-1. F2 隐藏 log 等调试框
4-2. 全屏显示
0 件のコメント:
コメントを投稿