gpt4 book ai didi

android - 编译 ndk 程序时出错 - 权限被拒绝

转载 作者:太空狗 更新时间:2023-10-29 14:28:20 25 4
gpt4 key购买 nike

我在 cygwin 中编译 ndk 程序时遇到此错误。我不知道为什么 arm-linux-androideabi-ld.exe 文件没有被执行。

G:/android/android-ndk-r7-crystax-4/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/libcrystax_static.a: No such file: Permission denied
collect2: ld returned 1 exit status

帮帮我。请问是cygwin的错误还是代码的问题?

最佳答案

是的,我执行了 chmod a+rwx obj/local/armeabi/libcrystax_static.a 并获得了许可,但现在它导致了一个新的错误。我已经完全搜索过了,找不到任何 undefined reference

ABI='armeabi'
ABI='armeabi-v7a'
ABI='x86'
SharedLibrary : libcom_graphics_NativeGraphics.so

./obj/local/armeabi\libcxcore.a(cxswitcher.o): In function `cvGetModuleInfo':
G:\android\workspace\anpr4/jni/cxcore/src/cxswitcher.cpp:647: undefined reference to `__mb_sb_limit'
G:\android\workspace\anpr4/jni/cxcore/src/cxswitcher.cpp:647: undefined reference to `_CurrentRuneLocale'
./obj/local/armeabi\libcxcore.a(cxswitcher.o): In function `icvUpdatePluginFuncTab':
G:\android\workspace\anpr4/jni/cxcore/src/cxswitcher.cpp:381: undefined reference to `__mb_sb_limit'
G:\android\workspace\anpr4/jni/cxcore/src/cxswitcher.cpp:381: undefined reference to `_CurrentRuneLocale'
collect2: ld returned 1 exit status
/cygdrive/g/android/android-ndk-r7-crystax-4/build/core/build-binary.mk:324: recipe for target `obj/local/armeabi/libcom_graphics_NativeGraphics.so' failed
make: *** [obj/local/armeabi/libcom_graphics_NativeGrap

hics.so] Error 1

关于android - 编译 ndk 程序时出错 - 权限被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9556046/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com