Difference between revisions of "Installing Code::Blocks from source on FreeBSD"

From Code::Blocks
Line 58: Line 58:
 
   cd codeblocks
 
   cd codeblocks
 
   ./bootstrap
 
   ./bootstrap
   ./configure --with-wx-config=wxgtk2u-2.8-config --with-contrib=all
+
   ./configure --with-wx-config=wxgtk2u-2.8-config --with-contrib-plugins=all
 
   make
 
   make
 
   su -
 
   su -

Revision as of 20:54, 7 January 2008

Prerequisites

wxWidgets

pkg_add -r wxgtk2-unicode

SVN client

pkg_add -r subversion

GNU autoconf

pkg_add -r gnu-autoconf
  1. On PC-BSD I used pkg_add -r autotools instead of autoconf and automake

GNU automake

pkg_add -r gnu-automake

GNU libtool

pkg_add -r gnu-libtool
  1. On PC-BSD used pkg_add -r libtool instead

zip

pkg_add -r zip

rsync

pkg_add -r rsync
  1. On PC-BSD, rsync was needed to run some Code::Blocks scripts.


Code::Blocks

Sources

http://codeblocks.org/source_code.shtml

mkdir codeblocks 
svn checkout http://svn.berlios.de/svnroot/repos/codeblocks/trunk codeblocks

Building

 # sh:
 export PATH=/usr/local/gnu-autotools/bin:$PATH
 export ACLOCAL_FLAGS="-I /usr/X11R6/share/aclocal -I /usr/local/share/aclocal"
 # csh:
 setenv PATH /usr/local/gnu-autotools/bin:$PATH
 setenv ACLOCAL_FLAGS "-I /usr/X11R6/share/aclocal -I /usr/local/share/aclocal"
 cd codeblocks
 ./bootstrap
 ./configure --with-wx-config=wxgtk2u-2.8-config --with-contrib-plugins=all
 make
 su -
 make install

Ports/Packages

codeblocks

http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/codeblocks/

Currently 1.0RC2 (last stable)