Linux requiring android (arm-eabi-gcc) is missing when it is clearly there

So I'm just trying to create a library using the NDK. I believe that the Android.mk and Application.mk files are correct, but regardless of whether they are or not.

when executed make APP=helloin the NDK directory

Android NDK: creating a hello application
make: ./ build / prebuilt / linux-x86 / arm-eabi-4.4.0 / bin / arm-eabi-gcc: Command not found
Compile thumb: hello <= apps / ssa / project / jni / hello / *. C
/bin/sh:./build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/arm-eabi-gcc: not found
make: *** [out / apps / ssa / armeabi / objs / hello / hello / *. o] Error 127

So, I decided to go see where the file is.

cd build/prebuild/linux-x86/arm-eabi-4.4.0/bin/

The result ls -lclearly shows that the file exists:

...
-rwxr-xr-x 1 bpescato bpescato  238680 2010-05-03 18:24 arm-eabi-g++
-rwxrwxrwx 1 bpescato bpescato  234520 2010-08-20 09:27 arm-eabi-gcc
-rwxr-xr-x 1 bpescato bpescato  234520 2010-05-03 18:24 arm-eabi-gcc-4.4.0
...

, :

$./arm-eabi-gcc

bash:./arm-eabi-gcc:

, , :

$less arm-eabi-gcc

"arm-eabi-gcc" . ?

, , .

- , ?

+3
2

, , , ( ) 64- , 32- .

, , 64- .

32- android ndk, 32- .

+1

, , - . ( "cmp arm-eabi-gcc arm-eabi-gcc-4.4.0", .)

"ldd arm-eabi-gcc" - ? , "arm-eabi-gcc", -, .

"strace./arm-eabi-gcc", , .

+1
source

Source: https://habr.com/ru/post/1760747/


All Articles