Ask Your Question

Octave Wrapper/Mex Compilers

asked 2019-07-05 07:19:10 -0500

updated 2019-07-05 08:04:30 -0500

I tried to build the Matlab wrappers for OpenCV, even though I don't have Matlab installed, with no luck,

CMake Warning at /home/user/git/opencv_contrib/modules/matlab/cmake/init.cmake:13 (message): Matlab or compiler (mex) was not found. Disabling Matlab bindings... Call Stack (most recent call first): cmake/OpenCVModule.cmake:313 (include) cmake/OpenCVModule.cmake:379 (_add_modules_1) modules/CMakeLists.txt:7 (ocv_glob_modules)

presumably because the Matlab mex compiler wasn't found.

However this link at Mathworks shows that there are non-Matlab compilers available for Linux, Mac, and Windows.

Would it be possible to migrate the exiting Matlab mex build process to the compilers listed above to enable us octave users access to the latest version of OpenCV? (mexOpenCV has fallen behind.)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2019-07-06 01:13:06 -0500

berak gravatar image

updated 2019-07-06 01:17:30 -0500

  • with no luck,

that's expected. it assumes, you have matlab. full stop.

  • However this link at Mathworks shows...

it only shows, various compilers to build matlab / extensions, it does not say anything about octave.

  • Would it be possible to migrate the exiting Matlab mex build process

maybe. unfortunately, matlab / octave users are a total niche here, the bindings in contrib are not really maintained.

if YOU can get it solved, ofc. everyone will be happy, if you contribute that work, but don't expect anyone else to do that.

octave may be compatible at the user level (say, "matlab code"), afaik, it can also understand mex code, but the src code / build process do differ much from matlab, it's an entirely different implementation.

good luck with it, keep us updated, please !

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2019-07-05 07:18:27 -0500

Seen: 134 times

Last updated: Jul 05 '19