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

From Code::Blocks
No edit summary
Stahta01 (talk | contribs)
mNo edit summary
 
(38 intermediate revisions by 7 users not shown)
Line 1: Line 1:
At first we need to install gnu-make:
[[Category:Installing Code::Blocks]]
[[Category:Installing Code::Blocks from source]]
== Prerequisites ==


  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
=== GNU autoconf ===


then zip wich is used by the update script:
pkg_add -r gnu-autoconf


  pkg_add -r zip
# On PC-BSD I used pkg_add -r autotools instead of autoconf and automake


now download and extract codeblocks:
=== GNU automake ===


  fetch http://mesh.dl.sourceforge.net/sourceforge/codeblocks/codeblocks-1.0-rc1-1.tar.gz
pkg_add -r gnu-automake
  tar xzf codeblocks-1.0-finalbeta.tar.gz


  cd codeblocks-1.0-RC1-1/src
=== GNU libtool ===


now make it:
pkg_add -r gnu-libtool
  gmake -f Makefile.unix
  dosunix update update.unix
  chmod +x update.unix


now run upated.unix:
# On PC-BSD used pkg_add -r libtool instead
  ./update.unix


now execute:
=== zip ===
   cd output
 
   ./run.sh
pkg_add -r zip
 
=== rsync ===
 
pkg_add -r rsync
 
# On PC-BSD, rsync was needed to run some Code::Blocks scripts.
 
=== gnome-icon-theme ===
 
pkg_add -r gnome-icon-theme
 
# 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)

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)