opencv / opencv_contrib

Repository for OpenCV's extra modules
Apache License 2.0
9.34k stars 5.75k forks source link

matlab module: Compiler/generator: Not working (bindings will not be generated) #273

Open shixudongleo opened 9 years ago

shixudongleo commented 9 years ago

I am compiling OpenCV 3.0.0 with extra modules. I did set the cmake variable: -D MATLAB_ROOT_DIR=/Applications/MATLAB_R2013a.app.

However, I got errors below in the cmake summary and matla bindings are not produced. -- Matlab: -- mex: /Applications/MATLAB_R2013a.app/bin/mex -- Compiler/generator: Not working (bindings will not be generated)

CMake Warning (dev) at opencv_contrib/modules/matlab/test/CMakeLists.txt:17 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

The dependency target "opencv_matlab" of target "opencv_test_matlab" does not exist. This warning is for project developers. Use -Wno-dev to suppress it.

My system is: Mac OSX 10.10.3 Matlab R2013a CMake 3.2.3 Please guide me what to do in order to create matlab bindings.

StevenPuttemans commented 9 years ago

Could you try again with the latest master branch? It seems that this should work again once this fix gets in: https://github.com/Itseez/opencv_contrib/pull/324