Archimedes wrote: Superbatil wrote:
~/.../src/Crystal $ /data/data/com.termux/files/usr/lib/NdkDir/ndk-build
fcntl(): Permission denied
Looks good so far. However, i'm wondering from what directory you start ndk-build.
To test, wether your configuration of Android NDK is working, extract the following archive (a ready to go Stockfish package) to your home directory, change to the jni folder and type ndk-build.
https://pixeldrain.com/u/f6cpZeiiIf it works, your Installation of Android NDK is okay so far.
"ex#1"
~$ ls
src jni
~ $ ndk-build -B
ndk-build: command not found
or
~$ ls
src jni
~ $ ndk-build
ndk-build: command not found
"ex#2"
~$ cd jni
~/jni $ ls
Android.mk Application.mk
~/jni $ ndk-build -B
ndk-build: command not found
or
~/jni $ ndk-build
ndk-build: command not found
if I used full path
then.......
~/jni $ /data/data/com.termux/files/usr/lib/android-ndk/ndk-build
fcntl(): Permission denied
CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++.real": cannot locate symbol "strtof_l" referenced by "/data/data/com.termux/files/usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang-9"...
CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++.real": cannot locate symbol "strtof_l" referenced by "/data/data/com.termux/files/usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang-9"...
CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++.real": cannot locate symbol "strtof_l" referenced by "/data/data/com.termux/files/usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang-9"...
CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++.real": cannot locate symbol "strtof_l" referenced by "/data/data/com.termux/files/usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang-9"...
[arm64-v8a] Compile++ : Stockfish <= benchmark.cpp
CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++.real": cannot locate symbol "strtof_l" referenced by "/data/data/com.termux/files/usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang-9"...
make: *** [/data/data/com.termux/files/usr/lib/android-ndk/build/core/build-binary.mk:478: /data/data/com.termux/files/home/obj/local/arm64-v8a/objs/Stockfish/__/src/benchmark.o] Aborted
~/jni $
or
~/jni $ cd ~ $ /data/data/com.termux/files/usr/lib/android-ndk/ndk-build -B
fcntl(): Permission denied CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++.real": cannot locate symbol "strtof_l" referenced by "/data/data/com.termux/files/usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang-9"... CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++.real": cannot locate symbol "strtof_l" referenced by "/data/data/com.termux/files/usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang-9"...
CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++.real": cannot locate symbol "strtof_l" referenced by "/data/data/com.termux/files/usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang-9"...
CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++.real": cannot locate symbol "strtof_l" referenced by "/data/data/com.termux/files/usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang-9"...
[arm64-v8a] Executable : Stockfish
CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++.real": cannot locate symbol "strtof_l" referenced by "/data/data/com.termux/files/usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang-9"...
make: *** [/data/data/com.termux/files/usr/lib/android-ndk/build/core/build-binary.mk:738: obj/local/arm64-v8a/Stockfish] Aborted
~ $