Installing Code::Blocks from source on FreeBSD

From CodeBlocks
Revision as of 21:22, 11 April 2006 by Sethjackson (Talk | contribs)

Jump to: navigation, search

Install from Source Package

At first we need to install gnu-make:

 pkg_add -r gmake

then wx-gtk:

 pkg_add -r wxgtk2-contrib

then dosunix wich converts files from dos to unix format:

 pkg_add -r dosunix

then zip wich is used by the update script:

 pkg_add -r zip

now download and extract codeblocks:

 tar xzf codeblocks-1.0-finalbeta.tar.gz
 cd codeblocks-1.0-RC1-1/src

now make it:

 gmake -f Makefile.unix
 dosunix update update.unix
 chmod +x update.unix

now run upated.unix:


now execute:

 cd output

To build codeblocks-1.0rc2, you should use the method belown with the Autotools.

Install from CVS

First, you have to install the following Ports:

 gnu-autoconf-2.59   Automatically configure source code on many Un*x platforms 
 gnu-automake-1.9.6  GNU Standards-compliant Makefile generator (GNU unmodified)
 gnu-libtool-1.5.18  Generic shared library support script (GNU unmodified)

now you have to copy the m4 files from /usr/X11R6/share/aclocal/ to /usr/local/gnu-autotools/share/aclocal/

 cp -R /usr/X11R6/share/aclocal/ /usr/local/gnu-autotools/share/

Getting the latest sources from CVS

For the following to work, you need to have the cvs command line client installed on your system. First you need to login to the CVS server:

 cvs -d :pserver:[email protected]:/cvsroot/codeblocks login

When asked for a password, press enter. Now, just checkout (i.e. download) the sources from the repository:

 cvs -d :pserver:[email protected]:/cvsroot/codeblocks co codeblocks

This will create the directory codeblocks. Change to the codeblocks directory and build it, by issuing the following commands:

 cd codeblocks
 export PATH=/usr/local/gnu-autotools/bin:$PATH
 make install