Code::Blocks IDE in openSUSE 11.1编译和安装指南
Again, today I will try to build and install the Code::Blocks, an open source and free IDE for programming, in my own openSUSE 11.1 box…;-)
1. First, I need wxWidgets supported in my openSUSE 11.1 box. In a terminal console:
$ zypper search wxWidgets
I got some information about it as:
正在載入儲存庫資料…
正在讀取已安裝的套件…
S | 名稱 | 摘要 | 類型–+———————–+——————————————————-+———–
| wxWidgets | C++ framework for cross-platform development | 套件
| wxWidgets | C++ framework for cross-platform development | srcpackage
| wxWidgets-compat | WxWidgets Compatibility Package | 套件
| wxWidgets-debuginfo | Debug information for package wxWidgets | 套件
| wxWidgets-debugsource | Debug sources for package wxWidgets | 套件
| wxWidgets-devel | Include files and libraries for wxWidgets development | 套件
| wxWidgets-docs | WxWidgets html documentations | 套件
| wxWidgets-gl | OpenGL add-on for wxWidgets | 套件
| wxWidgets-gl-compat | OpenGL add-on for wxWidgets | 套件
| wxWidgets-lang | Languages for package wxWidgets | 套件
So, I decided to install some packages:
$ sudo zypper install wxWidgets wxWidgets-compat wxWidgets-devel wxWidgets-lang
System will automatically check your box and tells you about how many new packages would be installed.
Just type your passwoed and hit ‘y’ to go.
2. Get Code::Blocks source code via SVN. (Or you may want to check this page first):
$ svn checkout svn://svn.berlios.de/codeblocks/trunk svn-trunk/
This will try to checkout the latest Code::Blocks source code trunk to the directory called "./svn-trunk/"
Revision of my code that checked out is 5483.
3. Just read the file inside your truck directory called "BUILD", and now I can build and install it:
$ cd svn-trunk/
$ ./bootstrap
Output message is:
libtoolize: putting auxiliary files in `.’.
libtoolize: copying file `./ltmain.sh’
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])’ to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4′ to ACLOCAL_AMFLAGS in Makefile.am.
$ ./configure –enable-contrib
Output message is a little bit weird but seems fine to go on……
I checked the help page of ./configure but there is no "–enable-contrib" option……:
…
…
…
configure: WARNING: unrecognized options: –enable-contrib
*************************************************
* Code::Blocks source tree has been configured. *
*************************************************
You can now build Code::Blocks by issuing ‘make’.
When the build is complete, become root and install
it by issuing ‘make install’.
Finally, we can:
$ make
$ sudo make install
All good to install and play with it…;-)
Came from: http://weijoewang.blogspot.com/2009/03/codeblocks-ide-in-opensuse-111-build.html
Related posts:
- Debian Lenny编译wxWidgets与Code::Blocks SVN版
- Code::Blocks IDE: 手动安装和配置编译器指南
- 加法?减法:CodeLite or Code::Blocks just for another sourceinsight
- QT4+MinGW+Code::Blocks IDE集成
- Setting up Code::Blocks to work with SDL - 多媒体编程库
- 如何在Windows上安装Code Blocks 8.02官方发布版
- Debugging with Code::Blocks
- Code::Blocks Debug Shortcut and Example
- ProjectManager, Project and ProjectFile in Code::Blocks
- Code::Blocks编译skyeye步骤














