- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Vladimir Dudnik (Intel)
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
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page