Cmake error when building OpenCV

12,138

The problem was solved following the link: http://answers.opencv.org/question/13490/cmake-opencv249-master-branch-windows-7-x64/

Share:
12,138
GilLevi
Author by

GilLevi

Hi, I’m Gil. I’m an M.sc graduate in computer science and a Phd candidate at Tel-Aviv University. My advisors are Prof. Tal Hassner and Prof. Lior Wolf. My interests are computer vision, machine learning (particularly deep learning), image processing and OpenCV. You can contact me at [email protected]. Here is my blog and my LinkedIn profile (including list of publications).

Updated on June 04, 2022

Comments

  • GilLevi
    GilLevi almost 2 years

    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. Can anyone please guide me as to how to fix this error?

    Thanks in advance!!