Cmake error when building OpenCV
I'm trying to build OpenCV with Cmake on Windows 7. I chose to use the Visual Studio 10 compiler.
I'm getting the following error:
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCXXInformation.cmake:37 (get_filename_component):
get_filename_component called with incorrect number of arguments Call Stack (most recent call first): CMakeLists.txt:2 (PROJECT)
I'm sure the path to OpenCV is correct and I haven't made any changes to CMakeLists.txt Can anyone please guide me as to how to fix this error?
Thanks in advance!!
pease add opencv version
I'm refering to OpenCV-2.4.5. Thanks!
But it appears that the same problem accurs in cv 2.4.4 also. I'm following this manual: http://mil.ufl.edu/5666/classes/Installing_And_Using_OpenCV.pdf
What am I doing wrong?
I would suggest trying to select your C and CXX compilers yourself. It gave me a lot of problems with compiling. Follow this link: http://answers.opencv.org/question/13490/cmake-opencv249-master-branch-windows-7-x64/
Thanks, I followed the link and it worked!!