Compile issues with OpenCV and Juce on Xcode4.1 in 32bit on Lion

陌路散爱 提交于 2020-01-25 09:58:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!