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

From CodeBlocks
Jump to: navigation, search
(Started on article cleanup.)
m
 
(26 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
[[Category:Installing Code::Blocks]]
 
[[Category:Installing Code::Blocks]]
 
[[Category:Installing Code::Blocks from source]]
 
[[Category:Installing Code::Blocks from source]]
 
 
== Prerequisites ==
 
== Prerequisites ==
  
Line 11: Line 10:
  
 
  pkg_add -r subversion
 
  pkg_add -r subversion
 +
 +
=== GNU autoconf ===
 +
 +
pkg_add -r gnu-autoconf
 +
 +
# 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
 +
 +
# On PC-BSD used pkg_add -r libtool instead
  
 
=== zip ===
 
=== zip ===
Line 16: Line 31:
 
  pkg_add -r zip
 
  pkg_add -r zip
  
=== Code::Blocks sources ===
+
=== rsync ===
  
  mkdir codeblocks
+
  pkg_add -r rsync
svn checkout http://svn.berlios.de/svnroot/repos/codeblocks/trunk codeblocks
+
  
== Building ==
+
# On PC-BSD, rsync was needed to run some Code::Blocks scripts.
  
First, you have to install the following Ports:
+
=== gnome-icon-theme ===
  
gnu-autoconf-2.59  Automatically configure source code on many Un*x platforms
+
  pkg_add -r gnome-icon-theme
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/
+
# On PC-BSD, gnome-icon-theme was needed by the make install.
  
  cp -R /usr/X11R6/share/aclocal/ /usr/local/gnu-autotools/share/
+
== Code::Blocks ==
  
  cd codeblocks
+
=== Sources ===
 +
 
 +
http://www.codeblocks.org/downloads/7
 +
 
 +
mkdir codeblocks
 +
svn checkout http://svn.berlios.de/svnroot/repos/codeblocks/trunk codeblocks
 +
 
 +
=== Building ===
 +
 
 +
  # sh:
 
   export PATH=/usr/local/gnu-autotools/bin:$PATH
 
   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
 
   ./bootstrap
   ./configure
+
   ./configure --with-wx-config=wxgtk2u-2.8-config --with-contrib-plugins=all
 
   make
 
   make
 +
  su -
 
   make install
 
   make install
 +
 +
== Ports/Packages ==
 +
 +
=== codeblocks ===
 +
 +
http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/codeblocks/
 +
 +
http://www.freshports.org/devel/codeblocks/
 +
 +
Currently 8.02 (last stable)

Latest revision as of 00:51, 12 March 2010

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.

gnome-icon-theme

pkg_add -r gnome-icon-theme
  1. On PC-BSD, gnome-icon-theme was needed by the make install.

Code::Blocks

Sources

http://www.codeblocks.org/downloads/7

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/

http://www.freshports.org/devel/codeblocks/

Currently 8.02 (last stable)