Last week, blender 2.81 master stopped working on my ubuntu 19.04 x64 machine: building works fine, but when I try running blender, it will not start because of missing libraries.
Prior to every rebuild, I deleted the build_linux folder because make clean was not enough in the past. I also deleted all compiled dependencies and their sources, letting install_deps.sh redownload and build everything anew, but the problem persists.
(install_deps.sh builds to custom path “/home/mick/Applications/blender-git/deps/”)
To find the problem, I tried install_deps with different parameters:
Test 1)
install_deps.sh --with-all
built without errors using the make command that install_deps returned, but blender won’t start:
./…/build_linux/bin/blender: error while loading shared libraries: liboslcomp.so.1.9: cannot open shared object file: No such file or directory
missing libs from ldd ./…/build_linux/bin/blender output:
liboslcomp.so.1.9 => not found
liboslexec.so.1.9 => not found
libOpenImageIO.so.1.8 => not found
libosdGPU.so.3.4.0 => not found
libosdCPU.so.3.4.0 => not found
libAlembic.so.1.7 => not found
Test 2)
install_deps.sh
built without errors using the make command that install_deps returned, but blender won’t start:
./…/build_linux/bin/blender: error while loading shared libraries: liboslcomp.so.1.9: cannot open shared object file: No such file or directory
missing libs from ldd ./…/build_linux/bin/blender output:
liboslcomp.so.1.9 => not found
liboslexec.so.1.9 => not found
libOpenImageIO.so.1.8 => not found
libosdGPU.so.3.4.0 => not found
libosdCPU.so.3.4.0 => not found
libAlembic.so.1.7 => not found
Test 3)
install_deps.sh --skip-osl
built without errors using the make command that install_deps returned, but blender won’t start:
./…/build_linux/bin/blender: error while loading shared libraries: libOpenImageIO.so.1.8: cannot open shared object file: No such file or directory
missing libs from ldd ./…/build_linux/bin/blender output:
libOpenImageIO.so.1.8 => not found
libosdGPU.so.3.4.0 => not found
libosdCPU.so.3.4.0 => not found
libAlembic.so.1.7 => not found
But the make command contained the correct paths to those “missing” libraries:
make -j8 BUILD_CMAKE_ARGS="-U SNDFILE -U PYTHON -U BOOST -U Boost -U OPENCOLORIO -U OPENEXR -U OPENIMAGEIO -U LLVM -U CYCLES -U OPENSUBDIV -U OPENVDB -U COLLADA -U FFMPEG -U ALEMBIC -D WITH_CODEC_SNDFILE=ON -D PYTHON_VERSION=3.7 -D WITH_OPENCOLORIO=ON -D OPENCOLORIO_ROOT_DIR=/home/mick/Applications/blender-git/deps/ocio -D WITH_OPENIMAGEIO=ON -D OPENIMAGEIO_ROOT_DIR=/home/mick/Applications/blender-git/deps/oiio -D WITH_CYCLES_OSL=OFF -D WITH_LLVM=OFF -D WITH_OPENSUBDIV=ON -D OPENSUBDIV_ROOT_DIR=/home/mick/Applications/blender-git/deps/osd -D WITH_OPENVDB=ON -D WITH_OPENVDB_BLOSC=ON -D WITH_ALEMBIC=ON -D ALEMBIC_ROOT_DIR=/home/mick/Applications/blender-git/deps/alembic -D WITH_CODEC_FFMPEG=ON -D FFMPEG_LIBRARIES=‘avformat;avcodec;avutil;avdevice;swscale;swresample;lzma;rt;theora;theoradec;theoraenc;vorbis;vorbisenc;vorbisfile;ogg;x264;openjp2’
And the files do exist:
libOpenImageIO.so.1.8 => OPENIMAGEIO_ROOT_DIR=/home/mick/Applications/blender-git/deps/oiio
file exists: /home/mick/Applications/blender-git/deps/oiio/lib/libOpenImageIO.so.1.8
libosdGPU.so.3.4.0 => OPENSUBDIV_ROOT_DIR=/home/mick/Applications/blender-git/deps/osd
file exists: /home/mick/Applications/blender-git/deps/osd-3.4.0_RC2/lib/libosdGPU.so.3.4.0
libosdCPU.so.3.4.0 => "
file exists: /home/mick/Applications/blender-git/deps/osd-3.4.0_RC2/lib/libosdCPU.so.3.4.0
libAlembic.so.1.7 => ALEMBIC_ROOT_DIR=/home/mick/Applications/blender-git/deps/alembic
file exists: /home/mick/Applications/blender-git/deps/alembic-1.7.8/lib/libAlembic.so.1.7
So I really don’t understand what’s the issue here.