为iPhone构建OpenCV时出错

时间:2010-12-05 01:51:14

标签: iphone build opencv makefile

我正在尝试为iPhone构建OpenCV。当我启动make命令时,我收到此错误消息

 s.framework/Headers/AXUIElement.h:65: error: ‘CGCharCode’ has not been declared
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXUIElement.h:65: error: ‘CGKeyCode’ has not been declared
make[3]: *** [src/highgui/CMakeFiles/highgui.dir/loadsave.o] Error 1
make[2]: *** [src/highgui/CMakeFiles/highgui.dir/all] Error 2

有人知道如何解决它吗?

非常感谢

ELOS

1 个答案:

答案 0 :(得分:2)

简答:你不能为ARM(iPhone)构建highgui。只链接到OpenCV项目中真正需要的二进制文件,例如libcvxyz。