Compile issues with OpenCV and Juce on Xcode4.1 in

2019-08-30 19:34发布

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条回答
手持菜刀,她持情操
2楼-- · 2019-08-30 19:40

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. :-)

查看更多
登录 后发表回答