Before you build
libalf, please make sure that you fulfill the prerequisites.
- Linux
For compiling the C++ sources in Linux, you require a C++ compiler (we suggest that you use the GNU C++ compiler) and the make utility, which is used to automate
the build process. Both tools should be installed by default on most Linux machines.
- Windows
To compile the C++ sources on Windows, we recommend using the Minimalist GNU for Windows (MinGW) compiler and MSYS, a Unix-style shell for Windows.
Both can be obtained from http://www.mingw.org/.
- Java
If you want to use jALF, you need Java 6.0 or later installed on your system.
Compiling and installing
libalf (and the other components) is easy. Just follow these simple steps:
- Download and extract the sources.
- Change into the folder of the software you want to compile (e.g. libalf).
- Type make install to build and install the component.
The build and installation routines are designed for Linux. By default, the install script tries to install the component in /usr/local/lib and /usr/local/include.
On Windows, or if you do not want the libraries and headers to be installed on your system, you can let the variable PREFIX point to some arbitrary folder, in which you want to
install the software. Then, you have to invoke PREFIX=some_path make install.
Please make sure the components in the right order. E.g. jALF needs to find libalf's header files and the compiled library in order to compile.
Moreover, you may need to specify the location of Java's JNI headers using the variable JAVA_INCLUDE when compiling jALF.
All sources (except the dispatcher) compile on both Linux and Windows (32-bit and 64-bit). However, the dispatcher uses POSIX system calls and does only compile and run on POSIX-compliant systems such as Linux.
(Cygwin may be one way to do so. If you managed to compile and run the dispatcher on Windows, please let us know!)