Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error while compiling ndk program- permission denied

I get this error while compiling an ndk program in cygwin. I don't have any idea why the arm-linux-androideabi-ld.exe file is not getting executed.

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

Help me. I'd like to know whether it is a cygwin error or it is a problem in the code ?

like image 1000
sajay Avatar asked Feb 15 '26 08:02

sajay


1 Answers

Yeah I did chmod a+rwx obj/local/armeabi/libcrystax_static.a and got the permission granted but now it is resulting in a new error. I have searched completely and I cant find any 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
like image 160
sajay Avatar answered Feb 19 '26 10:02

sajay



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!