Undefined reference Iex_2_2::
Hi,
It will seem to be a noob problem but I can't find the solution. I'm just trying for the moment to compile the sample of given on this link : http://docs.opencv.org/2.4/doc/tutori...
My linking errors are
//usr/lib/x86_64-linux-gnu/libIlmImf-2_2.so.22 : référence indéfinie vers « Iex_2_2::BaseExc::assign(std::__cxx11::basic_stringstream<char, std::cha r_traits<char="">, std::allocator<char> >&) » //usr/lib/x86_64-linux-gnu/libIlmImf-2_2.so.22 : référence indéfinie vers « Iex_2_2::throwErrnoExc(std::__cxx11::basic_string<char, std::char_traits <char="">, std::allocator<char> > const&) » //usr/lib/x86_64-linux-gnu/libIlmImf-2_2.so.22 : référence indéfinie vers « Iex_2_2::BaseExc::BaseExc(std::__cxx11::basic_stringstream<char, std::ch ar_traits<char="">, std::allocator<char> >&) » //usr/lib/x86_64-linux-gnu/libIlmImf-2_2.so.22 : référence indéfinie vers « Iex_2_2::BaseExc::BaseExc(std::__cxx11::basic_string<char, std::char_tra its<char="">, std::allocator<char> > const&) »
(Référence indéfinie is Undefined reference, just my system is in french)
I'm on Debian stretch and I just installed the versions from the official repos.
Versions :
- OpenCV -> 2.4.9.1
- gcc -> 6.3.0
- OpenEXR (because I understood Iex is related to Ilmbase in OpenEXR or something) -> 1.6.1
I understood like maybe these libs were compiled with an older compiler or something like that, I tried some things but I don't really have a full understanding.
Thanks :)
cmake ... -DWITH_OPENEXR=OFF -BUILD_OPENEXR=OFF
Hi, thank you very much for your answer.
About the age of the version, it was just because it's the version available on Debian repositories, and also the version installed in m university.
I tried to add your flags, it didn't work (maybe I didn't do it well)
Finally I compiled the OpenCV 2.4.13.3 and it works perfectly.