Community
cancel
Showing results for 
Search instead for 
Did you mean: 
perceive
Beginner
72 Views

Getting opencv on os x to recognize IPP

Hi-

I'm having trouble getting OpenCV to recognize IPP on os x.

Here's my code snippet:
#include "cv.h"
#include "highgui.h"
#include "cxcore.h"
#include
int main (int argc, char *argv[]) {
// Display if the IPP library got loaded into opencv.
const char * opencvLibraries = 0;
const char * addonModules = 0;
cvGetModuleInfo (0, &opencvLibraries, &addonModules);
std::cout << "OpenCV Libraries: " << opencvLibraries << "\n";
std::cout << "OpenCV Add On Modules: " << addonModules << "\n";
}

Here's the Makefile:
TARGETS = main
default: ${TARGETS}
clean:
rm *.o ${TARGETS}
.PHONY: default

CXX=icpc
CXXFLAGS=-I/usr/local/include/ -I/usr/local/include/opencv
LDFLAGS=-L/usr/local/lib/ -lcv -lcxcore -lhighgui

main:main.cpp
$(CXX) $(CXXFLAGS) $(LDFLAGS) main.cpp -o main


Here's the output:
OpenCV Libraries: cxcore: 1.1.0, cv: 1.1.0
OpenCV Add On Modules:

Here's the version of my tools:
awagner@hesse(ttys001)->icpc -v
Version 11.0

Any ideas? How does one tell opencv where IPP is installed?

Cheers,
Drew
0 Kudos
2 Replies
Vladimir_Dudnik
Employee
72 Views


Hello,

OpenCV look for IPP shared objects at run time, soyou may need to check ifDYLIB_LIBRARY_PATH environment variable include path to IPP shared objects.

Regards,
Vladimir
perceive
Beginner
72 Views


Hello,

OpenCV look for IPP shared objects at run time, soyou may need to check ifDYLIB_LIBRARY_PATH environment variable include path to IPP shared objects.

Regards,
Vladimir

Thanks a lot Vladimir! You guys provide excellent support for your products!

I added the following to my .bashrc:

export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:/Library/Frameworks/Intel_IPP.framework/Libraries

Now the output is:

OpenCV Libraries: cxcore: 1.1.0, cv: 1.1.0
OpenCV Add On Modules: libippcv-6.0.dylib, libippi-6.0.dylib, libipps-6.0.dylib, libippvm-6.0.dylib, libippcc-6.0.dylib
optimizedFunctionCount = 380

Now I'm off to go see what improvements that made!

Reply