Subject: UIMACPP jenkins job is failing

Richard ([EMAIL PROTECTED]) created a jenkins build for uimacpp. I've spent
some time "fixing" the configuration but run into a block running the FVT
test_cas: error while loading shared libraries:
cannot open shared object file: No such file or directory
Earlier in the job the file is demonstrated to be where expected:
ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically
linked, BuildID[sha1]=d2f443b63fcae650e5bebc60dccb9815cd8af6fb, not
symbolic link to
symbolic link to
Of course it is possible that the build's command script is wrong, but
I have run the exact same script on a Ubuntu machine from the top
level of a git clone of uima-cpp and it works. The script is pasted
below. Maybe someone with more jenkins experience can help here :)
Richard, the changes made to the build script were:
1. using wget instead of curl to download dependencies. Curl was
mostly failing when downloading tars and wget has been rock solid.

2. downloaded a xerces-c tar instead of zip

3. Used ICU 50.2 instead of 58.2 because uimacpp fails with 58.2 on my machines.

4. changed the configure command for ICU to specify the target distro

5. change the configure for uimacpp to work finding jni_md.h and to
add the newly required CXXFLAGS=-std=c++11

set -e


mkdir -p "$PREFIX"
mkdir -p "$TARGET"

# Build xerces
tar -xf xerces-c-3.1.4.tar.gz
cd xerces-c-3.1.4
./configure --prefix="$PREFIX"
make install
cd ..

# Build ICU
rm -f icu4c-50_2-src.tgz
tar -xzf icu4c-50_2-src.tgz
cd icu/source
./runConfigureICU Linux --prefix="$PREFIX"
make install
cd ../..

# Build APR
#curl -C- -o apr-1.5.2.tar.gz
tar -xzf apr-1.4.8.tar.gz
cd apr-1.4.8
./configure --prefix="$PREFIX"
make install
cd ..

# see what exists in dependencies
file "$PREFIX"/lib/
file "$PREFIX"/lib/
file "$PREFIX"/lib/

# Now build UIMA
./configure --prefix=$TARGET --with-xerces=$PREFIX --with-apr=$PREFIX
--with-icu=$PREFIX --without-activemq --with-jdk=$JAVA_HOME'/include
-I'${JAVA_HOME}/include/linux CXXFLAGS=-std=c++11
make check
make install