diff --git a/ci/docker/install/ubuntu_core.sh b/ci/docker/install/ubuntu_core.sh index 3f8ffb726208..61a4637830da 100755 --- a/ci/docker/install/ubuntu_core.sh +++ b/ci/docker/install/ubuntu_core.sh @@ -39,6 +39,7 @@ apt-get install -y \ liblapack-dev \ libopenblas-dev \ libopencv-dev \ + libturbojpeg \ libzmq3-dev \ ninja-build \ software-properties-common \ @@ -46,6 +47,11 @@ apt-get install -y \ unzip \ wget +# Use libturbojpeg package as it is correctly compiled with -fPIC flag +# https://github.com/HaxeFoundation/hashlink/issues/147 +ln -s /usr/lib/x86_64-linux-gnu/libturbojpeg.so.0.1.0 /usr/lib/x86_64-linux-gnu/libturbojpeg.so + + # Note: we specify an exact cmake version to work around a cmake 3.10 CUDA 10 issue. # Reference: https://github.com/clab/dynet/issues/1457 mkdir /opt/cmake && cd /opt/cmake diff --git a/ci/docker/runtime_functions.sh b/ci/docker/runtime_functions.sh index 93f2d8cc058c..4d9b256634a6 100755 --- a/ci/docker/runtime_functions.sh +++ b/ci/docker/runtime_functions.sh @@ -365,6 +365,7 @@ build_ubuntu_cpu_openblas() { USE_BLAS=openblas \ USE_MKLDNN=0 \ USE_DIST_KVSTORE=1 \ + USE_LIBJPEG_TURBO=1 \ -j$(nproc) }