opencv fails to build with ipp support enabled

2020-08-24 05:14发布

问题:

I am having some problems getting opencv to build with ipp support. I am using cmake-gui on debian squeeze 32bit and the most recent intel release of ipp (the complete composer package).

I think I have cmake configured correctly. When I build with ipp enabled, the build fails with this error:

/usr/bin/ld: /opt/intel/ipp/lib/ia32/libippcv_l.a(ippcv00242as.o): relocation R_386_GOTOFF against undefined symbol `ippJumpIndexForMergedLibs' can not be used when making a shared object
/usr/bin/ld: final link failed: Bad value

This does not seem like a configuration type error to me :-)

Any idea on how to resolve this?

Thanks,

-Andres

回答1:

I resolved this issue and thought I should answer my own question just in case someone else trips across this.

Apparently, the opencv lib will not build properly when you specify a shared lib build. When using cmake-gui, you must NOT set this option:

BUILD_SHARED_LIBS

By disabling this option, the opencv lib built and installed just fine



回答2:

If your processor is not Intel family, do cmake -D WITH_IPP=OFF, you don't need it. Then make.



标签: opencv