-
Install the required libraries and tools.
Refer to theRequirements
section of this document for details.
You can find ready commands for some systems in theRequirements installation
section. -
Create a directory where the built programs will be placed, e.g. in the main directory:
mkdir build
cd build
-
Invoke the CMake build tool and provide the path to the source directory as well as path to install. If you created the build directory in the main one and entered
build
as in step 2. then do:
cmake -DCMAKE_INSTALL_PREFIX=<install_path> ..
If you didn't install Unpacker2 globally on the system also provide path to Unpacker2_DIR:cmake -DCMAKE_INSTALL_PREFIX=<install_path> -DUnpacker2_DIR=<path_to_unpacker2> ..
-
To compile the J-PET Framework Library do:
make
-
Once the compilation is finished, you can run tests with:
ctest
or install libraries in <install_path> using:make install
NOTE: Full install procedure with tips and troubleshootung can be found on PetWiki
To generate the code documentation of the J-PET Framework library, the Doxygen software must be installed. To generate the documentation just go to the j-pet-framework build directory and do:
make documentation
and the documentation will be generated and put in folders named latex and html inside the build directory.