Please see the relevant section of the Installation Guide. That command configures Geant4’s build, and the build, install steps require additional commands that are documented on that link.
When executing command cmake --build . --config Release and cmake --build . --config Release --target install in the geant4-build folder, a lot of the same errors occured but the compile and install process was not interrupted. The error was like:
G4HadronInelasticProcess.cc
D:\geant4\geant4-v10.6.3\source\processes\hadronic\cross_sections\include\G4FastPathHadronicCrossSection.hh(299,85): er
ror C2445: ?????? result ?????: ??"const G4String"?"const char [10]"?????????? [D:\geant4\geant4-build\source\processes
\G4processes.vcxproj]
D:\geant4\geant4-v10.6.3\source\processes\hadronic\cross_sections\include\G4FastPathHadronicCrossSection.hh(299,85): me
ssage : ???"const G4String" [D:\geant4\geant4-build\source\processes\G4processes.vcxproj]
D:\geant4\geant4-v10.6.3\source\processes\hadronic\cross_sections\include\G4FastPathHadronicCrossSection.hh(299,85): me
ssage : ? "const char *" [D:\geant4\geant4-build\source\processes\G4processes.vcxproj]
D:\geant4\geant4-v10.6.3\source\processes\hadronic\cross_sections\include\G4FastPathHadronicCrossSection.hh(300,77): er
ror C2445: ?????? result ?????: ??"const G4String"?"const char [10]"?????????? [D:\geant4\geant4-build\source\processes
\G4processes.vcxproj]
D:\geant4\geant4-v10.6.3\source\processes\hadronic\cross_sections\include\G4FastPathHadronicCrossSection.hh(300,77): me
ssage : ???"const G4String" [D:\geant4\geant4-build\source\processes\G4processes.vcxproj]
D:\geant4\geant4-v10.6.3\source\processes\hadronic\cross_sections\include\G4FastPathHadronicCrossSection.hh(300,77): me
ssage : ? "const char *" [D:\geant4\geant4-build\source\processes\G4processes.vcxproj]
Then after the installing the geant4-install folder is still empty.
These errors appear to be due to ambiguity in the writing of the .cc file, but I have used the same method to install Geant4 on other machines before without such errors. And the number of such errors is too large for me to correct one by one.
@luca29q, I don’t think your issue is related to the original one at all, as your actually doing the build step which was missing in the original post. I’d suggest at this point creating your own post so as not to derail the original one given it’s not the same problem.