Build OpenCV on a freeBSD machine

asked 2013-05-20 16:28:50 -0500

Stegger gravatar image

updated 2013-07-02 04:59:41 -0500

Hi all

I'm trying to build OpenCV with cmake on a FreeBSD machine. My issue is that I can't get cmake to recognize my Java installation. It appears that it finds Java, but complains that there is no JNI (Java Native Interface) which is needed to create the Java bindings introduced in 2.4.4.

I have found some writings on the Internets saying something about Highgui being an issue on FreeBSD, but I don't think that is the issue here.

Unfortunately I have only found a FreeBSD port for opencv v2.3 but I need the Java Bindings from v2.4.4. So, any ideas why it can't find JNI? I use the OpenJDK 7 on my installations.

UPDATE: I have succesfully made cmake find JNI by typing "# setenv JAVA_HOME /usr/local/openjdk7/" before cmake'ing. Now it will build Java.

HOWEVER, its stop around 18% because of something with HighGUI, and CaptureFromCam_V4l.

Now I can live without the Cam functionality. So does anyone know a workaround so that cmake will not even build it?

edit retag flag offensive close merge delete