所以我尝试在ogre上使用cmake来安装它,但每次我使用build:目录中的命令
cmake ..
我有一个错误显示:
CMake Error: The source directory "/home/.../TPs/ogre" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
做了之后:
cmake .. -DCMAKE_MODULE_PATH=/usr/share/OGRE/cmake/modules/
错误转换为:
CMake Error: The source directory "/home/.../TPs/ogre" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
尽管它有一个CMakeLists.txt.
我有cmake 2.8.XXX版本和python 2.7.XXX,我尝试过使用cmake gui,但它也给了我一个关于CMakeCache的错误。。。
你有什么建议吗?
编辑:好的,它很管用,故事的寓意,即使你非常想要它,也不要在文件夹名称中放"\"!
请确保已激活虚拟环境。如果不是,请删除以前的生成文件夹。激活所需的虚拟环境。在opencv中创建新的构建文件夹。然后执行cmake。