Ask Your Question
0

Cmake error when building OpenCV

asked 2013-05-30 12:41:49 -0600

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!!

edit retag flag offensive close merge delete

Comments

1

pease add opencv version

berak gravatar imageberak ( 2013-05-30 15:30:28 -0600 )edit

I'm refering to OpenCV-2.4.5. Thanks!

GilLevi gravatar imageGilLevi ( 2013-05-30 17:08:56 -0600 )edit

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?

GilLevi gravatar imageGilLevi ( 2013-05-30 17:52:42 -0600 )edit
1

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/

StevenPuttemans gravatar imageStevenPuttemans ( 2013-05-31 04:19:24 -0600 )edit
2

Thanks, I followed the link and it worked!!

GilLevi gravatar imageGilLevi ( 2013-05-31 13:51:26 -0600 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2013-06-01 03:57:17 -0600

My suggestion clearly was the solution, so posted it to be accepted :)

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/

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-05-30 12:41:49 -0600

Seen: 2,058 times

Last updated: Jun 01 '13