opencv ubuntu 12.04 Cmake error : Source directory does not appear to contain CmakeLists.txt

≡放荡痞女 提交于 2020-01-01 10:47:11

问题


I'm using Ubuntu 12.04. I was trying to install OpenCV using the steps shown in http://karytech.blogspot.in/2012/05/opencv-24-on-ubuntu-1204.html

But when it comes to the step for Compiling, i get an error :

clive@clive-Aspire-4755:~/OpenCV-2.4.0/build$ cmake -D WITH_QT=ON -D WITH_XINE=ON -D WITH_OPENGL=ON -D WITH_TBB=ON -D BUILD_EXAMPLES=ON ..

CMake Error: The source directory "/home/clive" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

Can anyone help me?

NOTE : The CMakeLists.txt file is present in the folder OpenCV-2.4.0 and not inside build.


回答1:


Try /home/clive/OpenCV-2.4.0 instead of .. at the end of the command.

Also, It's generally easier to use ccmake instead cmake, regarding the options You are trying to set for setup.




回答2:


I was facing the same issue, resolved by using the below command

 Try with cmake .. your command


来源:https://stackoverflow.com/questions/24153845/opencv-ubuntu-12-04-cmake-error-source-directory-does-not-appear-to-contain-cm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!