level 1
按照网上的教程在各个操作系统下安装geant4,严格跟随教程安装,但不论在哪个系统下进入build文件夹运行cmake的时候,都会出现
CMake Error: The source directory "F:/geant4_10_04_p02/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
求指导,谢谢。
2018年10月10日 08点10分
1
level 1
不熟悉cmake的最好使用gui界面。首先cmake有两种方式外部构建和内部构建,外部构建build文件夹在源文件之外,内部即构建在源文件夹下不建目录。出现这个问题说明你的源source code文件路径错误没有找到CMakelists.txt或没有这个文件。编译时linux系统make要进入build路径,或window环境VS打开解决方案sln文件。
2021年12月03日 03点12分
7