Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

OpenCV and IPP Conflict

akats
Beginner
475 Views
Hi,

I am using OpenCV Beta 5, and IPP 5.0. I also have Matlab 7 install, and that came with MKL 7.1 and IPP 2.0 runtime. This generated conflicts, so I changed the directory of Matlabs IPP to hide it from my C++ compiler, and I re-installed IPP. Now, it gives me the access violation exception when I call cvCalcOpticalFlowPyrLK. I tried hiding MKL from my application by renaming the corresponding .dll file, and it did not help. It works fine when I disable IPP, so I know this is an integration issue.

I am running Windows XP, and Visual Studio 2003. My project links to all the IPP stublibs, and currently all the IPP DLLs that it loads are from the IPP directory, at least according to VC++.

Can someone suggest some things I can try to fix this? Thanks!

Anatoliy
0 Kudos
1 Reply
Intel_C_Intel
Employee
475 Views
Hi,
The possible way is to rename the environment variable IPPROOT for your IPP 5.0 installation and use this name while building and running your application using OpenCV and IPP 5.0. Then you could restore IPPROOT value for MATLAB. But it hardly helps if you are using OpenCV and MATLAB in one application.
More intricate way is to modify OpenCV code (_cvipp.h. _cxipp.h. cvinfo.cpp). Eg to rename processor specific library (to ippiw7_, ippsw7_, ippcvw7_.dll/lib), search it in cvinfo.cpp and build your application with them witout ipp.lib, ipp.dll.
Thanks,
Alexander
0 Kudos
Reply