error in installing opencv from github

asked 2014-08-06 16:29:27 -0500

I am trying to install the new opencv source from github so that I can try the matlab bindings along with it. I have downloaded the latest code from github today.

I am using Visual Studio 10.0 64 bit as my compiler on Windows with cmake 2.8. However, when I try to configure CMake I am getting the following error which says that the project files may be invalid:

CMake Error at cmake/OpenCVUtils.cmake:735 (target_link_libraries):
Target "opencv_matlab" of type UTILITY may not be linked into another
target.  One may link only to STATIC or SHARED libraries, or to executables
with the ENABLE_EXPORTS property set.
Call Stack (most recent call first):
modules/python/CMakeLists.txt:80 (ocv_target_link_libraries)

I have no clue why this would happen. CMake is able to identify the Python and Matlab paths and I also get the confirmation "Warning: Matlab bindings will only be built in Release configurations"

Can someone help me out with this.

edit retag flag offensive close merge delete