简体   繁体   English

eclipse opencv android ndk:由于“'NUL'在该平台上是无效名称”,因此未构建该项目。

[英]eclipse opencv android ndk: The project was not built due to “'NUL' is an invalid name on this platform.”

I'm trying to build and run the 'Tutorial 2 Advanced - 1. Add Native OpenCV' tutorial built into the opencv package for android. 我正在尝试构建和运行“进阶教程2-1.添加本机OpenCV”教程,该教程内置于Android的opencv软件包中。 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 http://opencv.itseez.com/trunk/doc/tutorials/introduction/android_binary_package/android_binary_package.html上的教程之后,我无法使用eclipse的ndk-build

But, I built the project from cygwin successfully. 但是,我成功地从cygwin建立了该项目。 But then when trying to run as an android application in Eclipse, it has the error 但是当尝试在Eclipse中作为android应用程序运行时,它出现了错误

'Description Resource Path Location Type The project was not built due to "'NUL' is an invalid name on this platform.". “描述资源路径位置类型”由于“'NUL'在此平台上是无效名称”,因此未构建项目。 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' 解决此问题,然后尝试刷新此项目并进行构建,因为它可能与教程2高级教程-1不一致。添加本机OpenCV未知Java问题'

Any help would be much appreciated, thanks 任何帮助将不胜感激,谢谢

What exactly did you build with Cygwin? 您使用Cygwin究竟构建了什么? I've had an error which prevented me from building from the command prompt but with Cygwin everything works fine. 我遇到了一个错误,无法在命令提示符下进行构建,但是使用Cygwin时,一切正常。

In Cygwin I first navigate to my project folder: cd /cygdrive/c/"path to your project folder>"/ 在Cygwin中,我首先导航到我的项目文件夹: cd / cygdrive / c /“项目文件夹的路径>” /

then while I'm in the project folder type: /cygdrive/c/"path to android-ndk-r7b folder"/ndk-build 然后,当我在项目文件夹中时,键入: / cygdrive / c /“ android-ndk-r7b文件夹的路径” / ndk-build

After using these commands I was able to run the Tutorial 2 Advanced - 1. Add Native OpenCV project. 使用这些命令后,我可以运行教程2高级-1.添加本机OpenCV项目。 Let me know if this helps you? 让我知道这是否对您有帮助?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM