Ask Your Question
0

How to build OpenCV libraries without Python interface and JNI

asked 2015-01-30 18:33:28 -0600

pavanbabut gravatar image

I am trying to build OpenCV libraries with my VS2008 64bit compiler on a Windows 64bit OS. My source files are opencv-2.4.9. But it is throwing the following errors

Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.0")

Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)

I dont want any of those interfaces anyways. Is there a way I can turn them off so that CMake wont look for it while building the libraries?

thanks

edit retag flag offensive close merge delete

Comments

cmake -DBUILD_opencv_java=OFF -DBUILD_opencv_python=OFF

on the other hand, if you don't want any of this, you're safe to ignore the messages. unsure though, if it's possible to suppress them at all.

berak gravatar imageberak ( 2015-01-30 22:15:15 -0600 )edit
1

Thanks for your quick reply. Since I am not sure where to put that command you suggested, I just ignored those messages and both my 32bit and 64bit builds went fine and working.

pavanbabut gravatar imagepavanbabut ( 2015-02-01 12:05:50 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-04-27 18:54:12 -0600

Philippe B gravatar image

updated 2015-04-28 16:38:38 -0600

Any idea on when these build errors will be fixed (or changed to warnings)? It looks like they are still produced if both are OFF

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-01-30 18:33:28 -0600

Seen: 8,988 times

Last updated: Apr 28 '15