/usr/bin/ld: /usr/local/lib64/libopencv_imgcodecs.so.4.1.1: undefined reference to `Imf_2_3::InputFile::InputFile(char const*, int)' [closed]

asked 2019-10-26 20:06:30 -0600

HelloWorld gravatar image

updated 2019-10-26 21:28:22 -0600

supra56 gravatar image

I have a weird problem.

/usr/bin/ld: warning: libIlmThread-2_3.so.24, needed by /usr/local/lib64/libopencv_imgcodecs.so.4.1.1, not found (try using -rpath or -rpath-link) /usr/bin/ld: /usr/local/lib64/libopencv_imgcodecs.so.4.1.1: undefined reference to `Imf_2_3::InputFile::InputFile(char const*, int)'

This is the installation step:
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local .. -D OPENCV_EXTRA_MODULES_PATH=/home/ztftrue/Downloads/opencv_contrib-master/modules/ -D WITH_OPENEXR=off make -j12 sudo make install

system info
``` Linux archlinux 5.3.7-arch1-1-ARCH #1 SMP PREEMPT Fri Oct 18 00:17:03 UTC 2019 x86_64 GNU/Linux

```

I use cmake, I don't know why an error occurred.

usr/lib/libIlmImf-2_4.so
usr/lib/libIlmImf-2_4.so.24
usr/lib/libIlmImf-2_4.so.24.0.0
usr/lib/libIlmImf.so
usr/lib/libIlmImfUtil-2_4.so
usr/lib/libIlmImfUtil-2_4.so.24
usr/lib/libIlmImfUtil-2_4.so.24.0.0
usr/lib/libIlmImfUtil.so

This seems to be a problem with the software version.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by HelloWorld
close date 2019-10-28 05:05:17.115909

Comments

1

do you actually need openexr support (floating point images, HDR and such) ?

it seems, some dependancies of the 3rdparty openexr module have the wrong version.

you could disable it with

cmake -DBUILD_OPENEXR=OFF -WITH_OPENEXR=OFF
berak gravatar imageberak ( 2019-10-27 08:36:44 -0600 )edit
1

you are right , thank you.

HelloWorld gravatar imageHelloWorld ( 2019-10-28 05:04:47 -0600 )edit