| 1 | = LHAPDF = |
| 2 | |
| 3 | GiBUU has the option to be linked against [http://lhapdf.hepforge.org/lhapdf5/ libLHAPDF v5]. '''Please note: the newer version 6 is not supported! ''' |
| 4 | This may be a useful option in connection with initialization using PYTHIA. |
| 5 | |
| 6 | You can enforce this by initiating the compilation by the command `make PDF=LHAPDF ...`. |
| 7 | |
| 8 | In order to do so, you have to place a copy of 'libLHAPDF.a' in the directory 'objects/LIB/lib/', e.g. `cp /usr/lib/x86_64-linux-gnu/libLHAPDF.a objects/LIB/lib/`. |
| 9 | |
| 10 | If you are encountering error messages like '''''...relocation truncated to fit: R_X86_64_PC32...''''', you have to recompile the library for a large memory model. |
| 11 | A succsessful approach may be: |
| 12 | {{{ |
| 13 | cd ./lhapdf-5.9.1 |
| 14 | export CXXFLAGS="-mcmodel=large" |
| 15 | export FCFLAGS="-mcmodel=large" |
| 16 | ./configure --disable-pyext --disable-octave --prefix=$HOME/TMP |
| 17 | make |
| 18 | make install |
| 19 | }}} |
| 20 | |
| 21 | The option '-mcmodel=large' is implemented in the default GiBUU Makefile. |