在Lion上的32位Xcode4.1上编译OpenCV和Juce的问题 [英] Compile issues with OpenCV and Juce on Xcode4.1 in 32bit on Lion

查看:120
本文介绍了在Lion上的32位Xcode4.1上编译OpenCV和Juce的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用32位的Xcode4.1编译我的VST插件.我正在使用Juce Framework并在其中集成了OpenCV 2.2.我使用自制软件和以下命令安装了OpenCV:

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

但是当我使用32位Xcode4.1编译项目时,会出现以下错误:

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?

推荐答案

我已经在Wiki文章部分在Xcode OS X项目中使用OpenCV库.只需将dylib文件添加到我的项目中即可. :-)

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

这篇关于在Lion上的32位Xcode4.1上编译OpenCV和Juce的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆