首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

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

2012-09-09 
关于“ can not find ./obj/local/armeabi/libopencv_contrib.a: Permission denied ”问题I am new to Andr

关于“ 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,构建过程交互。

  • Open a console window
  • > bash
  • > cd /cygdrive/<driveletter>/<wherever your project is>/obj/local/armeabi
  • > chmod 777 ./*

  • 翻译:打开Cygwin
  • 输入:cd /cygdrive/放工程文件的盘符/工程文件目录/obj/local/armeabi
  • 输入:chmod 777 ./*
  • (注:上面的错误的结果是没有生成libs文件,但生成了obj文件,因此改这个错误的时候obj不要删)

热点排行