The installation steps are the following:
- Download the parser sources from Sourceforge.
- Unpack the distribution:
> tar -zxf desr-1.1.0.tgz
- Issue configure in directory desr-1.1.0:
> cd desr-1.1.0
- Build the parser with:
These steps will produce the program:
|dynamically linked executable
and, if you have doxygen
installed, it will generate the documentation in directory:
On MacOs it is recommended to use gcc 4.2 and boost 1.33, which can be obtained as follows:
- Download and install Fink from http://www.finkproject.org/
- sudo /sw/bin/fink install gcc42
- sudo /sw/bin/fink install boost1.33
Then, you can configure DeSR with:
./configure CXX=/sw/bin/g++-4 CXXFLAGS="-I/sw/include -L/sw/lib"
On Linux binaries are generated as i386 or x64 binaries, depending on the architecture of the machine where compilation is performed.
Code that can be run on both 32-bit or 64-bit architectures, can be generated by issuing:
> configure enable-32bit
instead of step 3) of the installation procedure.
To produce a statically linked executable, issue:
> cd src
> make desr.static
which will produce:
| statically linked executable