Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

opencv fails to build with ipp support enabled

Tags:

opencv

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

like image 476
Andres Gonzalez Avatar asked May 09 '12 01:05

Andres Gonzalez


2 Answers

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

like image 138
Andres Gonzalez Avatar answered Sep 22 '22 08:09

Andres Gonzalez


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

like image 21
Plamen Tetevensky Avatar answered Sep 21 '22 08:09

Plamen Tetevensky