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

From CodeBlocks
Jump to: navigation, search
(outdated (RC1, CVS))
(Started on article cleanup.)
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 ==
+
== Prerequisites ==
At first we need to install gnu-make:
+
  
  pkg_add -r gmake
+
=== wxWidgets ===
  
then wx-gtk:
+
pkg_add -r wxgtk2-unicode
  
  pkg_add -r wxgtk2-contrib
+
=== SVN client ===
  
then dosunix wich converts files from dos to unix format:
+
pkg_add -r subversion
  
  pkg_add -r dosunix
+
=== zip ===
  
then zip wich is used by the update script:
+
pkg_add -r zip
  
  pkg_add -r zip
+
=== Code::Blocks sources ===
  
now download and extract codeblocks:
+
mkdir codeblocks
 +
svn checkout http://svn.berlios.de/svnroot/repos/codeblocks/trunk codeblocks
  
  fetch http://mesh.dl.sourceforge.net/sourceforge/codeblocks/codeblocks-1.0-rc1-1.tar.gz
+
== Building ==
  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:
 
First, you have to install the following Ports:
  
  gnu-autoconf-2.59  Automatically configure source code on many Un*x platforms  
+
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-automake-1.9.6  GNU Standards-compliant Makefile generator (GNU unmodified)
  gnu-libtool-1.5.18  Generic shared library support script (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/
 
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/
 
   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
 
   cd codeblocks

Revision as of 02:04, 29 November 2006


Prerequisites

wxWidgets

pkg_add -r wxgtk2-unicode

SVN client

pkg_add -r subversion

zip

pkg_add -r zip

Code::Blocks sources

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

Building

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/
 cd codeblocks
 export PATH=/usr/local/gnu-autotools/bin:$PATH
 ./bootstrap
 ./configure
 make
 make install