为 iPhone 构建 OpenCV 时出错
我正在尝试为 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
有人知道如何修复它吗?
非常感
谢埃洛斯
I'm trying to build OpenCV for iPhone. When I launch the make command I get this error message
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
Does anybody know how to fix it?
thanks a lot
Elos
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简短的回答:您无法为 ARM (iPhone) 构建 highgui。仅链接到 OpenCV 项目中您真正需要的二进制文件,例如 libcvxyz。
Short Answer: you can't build highgui for ARM (iPhone). Only link to the binaries you really need from the OpenCV project, e.g. libcvxyz.