Hi there,
Tried both on Ubuntu 18.04, Zorin OS 12
I was compiling Blender just fine on different machines until recently. But now OpenImageDenoise was added, and I had to run make deps
again. This worked well, and afterwards I ran make
to compile Blender itself. After compilation phase however, linking to OpenEXR libs produces the following error:
Scanning dependencies of target blender
[100%] Building C object source/creator/CMakeFiles/blender.dir/buildinfo.c.o
[100%] Linking CXX executable ../../bin/blender
/home/renderman/blender-git/lib/linux_x86_64/openexr/lib/libIlmImf.a(ImfDwaCompressor.o):ImfDwaCompressor.cpp:function Imf_2_3::DwaCompressor::compress(char const*, int, Imath_2_3::Box<Imath_2_3::Vec2<int> >, char const*&): Fehler: undefined reference to 'compressBound'
/home/renderman/blender-git/lib/linux_x86_64/openexr/lib/libIlmImf.a(ImfDwaCompressor.o):ImfDwaCompressor.cpp:function Imf_2_3::DwaCompressor::compress(char const*, int, Imath_2_3::Box<Imath_2_3::Vec2<int> >, char const*&): Fehler: undefined reference to 'compress2'
/home/renderman/blender-git/lib/linux_x86_64/openexr/lib/libIlmImf.a(ImfDwaCompressor.o):ImfDwaCompressor.cpp:function Imf_2_3::DwaCompressor::compress(char const*, int, Imath_2_3::Box<Imath_2_3::Vec2<int> >, char const*&): Fehler: undefined reference to 'compressBound'
/home/renderman/blender-git/lib/linux_x86_64/openexr/lib/libIlmImf.a(ImfDwaCompressor.o):ImfDwaCompressor.cpp:function Imf_2_3::DwaCompressor::compress(char const*, int, Imath_2_3::Box<Imath_2_3::Vec2<int> >, char const*&): Fehler: undefined reference to 'compress2'
/home/renderman/blender-git/lib/linux_x86_64/openexr/lib/libIlmImf.a(ImfDwaCompressor.o):ImfDwaCompressor.cpp:function Imf_2_3::DwaCompressor::compress(char const*, int, Imath_2_3::Box<Imath_2_3::Vec2<int> >, char const*&): Fehler: undefined reference to 'compressBound'
/home/renderman/blender-git/lib/linux_x86_64/openexr/lib/libIlmImf.a(ImfDwaCompressor.o):ImfDwaCompressor.cpp:function Imf_2_3::DwaCompressor::compress(char const*, int, Imath_2_3::Box<Imath_2_3::Vec2<int> >, char const*&): Fehler: undefined reference to 'compress2'
/home/renderman/blender-git/lib/linux_x86_64/openexr/lib/libIlmImf.a(ImfDwaCompressor.o):ImfDwaCompressor.cpp:function Imf_2_3::DwaCompressor::uncompress(char const*, int, Imath_2_3::Box<Imath_2_3::Vec2<int> >, char const*&): Fehler: undefined reference to 'uncompress'
/home/renderman/blender-git/lib/linux_x86_64/openexr/lib/libIlmImf.a(ImfDwaCompressor.o):ImfDwaCompressor.cpp:function Imf_2_3::DwaCompressor::uncompress(char const*, int, Imath_2_3::Box<Imath_2_3::Vec2<int> >, char const*&): Fehler: undefined reference to 'uncompress'
/home/renderman/blender-git/lib/linux_x86_64/openexr/lib/libIlmImf.a(ImfDwaCompressor.o):ImfDwaCompressor.cpp:function Imf_2_3::DwaCompressor::uncompress(char const*, int, Imath_2_3::Box<Imath_2_3::Vec2<int> >, char const*&): Fehler: undefined reference to 'uncompress'
/home/renderman/blender-git/lib/linux_x86_64/openexr/lib/libIlmImf.a(ImfDwaCompressor.o):ImfDwaCompressor.cpp:function Imf_2_3::DwaCompressor::initializeBuffers(unsigned long&): Fehler: undefined reference to 'compressBound'
/home/renderman/blender-git/lib/linux_x86_64/openexr/lib/libIlmImf.a(ImfPxr24Compressor.o):ImfPxr24Compressor.cpp:function Imf_2_3::Pxr24Compressor::compress(char const*, int, Imath_2_3::Box<Imath_2_3::Vec2<int> >, char const*&): Fehler: undefined reference to 'compress'
/home/renderman/blender-git/lib/linux_x86_64/openexr/lib/libIlmImf.a(ImfPxr24Compressor.o):ImfPxr24Compressor.cpp:function Imf_2_3::Pxr24Compressor::uncompress(char const*, int, Imath_2_3::Box<Imath_2_3::Vec2<int> >, char const*&): Fehler: undefined reference to 'uncompress'
/home/renderman/blender-git/lib/linux_x86_64/openexr/lib/libIlmImf.a(ImfZip.o):ImfZip.cpp:function Imf_2_3::Zip::compress(char const*, int, char*): Fehler: undefined reference to 'compress'
collect2: error: ld returned 1 exit status
source/creator/CMakeFiles/blender.dir/build.make:428: recipe for target 'bin/blender' failed
make[3]: *** [bin/blender] Error 1
CMakeFiles/Makefile2:7688: recipe for target 'source/creator/CMakeFiles/blender.dir/all' failed
make[2]: *** [source/creator/CMakeFiles/blender.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make[1]: *** [all] Error 2
GNUmakefile:292: recipe for target 'all' failed
make: *** [all] Error 2
This is consistent on both computers / OSes. It sounds very similar to this already handled bug report, so maybe the issue is linking order again?