CMake cannot find PYTHIA8 directory and library

Geant4 Version: 11.2.2
Operating System: MacOS Sequoia 15.0
Compiler/Version: Apple Clang 16.0.0
CMake Version: CMake 3.30.5
Hardware: Apple Macbook Air M1 (2020)
PYTHIA Version: 8.3.09

Hello! I am trying to compile the py8decayer application from the /examples/extended/eventgenerator/pythia/py8decayer directory in GEANT4.

I already installed PYTHIA8 , and added the export PYTHIA8DATA=.../pythia8309/share/Pythia8/xmldoc under my .zshrc doc, but CMake says that it cannot find the directories for Pythia8_INCLUDE_DIR and Pythia8_LIBRARY. The CMake error is shown here:

What should I do to solve this? Hoping for your response.

Best,

Thoreenz

Hello,

According to the py8decayer README file you have to define Pythia8_ROOT not PYTHIA8DATA.

Give that a go :wink:

/Pico

Hello Pico!

Your suggestion worked. Thank you very much!

Best,

Thoreenz

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.