Visa signatur
Gaming: Epenis ++
Everything else: MacBook Air M1
Work: MBP M1
Försöker köra android NDK. Ska testa att köra hello-jni med hjälp av ndk-build.
Kör det på en ubuntu maskin.
efter att jag extraherat filerna till home/user/uibi/a-ndk
skrev jag:
export NDK=/home/uibi/a-ndk
export PATH=$NDK:$PATH
och slutligen PROJECT=/home/uibi/workspace
kopierade hello-jni mappen till workspace och testade köra ndk-build. får då följande fel.
Någon som vet vad jag missat?
uibi@LinuxVM:~/workspace/hello-jni$ sudo ndk-build -B V=1
[sudo] password for uibi:
sudo: ndk-build: command not found
uibi@LinuxVM:~/workspace/hello-jni$ ndk-build
Gdbserver : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver
Gdbsetup : libs/armeabi/gdb.setup
Compile thumb : hello-jni <= hello-jni.c
/bin/sh: /home/uibi/a-ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc: not found
make: *** [/home/uibi/workspace/hello-jni/obj/local/armeabi/objs-debug/hello-jni/hello-jni.o] Error 127
Gaming: Epenis ++
Everything else: MacBook Air M1
Work: MBP M1
Copyright © 1999–2023 Geeks AB. Allt innehåll tillhör Geeks AB.
Citering är tillåten om källan anges.