Created attachment 559 [details] Make appempt Hello Respected Geant4 Experts, Installing Geant4 MPI libraries is failing: As per the instructions provided, When I do: cmake -DGeant4_DIR=/homes/sanchitsharma/Geant4/Install_M/lib64/Geant4-10.5.0 -DCMAKE_INSTALL_PREFIX=/homes/sanchitsharma/Geant4/Install_M/MPI /homes/sanchitsharma/Geant4/Install_M/share/Geant4-10.5.0/examples/extended/parallel/MPI/source This runs perfectly However doing a "make" gives following error: In file included from /homes/sanchitsharma/Geant4/Install_M/share/Geant4-10.5.0/examples/extended/parallel/MPI/source/src/G4MPIbatch.cc:33:0: /homes/sanchitsharma/Geant4/Install_M/share/Geant4-10.5.0/examples/extended/parallel/MPI/source/include/G4MPImanager.hh:117:9: error: ‘MPI’ does not name a type; did you mean ‘M_PI’? const MPI::Intracomm* GetComm() const { return &COMM_G4COMMAND_; } ^~~ M_PI /homes/sanchitsharma/Geant4/Install_M/share/Geant4-10.5.0/examples/extended/parallel/MPI/source/include/G4MPImanager.hh:150:3: error: ‘MPI’ does not name a type; did you mean ‘M_PI’? MPI::Intracomm COMM_G4COMMAND_; ^~~ M_PI make[2]: *** [CMakeFiles/G4mpi.dir/src/G4MPIbatch.cc.o] Error 1 make[1]: *** [CMakeFiles/G4mpi.dir/all] Error 2 make: *** [all] Error 2 I have attached my screenshot along with this. I have also tried running this with -DCMAKE_CXX_COMPILER=mpicxx option that does not work either. I would be extremely grateful of any solution in this regard. Thanks!
Created attachment 560 [details] make attempt 2
Created attachment 561 [details] make attempt 3
I have tried this with various versions of MPI.