Difference between revisions of "Installing Code::Blocks from source on FreeBSD"
m (edit categories) |
(outdated (RC1, CVS)) |
||
Line 1: | Line 1: | ||
[[Category:Installing Code::Blocks]] | [[Category:Installing Code::Blocks]] | ||
[[Category:Installing Code::Blocks from source]] | [[Category:Installing Code::Blocks from source]] | ||
+ | [[Category:Outdated]] | ||
+ | {{outdated}} | ||
+ | |||
== Install from Source Package == | == Install from Source Package == | ||
At first we need to install gnu-make: | At first we need to install gnu-make: |
Revision as of 19:32, 28 November 2006
You can help the Code::Blocks Wiki by updating the article.
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:
fetch http://mesh.dl.sourceforge.net/sourceforge/codeblocks/codeblocks-1.0-rc1-1.tar.gz 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:
./update.unix
now execute:
cd output ./run.sh
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:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks login
When asked for a password, press enter. Now, just checkout (i.e. download) the sources from the repository:
cvs -d :pserver:anonymous@cvs.sourceforge.net:/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 ./bootstrap ./configure make make install