opencv ubuntu 12.04 Cmake错误:源目录似乎不包含CmakeLists.txt [英] opencv ubuntu 12.04 Cmake error : Source directory does not appear to contain CmakeLists.txt

查看:366
本文介绍了opencv ubuntu 12.04 Cmake错误:源目录似乎不包含CmakeLists.txt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Ubuntu 12.04.我正在尝试使用 http:中显示的步骤安装OpenCV: //karytech.blogspot.in/2012/05/opencv-24-on-ubuntu-1204.html

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.

有人可以帮助我吗?

注意:CMakeLists.txt文件存在于OpenCV-2.4.0文件夹中,而不在内部版本中.

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

推荐答案

在命令末尾尝试使用/home/clive/OpenCV-2.4.0代替...

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

此外,关于要尝试设置的选项,使用ccmake代替cmake通常更容易.

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

这篇关于opencv ubuntu 12.04 Cmake错误:源目录似乎不包含CmakeLists.txt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆