Hi William, I ran into this problem was when when I was trying to set up the Jenkins build job for UIMACPP.
I believe it was fixed by adding the CPPFLAGS as you can see below: > #!/bin/sh > set -e > > PREFIX=`pwd`/dependencies > TARGET=`pwd`/target > > mkdir -p "$PREFIX" > mkdir -p "$TARGET" > > # Build xerces > curl -C- -o xerces-c-3.1.4.zip > http://www.apache.org/dist/xerces/c/3/sources/xerces-c-3.1.4.zip > unzip -n xerces-c-3.1.4.zip > cd xerces-c-3.1.4 > ./configure --prefix="$PREFIX" > make install > cd .. > > # Build ICU > rm -f icu4c-58_2-src.tgz > curl -C- -L -o icu4c-58_2-src.tgz > http://download.icu-project.org/files/icu4c/58.2/icu4c-58_2-src.tgz > tar -xzf icu4c-58_2-src.tgz > cd icu/source > ./configure --prefix="$PREFIX" > make install > cd ../.. > > # Build APR > #curl -C- -o apr-1.5.2.tar.gz http://www.apache.org/dist/apr/apr-1.5.2.tar.gz > curl -C- -o apr-1.4.8.tar.gz > http://archive.apache.org/dist/apr/apr-1.4.8.tar.gz > tar -xzf apr-1.4.8.tar.gz > cd apr-1.4.8 > ./configure --prefix="$PREFIX" > make install > cd .. > > # Now build UIMA > ./configure --prefix="$TARGET" --with-xerces="$PREFIX" --with-apr="$PREFIX" > --with-icu="$PREFIX" --without-activemq --with-jdk="$JAVA_HOME/include" > CPPFLAGS="-I${JAVA_HOME}/include/linux" > make check > make install You can probably log in to the Apache Jenkins and make changes to the build job: https://builds.apache.org/view/S-Z/view/UIMA/job/UIMA-CPP-SDK Cheers, -- Richard > On 28.05.2017, at 03:56, William Colen <[email protected]> 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
