为iPhone构建OpenCV时出错

为iPhone构建OpenCV时出错,iphone,build,opencv,makefile,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/ApplicationServic

我正在尝试为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

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

这个问题最好提交给OpenCV团队,而不是StackOverflow。