Every time I try to build, I get the error:
CMake Error: The source directory “E:/Code/Test” does not appear to contain CMakeLists.txt.
Specify –help for usage, or press the help button on the CMake GUI.
Which doesn’t make a ton of sense, because I very clearly have CMakeLists.txt included in that directory. I tried looking for this problem on the internet, but it seems that I might be the only person to ever have this issue. Has anyone run across this issue before?
Is there an easier way to be integrating OpenCV? I’ve got a copy of Visual Studio, but the OpenCV wiki says that it’s not supported any longer.
I’m on Windows 7, using the CMake-GUI
The guide I’ve followed to try and get started with this can be found here: http://redkiing.wordpress.com/2010/10/03/opencv-and-visual-studio-2010-with-cmake/
EDIT
I ended up using the prebuilt OpenCV for Windows.
If you can definitely open E:/Code/Test/CMakeLists.txt in a text editor, then this is a bug with CMake GUI I guess. You could try re-installing CMake. If that still fails, you could ask on the CMake mailing list and/or file a bug report.
If you want to try without the CMake GUI, you can open a Visual Studio command prompt and work from there.
Go to build directory (where to build the binaries – create it first if need be)
Invoke CMake with the appropriate generator. To see the full list of generators, run
cmake -hShow options
Set options. e.g. to switch
BUILD_SHARED_LIBSoff, do:Any options set this way are cached, and will remain unchanged for any further runs of CMake. If you want to see help info for each cached option, do
cmake .. -LH.The end result will be a VS solution E:/Code/Test/buildOpenCV.sln