Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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.

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

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

usr/lib/libIlmImfUtil.so

This seems to be a problem with the software version.