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

有人知道如何解决吗?

非常感谢

埃洛斯

最佳答案

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

关于iphone - 为iPhone构建OpenCV时出错,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/4356949/

10-13 05:40