Installation on Linux
FreeHAL can either be compiled manually or by using a script. If you don't know how to compile software, the compile script is a probably easier way.A) Easy Way: Compile Script
Please save the following file in your home directory by "Right Click -> Save as". Your home directory is /home/your-username.http://freehal.org/code/hal2009/scripts/autocompile
Then open a shell/terminal and type in:
bash autocompileAfter pressing the return key, Freehal will be installed. Please follow the instructions if necessary. When the setup is finished, you can run Freehal with the command:
freehal
B) Manual Compilation
To compile FreeHAL from the source repository, you need the following packages:| Name | Package: Ubuntu/Debian |
|---|---|
| gcc and g++ | build-essential |
| Subversion Client | subversion |
| CMake | cmake |
| Perl 5.10 + headers | libperl-dev |
| BOINC development files | boinc-dev |
| die BOOST-Libraries "system", "thread" und "iostreams" | libboost-system-dev, libboost-thread-dev, libboost-iostreams-dev |
| Boost.Asio, at least version 1.2 | libasio-dev |
| Qt 4 Headers + Development Tools | qt4-dev-tools |
Install the dependencies:
| Ubuntu: | sudo apt-get install build-essential subversion cmake libperl-dev boinc-dev libboost-system-dev libboost-thread-dev libboost-iostreams-dev libasio-dev qt4-dev-tools |
|---|
Download the source code:
svn co http://freehal.org/code/hal2009Go to your source directory:
cd hal2009Use CMake to generate the makefile:
./configureCompile FreeHAL:
make hal2009-serverTo compile the GUI, change into the GUI directory:
cd gui-qtUse qmake to generate the GUI source code:
qmakeCompile the GUI:
makeThe executable file for the GUI is now in the folder
gui-qt/bin/ and is called freehal. If you do not want to start the GUI and server components separately, the GUI should be copied into the FreeHAL core, to be started from there:cp bin/freehal ..Switch back to your source directory:
cd ..And finally, start FreeHAL:
./freehalBack to Documentation



