Building ARB from SVN
This is a step-by-step tutorial for Ubuntu.
Building ARB for the first time
- Install required packages
sudo apt-get install subversion
- Get the source
svn co http://vc.arb-home.de/readonly/trunk arb_svn
- Go into the downloaded directory
cd arb_svn
- Install required packages
sudo `pwd`/SH/arb_installubuntu4arb.sh compile
To build the OPENGL version of arb, append openGL to the above call.
- Configure this directory to be your ARBHOME
export ARBHOME=$PWD export PATH=$ARBHOME/bin:$PATH
- Run make to create the build configuration "config.makefile"
make all
- Edit config.make file. Disable OpenGL dependent modules by setting "OPENGL := 0".
... # Include features using OPENGL? OPENGL := 0 ...
Skip this step to build the OPENGL version of arb.
- Build ARB
make all
If you have a multi-core Computer, you can speed up building by adding "-jN" where N is the number of cores in your computer plus one.make all -j5
Building ARB frequently
If you like to build arb frequently on your machine, to stay up-to-date with the most recent changes, you may use the build-script included in arb sources.
Instructions how to use the script can be found at the beginning of the script.
Running the newly built ARB
- If you opened a new shell, repeat the steps to set the ARBHOME and PATH variables from building ARB
export ARBHOME=$HOME/arb_svn export PATH=$ARBHOME/bin:$PATH
(Assuming you put ARB in "arb_svn" directly in your home folder) - Start ARB
arb
Alternatively you may call arb directly using the full path:
$HOME/arb_svn/bin/arb
Updating ARB to the most current version
- Enter the directory where you compiled ARB and configure ARBHOME/PATH
cd ~/arb_svn export ARBHOME=$PWD export PATH=$ARBHOME/bin:$PATH
- Update the source code
svn update
- Make sure there are no local modifications (don't do this if you changed the source)
svn revert --recursive .
- Rebuild ARB
make clean && make all -j5
(Normally, the "make clean" is not necessary. Rebuilding everything is safer, though.)
Last modified 16 months ago
Last modified on Jul 31, 2023, 10:41:28 AM