How to compile OpenCV with IPP support

Intel IPP is supposed to speed up certain operations in OpenCV. To try that I compiled OpenCV with support for Intel IPP using these steps:

  1. Download and install Intel IPP as explained here. Make sure that the IPPROOT environment variable is set.

  2. Compile OpenCV from source as explained here. Make sure to download the latest version of OpenCV from Github here.

  3. In the CMake compilation string, add the following option: -D WITH_IPP=ON

You should be able to compile OpenCV with IPP support now.

Note: I had tried to compile OpenCV with Intel IPP 8.0. But, I got a few undefined reference errors with those, which I could not resolve.

Tried with: OpenCV 2.4, Intel IPP 7.1 and Ubuntu 12.04 LTS

5 thoughts on “How to compile OpenCV with IPP support”

      1. Thanks Ashwin: I was only able to compile OpenCV with IPP when I used IPP v.7.1 and disabling BUILD_SHARED_LIBS in OpenCV. Now I am unable to compile my app with the opencv static libraries. I get hunderds of ‘undefined reference’ errors even thought i have included all shared libs in /opt/intel/composer_xe_2013.1.117/ipp/lib/ia32/ . Can you give me an idea that did you build the opencv static libs or shared??


        1. Arshan: I did not do anything particular about shared libraries while building OpenCV. Maybe you first want to check why you had to disable BUILD_SHARED_LIBS.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s