Integrating CRY library with GEANT4 newest version

Is anyone can help me with this issue?

I’m using GEANT4 and I want to use CRY library as my generator particle but I got several issues. I’m using examples provided by CRY and modified PhysicsList to make it compatible with my GEANT4 version and the code runs well but i kept got this error in the beginning of when I execute my simulation

“Error: CRY generator setup failed. Check file path and contents.”

I also modify the code inside cosmic.cc to display the GUI and it works but when I’m going to execute /run/beamOn in GUI, the process suddenly aborted and the message that appear is:

“CRY Generator not initialized.”

This is the information of my computer:
_Geant4 Version: 11.2.2
_Operating System: Windows 11 (using Ubuntu version 22.04.3 inside WSL version 2)
_Compiler/Version: GCC 11.2.0
_CMake Version: 3.22.1