Hi, Following Richard's recomendation I could build it after a workaround in configure.ac:
https://github.com/apache/uima-uimacpp/blob/trunk/configure.ac#L322 ######################################################################### # # check for Java JDK # AC_ARG_WITH([jdk], AC_HELP_STRING([--with-jdk], [use local JDK (uses /opt/IBMJava2-142/include by default)]), [UIMA_JDK_INCLUDE="-I$withval $withva/linux" # added $withva/linux JDK_TEST_INCLUDE="$UIMA_JDK_INCLUDE"], [UIMA_JDK_INCLUDE="-I/opt/IBMJava2-142/include" JDK_TEST_INCLUDE="-I/opt/IBMJava2-142/include"]) I don't know enough Automake to fix it correctly. Anyway, after that the configure command passed, but now it fails in make: https://gist.github.com/wcolen/cc241c07dad938b3e340e595aac2f35d Thank you William 2017-05-28 13:35 GMT-03:00 Marshall Schor <[email protected]>: > Hi William, > > On my linux system, I see the default java is the openjdk (but at version > 1.6). > It is not a JDK, but rather, a JRE, and is missing the include directories. > > You need have a JDK (preferably from Oracle or IBM) installed on your > system, > and Java 1.7 is the right level (not 1.8), because that allows the result > to be > run with both Java 7 and 8 :-). > > Thanks! -Marshall > > > On 5/27/2017 9:56 PM, William Colen wrote: > > Hi, > > > > I managed to compile UIMA C++ from source in a Mac. > > > > Now I am trying in Ubuntu 16.04. > > It is a fresh install. I compiled all recommended dependencies manually. > > > > I am getting issues with the configure command: > > > > ./configure --prefix=/home/ubuntu/uima-deps/libs/uima-cpp > > --with-jdk=/usr/lib/jvm/java-8-openjdk-amd64/include/ > > --with-apr=/home/ubuntu/uima-deps/libs/apr > > --with-icu=/home/ubuntu/uima-deps/libs/icu > > --with-xerces=/home/ubuntu/uima-deps/libs/xerces > > --with-activemq=/home/ubuntu/uima-deps/libs/activemq-cpp > > --with-apr-util=/home/ubuntu/uima-deps/libs/apr-util > > > > (...) > > checking activemq/exceptions/ExceptionDefines.h usability... yes > > checking activemq/exceptions/ExceptionDefines.h presence... yes > > checking for activemq/exceptions/ExceptionDefines.h... yes > > configure: Apache Portable Runtime (APR Util ) library configuration > > checking for APR-util... yes > > checking jni.h usability... no > > checking jni.h presence... no > > checking for jni.h... no > > configure: error: Unable to find JDK Headers > > > > > > I double checked the contents of /usr/lib/jvm/java-8-openjdk-amd64/include/ > and > > tried with the Oracle JDK as well and got the same error. > > > > Anybody managed to compile with Java 8 on Ubuntu? > > > > Thank you, > > William > > > >
