compiling sikuli JAVA_JAVA_H-NOTFOUND

Asked by j

So I tried to compile sikuli because I'm thinking about participating in developing sikuli, but I have this compiling error:

[ 85%] Generating ../../../../src/main/native/org_sikuli_script_VDictProxy.h
/bin/sh: 1: JAVA_JAVA_H-NOTFOUND: not found
make[2]: *** [../src/main/native/org_sikuli_script_VDictProxy.h] Error 127
make[1]: *** [src/main/native/CMakeFiles/VDictProxy.dir/all] Error 2
make: *** [all] Errors 2

I already did a google search and adding jdk/bin to $PATH and setting $JAVA_HOME did NOT help.

Can you help me what I'm missing?

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
j
Solved:
Last query:
Last reply:
Revision history for this message
j (j-the-k) said :
#1

Okay it works now.
The problem was that cmake did not detect OpenCV and OpenCV_DIR was not set.
After I set OPENCV_DIR to /usr/share/OpenCV in the cmake-gui everything compiled fine.
However everytime I rerun cmake, I have to set OpenCV_DIR manually. Is there a way to make cmake detect OpenCV automatically?