ubuntu - CMake 错误 : The source directory "/home/name/Downloads" does not appear to contain CMakeLists. txt

标签 ubuntu cmake

我想安装 Gromacs,我已经按照 site 中的步骤进行操作直到它告诉我输入此命令的部分:

sudo cmake .. -DGMX_BUILD_OWN_FFTW=OFF -DREGRESSIONTEST_DOWNLOAD=OFF -DCMAKE_C_COMPILER=gcc -DREGRESSIONTEST_PATH= "PUT YOUR PWD PATH HERE WITHOUT QUOTES"/Downloads/regressiontests-5.1.1



请注意,我在此目录中:

name@myname:~/Downloads/gromacs-5.1.1/build$



这就是我在终端中输入的内容:

sudo cmake .. -DGMX_BUILD_OWN_FFTW=OFF -DREGRESSIONTEST_DOWNLOAD=OFF -DCMAKE_C_COMPILER=gcc -DREGRESSIONTEST_PATH= /home/name/Downloads/regressiontests-5.1.1



但是出现了这个错误信息:

CMake Error at CMakeLists.txt:55 (include): include could not find load file:

gmxVersionInfo

CMake Error at CMakeLists.txt:64 (include): include could not find load file:

gmxBuildTypeReference

CMake Error at CMakeLists.txt:65 (include): include could not find load file:

gmxBuildTypeProfile

CMake Error at CMakeLists.txt:66 (include): include could not find load file:

gmxBuildTypeTSAN

CMake Error at CMakeLists.txt:67 (include): include could not find load file:

gmxBuildTypeASAN

CMake Error at CMakeLists.txt:68 (include): include could not find load file:

gmxBuildTypeMSAN

CMake Error at CMakeLists.txt:69 (include): include could not find load file:

gmxBuildTypeReleaseWithAssert

CMake Error at CMakeLists.txt:101 (include): include could not find load file:

gmxCPackUtilities

CMake Error at CMakeLists.txt:102 (gmx_cpack_init): Unknown CMake command "gmx_cpack_init".

-- Configuring incomplete, errors occurred! See also "/home/name/Downloads/gromacs-5.1.1/build/CMakeFiles/CMakeOutput.log".



请帮忙!

最佳答案

= 之间有一个空格和 /这里:-DREGRESSIONTEST_PATH= /home/name/Downloads/regressiontests-5.1.1 .删除空间,它将起作用。

关于ubuntu - CMake 错误 : The source directory "/home/name/Downloads" does not appear to contain CMakeLists. txt,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49421640/

相关文章:

python - 如何在 bash 或 python 中检查 Ubuntu 程序 coredump?

ubuntu - 虚拟机ubuntu上的凉亭,没有反应

CMake 没有找到 CxxTest 包

c++ - 使用CMake在特定于应用程序的子文件夹中查找依赖项

c++ - 为 yaml-cpp 库查找正确的 cmake 配置

c++ - 当我在调用project()之前设置(CMAKE_EXECUTABLE_SUFFIX)时,CMake中的Emscripten不会输出html文件。为什么?我该如何修复它?

python - 如何通过 Cloudflare 使用 Python 或 DDNS 检查公共(public) IP

ubuntu - 上传的包未显示在我的 Launchpad PPA 中

bash - 通过 Jenkins 运行命令?

macos - Mach-O 平台上的库版本控制