Start with the Code::Blocks IDE:
http://codeblocks.org/
This is how to tame the Code::Blocks IDE for C/C++ programming in Ubuntu 6.06/6.10.
Install necessities
$ sudo apt-get install build-essential subversion
$ sudo apt-get install automake1.9 autoconf libtool
$ sudo apt-get install libgtk2.0-dev wx-common libwxgtk2.6-0 libwxgtk2.6-dev
$ sudo ldconfig
-------------
Download the latest version of Code::Blocks
$ mkdir $HOME/cb
$ cd $HOME/cb
$ svn checkout
http://svn.berlios.de/svnroot/repos/codeblocks/trunk
Prepare for it
$ cd trunk
Read instructions
$ cat BUILD
Configure source.
$ ./bootstrap
$ ./configure --enable-contrib
Compile it
$ make
Install it
$ sudo make install
----------------------------------------------
Run & test it
$ codeblocks
At first start, select
"GNU GCC compiler" from the list.
Where did it put it? In case you wanna create an icon for C::B?
$ which codeblocks
----------------------------
Note 1:
If you want to develope OpenGL (glut) applications, install FreeGlut first
$ sudo apt-get install freeglut3 freeglut3-dev
An important tip: Say:
/usr when it asks "Please, Select GLUT's location:" in the Code::Blocks' glut-wizard (project wizard).
Read also Note 2 below.
------------------------------
Note 2 !:
If you want to develope GLFW applications, install GLFW first (
http://glfw.sourceforge.net/ )
And fix a minor bug in Ubuntu 6.06 and 6.10.
During compilation of OpenGL , Glut and GLFW apps, the Code::Blocks will complain that it cannot find and link to "Xxf86vm" library.
Ubuntu has Xxf86vm, but it's not sym-linked properly. Does Ubuntu's dev-people have a reason for this bug ?
$ locate Xxf86vm
....
This command will fix the error.
$ sudo ln -s /usr/lib/libXxf86vm.so.1 /usr/lib/libXxf86vm.so
Enjoy.
Bookmarks