eclipse opencv android ndk:由于“NUL”,该项目未构建在此平台上是无效名称。”
我正在尝试构建并运行内置于 android 的 opencv 包中的“教程 2 高级 - 1. 添加本机 OpenCV”教程。我无法按照 http://opencv.itseez.com/trunk/doc/tutorials/introduction/android_binary_package/android_binary_package.html
但是,我成功地从 cygwin 构建了该项目。但是当尝试在 Eclipse 中作为 Android 应用程序运行时,出现错误
“描述资源路径位置类型” 由于“‘NUL’在此平台上是无效名称”,该项目未构建。修复问题,然后尝试刷新此项目并构建它,因为它可能与教程 2 高级 - 1. 添加本机 OpenCV 未知 Java 问题'
任何帮助将不胜感激,谢谢
I'm trying to build and run the 'Tutorial 2 Advanced - 1. Add Native OpenCV' tutorial built into the opencv package for android. I wasn't able to use the ndk-build from eclipse following the tutorial from http://opencv.itseez.com/trunk/doc/tutorials/introduction/android_binary_package/android_binary_package.html
But, I built the project from cygwin successfully. But then when trying to run as an android application in Eclipse, it has the error
'Description Resource Path Location Type
The project was not built due to "'NUL' is an invalid name on this platform.". Fix the problem, then try refreshing this project and building it since it may be inconsistent Tutorial 2 Advanced - 1. Add Native OpenCV Unknown Java Problem'
Any help would be much appreciated, thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您到底用 Cygwin 构建了什么?我遇到了一个错误,导致我无法从命令提示符进行构建,但使用 Cygwin 一切正常。
在 Cygwin 中,我首先导航到我的项目文件夹:
cd /cygdrive/c/"项目文件夹的路径>"/
然后,当我在项目文件夹中时,输入:
/cygdrive/c/"android-ndk-r7b 文件夹的路径"/ndk-build
使用这些命令后,我能够运行教程 2 高级 - 1. 添加本机 OpenCV 项目。让我知道这对您有帮助吗?
What exactly did you build with Cygwin? I've had an error which prevented me from building from the command prompt but with Cygwin everything works fine.
In Cygwin I first navigate to my project folder:
cd /cygdrive/c/"path to your project folder>"/
then while I'm in the project folder type:
/cygdrive/c/"path to android-ndk-r7b folder"/ndk-build
After using these commands I was able to run the Tutorial 2 Advanced - 1. Add Native OpenCV project. Let me know if this helps you?