Mac opencv 2.4.6 java exception

asked 2013-07-02 01:54:23 -0500

abelkun gravatar image

updated 2013-07-02 02:14:33 -0500

objc[46442]: Class CVWindow is implemented in both cv2.so and build/lib/libopencv_java246.dylib. One of the two will be used. Which one is undefined. I just add the jar from bin and native library path build/lib... I cannot find bin/libopencv_java244.so mentioned in introduction tutorial.

edit retag flag offensive close merge delete

Comments

cv2.so is the python wrapper, you probably don't want that in java, do you ?

berak gravatar imageberak ( 2013-07-02 04:59:36 -0500 )edit

Just to clarify: I get this error too. I did NOT copy across the cv2.so file, only the libopencv_java file. The otool utility (otool -L libopencv_javaXXX.dylib) indicates that the dylib itself is referring to cv2.so. Hence, this seems to be a build configuration problem to me.

EDIT: I can get rid of the [error] by explicitly compiling without Python (-D BUILD_NEW_PYTHON_SUPPORT=NO).

lancelet gravatar imagelancelet ( 2013-07-10 02:57:34 -0500 )edit