Generate Matlab bindings

asked 2014-01-21 07:18:49 -0500

stefangachter gravatar image

I try to build OpenCV from scratch including the Matlab bindings. While generating the project files with CMake, the following error is thrown:

Checking for Windows Platform SDK
Checking for Visual Studio 2012
Could NOT find JNI (missing:  JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) 
Warning: Matlab bindings will only be built in Release configurations
Warning: Matlab bindings will only be built in Release configurations
Trying to generate Matlab code
Traceback (most recent call last):
  File "C:/OpenCVGit/modules/matlab/generator/gen_matlab.py", line 190, in <module>
    import rst_parser
  File "C:/OpenCVGit/modules/java/generator\rst_parser.py", line 144
    except AssertionError, args:
                         ^
SyntaxError: invalid Syntax

Is this error because of missing Java or because of another reason, like a missing Python package?

edit retag flag offensive close merge delete

Comments

nothing to do with java , it's a python error. it probably does not like your python version

(gen_matlab.py calls java/generator/rst_parser.py to parse the rst docs.)

berak gravatar imageberak ( 2014-01-21 07:52:34 -0500 )edit

Thanks for the verification. I am using Python 3.3.3. Is this supported?

stefangachter gravatar imagestefangachter ( 2014-01-21 07:56:29 -0500 )edit

ahhh ;) probably not. if you can get ~2.7 it will run smoothly.

berak gravatar imageberak ( 2014-01-21 08:02:48 -0500 )edit
2
berak gravatar imageberak ( 2014-01-21 08:06:53 -0500 )edit

Ok, thanks.

stefangachter gravatar imagestefangachter ( 2014-01-21 09:03:39 -0500 )edit