Linker error when building 2.4.7 with IPP 8.0
I'm trying to build new OpenCV 2.4.7 with IPP.
If I use old IPP 7.1update1 or uncheck WITH_IPP, it can be build correctly.
But if I upgradde to IPP 8.0 or 8.0update1, it will appear linker error like below:
../../lib/libopencv_core.so.2.4.7: undefined reference to `_intel_fast_memcpy'
../../lib/libopencv_core.so.2.4.7: undefined reference to `__svml_cos4'
../../lib/libopencv_core.so.2.4.7: undefined reference to `__svml_sin2'
../../lib/libopencv_core.so.2.4.7: undefined reference to `__intel_ssse3_rep_memcpy'
../../lib/libopencv_core.so.2.4.7: undefined reference to `__svml_sincos2'
../../lib/libopencv_core.so.2.4.7: undefined reference to `_intel_fast_memset'
../../lib/libopencv_core.so.2.4.7: undefined reference to `__svml_sin4'
../../lib/libopencv_core.so.2.4.7: undefined reference to `__libm_sse2_sincos'
../../lib/libopencv_core.so.2.4.7: undefined reference to `__intel_ssse3_memcpy'
Please help me to correct it, thanks.
Suplement: After I use my correctly built opencv(2.4.7 with IPP 7.1) to build my code. It will appear linker error again, like below:
/usr/bin/ld: cannot find -llibippcore_l.a
/usr/bin/ld: cannot find -llibipps_l.a
/usr/bin/ld: cannot find -llibippi_l.a
/usr/bin/ld: cannot find -llibippcv_l.a
/usr/bin/ld: cannot find -llibippcc_l.a
/usr/bin/ld: cannot find -llibippvm_l.a
/usr/bin/ld: cannot find -ltbb
and these link is come from opencv.pc.
I don't know my link direcctory should be set to /opt/intel/ipp/lib/intel64 or not but I can comfirm the name -llibippcore_l.a is not correct, it should be -lippcore_l.a normally.
The opencv 2.6.1 don't use these linking and can work correctly.
Gianluigi, I have the same problem. Do you use IPP as Intel Composer XE component or standalone version?
I am having the same issue. It appears as if it occurs because the intel compiler knows where some internal libraries are, but you are using traditional ld. Finding the right libraries (so far, irc, imf, and svml appear to be needed) and adding them to the compiler options seems to get further in the compilation process. I don't have it all the way working yet though. If I do, I will post my modified cmake file.