问题
I'm trying to compile my VST Plugin with Xcode4.1 in 32Bit. I'm using the Juce Framework and integrated OpenCV 2.2 in it. I installed OpenCV with homebrew and this command:
sudo brew install opencv -build32
But when I'm compiling the project with Xcode4.1 in 32bit I will get this errors:
Undefined symbols for architecture i386: "_cvLoadImage", referenced from: ...
In my Build Settings I have defined the header and library search paths.
header search paths: /usr/local/Cellar/opencv/2.2/include
/usr/local/Cellar/opencv/2.2/include/opencv
/usr/local/Cellar/opencv/2.2/include/opencv2
library search paths: /usr/local/Cellar/opencv/2.2/lib
other linker flags: -L/usr/local/Cellar/opencv/2.2/lib -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lopencv_flann
But it doesn't compile successful. I hope someone can help me?
回答1:
I have solved the problem with the help of the wiki article section Using the OpenCV libraries in an Xcode OS X project. Just needed to add the dylib files to my project. :-)
来源:https://stackoverflow.com/questions/7085759/compile-issues-with-opencv-and-juce-on-xcode4-1-in-32bit-on-lion