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

From Code::Blocks
(outdated (RC1, CVS))
m
 
(27 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]]
[[Category:Outdated]]
+
== Prerequisites ==
{{outdated}}
 
  
== Install from Source Package ==
+
=== wxWidgets ===
At first we need to install gnu-make:
 
  
  pkg_add -r gmake
+
pkg_add -r wxgtk2-unicode
  
then wx-gtk:
+
=== SVN client ===
  
  pkg_add -r wxgtk2-contrib
+
pkg_add -r subversion
  
then dosunix wich converts files from dos to unix format:
+
=== GNU autoconf ===
  
  pkg_add -r dosunix
+
pkg_add -r gnu-autoconf
  
then zip wich is used by the update script:
+
# On PC-BSD I used pkg_add -r autotools instead of autoconf and automake
  
  pkg_add -r zip
+
=== GNU automake ===
  
now download and extract codeblocks:
+
pkg_add -r gnu-automake
  
  fetch http://mesh.dl.sourceforge.net/sourceforge/codeblocks/codeblocks-1.0-rc1-1.tar.gz
+
=== GNU libtool ===
  tar xzf codeblocks-1.0-finalbeta.tar.gz
 
  
  cd codeblocks-1.0-RC1-1/src
+
pkg_add -r gnu-libtool
  
now make it:
+
# On PC-BSD used pkg_add -r libtool instead
  gmake -f Makefile.unix
 
  dosunix update update.unix
 
  chmod +x update.unix
 
  
now run upated.unix:
+
=== zip ===
  ./update.unix
 
  
now execute:
+
pkg_add -r zip
  cd output
 
  ./run.sh
 
  
To build codeblocks-1.0rc2, you should use the method belown with the Autotools.
+
=== rsync ===
  
== Install from CVS ==
+
pkg_add -r rsync
First, you have to install the following Ports:
 
  
  gnu-autoconf-2.59  Automatically configure source code on many Un*x platforms
+
# On PC-BSD, rsync was needed to run some Code::Blocks scripts.
  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/
+
=== gnome-icon-theme ===
  
  cp -R /usr/X11R6/share/aclocal/ /usr/local/gnu-autotools/share/
+
pkg_add -r gnome-icon-theme
  
=== Getting the latest sources from CVS ===
+
# On PC-BSD, gnome-icon-theme was needed by the make install.
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
+
== Code::Blocks ==
  
When asked for a password, press enter. Now, just checkout (i.e. download) the sources from the repository:
+
=== Sources ===
  
  cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks co codeblocks
+
https://www.codeblocks.org/downloads/7
  
This will create the directory codeblocks. Change to the codeblocks directory and build it, by issuing the following commands:
+
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
 
   cd codeblocks
  export PATH=/usr/local/gnu-autotools/bin:$PATH
 
 
   ./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 22:51, 11 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

https://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)