读书人

关于“ can not find ./obj/local/arm

发布时间: 2012-09-09 09:27:54 作者: rapoo

关于“ can not find ./obj/local/armeabi/libopencv_contrib.a: Permission denied ”问题

I am new to Android NDK and I have to use OpenCV in Android.

I tried to ran the NDK ahead , but these errors happened. Maybe I have no permission to use the file" /obj/local/armeabi/libopencv_contrib.a",How can I get the permission? And can the next error be OK when the first error is solved? My workspace OS is Windows7.

翻译:我是一个使用Android NDK的新手,而且我必须在android上面使用OpenCV开发包。


我试图跑NDK,但下面这些错误发生。也许我没有权限来使用文件“/ obj / local / armeabi / libopencv_contrib.a。 “,我怎样才能得到许可呢?并且可以接下来的错误可以当第一个错误是解决吗?我的工作空间是操作系统Windows7。

错误:$ NDK-build

SharedLibrary : libImgFun.so D:/Android/android-ndk-r7b-windows/android-ndk-r7b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/libopencv_contrib.a: No such file: Permission denied

collect2: ld returned 1 exit status /cygdrive/d/Android/android-ndk-r7b-windows/android-ndk-r7b/build/core/build-binary.mk:314: recipe for target `obj/local/armeabi/libImgFun.so' failed make: *[obj/local/armeabi/libImgFun.so] Error 1
























答案:
up vote

I had the same problem on Windows 7. I was able to just use chmod to set the permissions manually, and then it worked. My best guess is that this is a bug with how Cygwin, Windows, and the build process interact.

翻译:

我有相同的问题在Windows 7。我可以只使用chmod来手动设置权限,然后它的工作。我最好的猜测是,这是一个bug与Cygwin,Windows,构建过程交互。

读书人网 >移动开发

热点推荐