Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 544
Clive Avatar asked Jun 11 '14 02:06

Clive


2 Answers

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.

like image 193
morynicz Avatar answered Oct 13 '22 23:10

morynicz


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

 Try with cmake .. your command
like image 22
Logesh P Avatar answered Oct 13 '22 23:10

Logesh P