MasteringOpenCV / code

Code for the book "Mastering OpenCV with Practical Computer Vision Projects" by Packt Publishing 2012.
Other
2.73k stars 1.65k forks source link

Can't Compile on Ubuntu #39

Closed marceloc closed 10 years ago

marceloc commented 10 years ago

Hello,

At the first, Thanks for sharing your knowledge.

I can't compile the chapter 8 code.

After command "cmake -D OpenCV_DIR=$OpenCV_DIR ..", show the following message:

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

My opencv version is 2.4.8 on Ubuntu 14.04

Regards, Marcelo

shervinemami commented 10 years ago

You are probably running it from the wrong folder. Make sure you follow the README instructions to create the build folder and run cmake from there. Notice the ".." at the end of the cmake command to say the CMakeLists.txt file is in the parent folder of the current folder. Cmake is giving you an error saying the file isn't there.