Fedora 11上编译安装CodeBlocks

By : cumthacker

In order to successfully compile Code::Blocks, the wxWidgets (wxGTK-2.8.0 or later) cross-platform UI library must be installed.
Visite http://www.wxwidgets.org/ to get wxGTK-2.8.10.tar.gz
Now begin to install wxGTK:
#tar zxf wxGTK-2.8.10.tar.gz
#cd wxGTK-2.8.10
#mkdir build_gtk2_shared_monolithic_unicode
#cd build_gtk2_shared_monolithic_unicode
#../configure --prefix=/opt/wx/2.8 --enable-xrc --enable-monolithic --enable-unicode
#make
#make install

Then, add /opt/wx/2.8/bin to the PATH
#export PATH=/usr/bin:/opt/wx/2.8/bin:$PATH

That's it. Now the linker will look in /opt/wx/2.8/lib for wx libraries and you will have a monolithic shared library unicode build.
To check that things are working, type:
#wx-config --prefix
#wx-config --libs
#which wx-config

OK,now let's begin to install codeblocks. The download page is http://www.codeblocks.org/downloads/7

Get the source from svn
#svn checkout http://svn.berlios.de/svnroot/repos/codeblocks/trunk /root/devel

Then, build the codeblocks:
#export ACLOCAL_FLAGS="-I `wx-config --prefix`/share/aclocal"
#cd /root/devel/trunk
#./bootstrap

Installing codeblocks:
#./configure
#make
#make install

That's it!

Uninstalling codeblocks:
#make uninstall

Recompiling codeblocks:
#make clean
#make distclean
#make clean-bin
#make clean-zipfiles
and then follow the above sequence for installing.

你可能感兴趣的:(Build,download,library,gtk,linker)