Cmake don't builds openCV.

asked 2015-02-27 04:04:09 -0600

ierus gravatar image

Hi, guys. I've been trying to install opencv to use it with Java. I followed this guide. Performing this

cmake -DBUILD_SHARED_LIBS=OFF ..

command resuled with

-- Java: -- ant: /usr/bin/ant (ver 1.9.3)

-- JNI: NO

-- Java tests: NO

but when I type command

ls $JAVA_HOME/bin/javac

I'm get:

/usr/lib/jvm/java-8-oracle/bin/javac

and after preforming this

ls $JAVA_HOME/include/jni.h

/usr/lib/jvm/java-8-oracle/include/jni.h

So I don't know, what is my problem, because everything seems to be fine. OS: Linux Mint 17.1 Rebecca openCV path: /usr/opencv

Thanx.

edit retag flag offensive close merge delete

Comments

Open up cmake-gui in your source folder and make sure that all paths are found, if not, then they will be red and you can manually point the CMAKE to it.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-02-27 05:51:46 -0600 )edit

How can I sure, that all parts are found? Every entry is red in cmake gui after I pressed 'configure' button all the red entries became not red, but it had scr1no effect scr2

ierus gravatar imageierus ( 2015-02-27 07:15:55 -0600 )edit