File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -623,14 +623,22 @@ Note: using `TARGET=CORTEXA57` in place of `ARMV8` will pick up better
623
623
optimized routines. Implementations for the `CORTEXA57 ` target are compatible
624
624
with all other `ARMV8 ` targets.
625
625
626
- Note: for NDK 23 b, something as simple as:
626
+ Note: for NDK 23 b and later , something as simple as:
627
627
```bash
628
628
export PATH=/opt/android-ndk-r23 b/toolchains/llvm/prebuilt/linux-x86 _64 /bin/:$PATH
629
- make HOSTCC=gcc CC=/opt/android-ndk-r23 b/toolchains/llvm/prebuilt/linux-x86 _64 /bin/aarch64 -linux-android31 -clang ONLY_CBLAS=1 TARGET=ARMV8
629
+ make HOSTCC=gcc CC=/opt/android-ndk-r23 b/toolchains/llvm/prebuilt/linux-x86 _64 /bin/aarch64 -linux-android31 -clang ONLY_CBLAS=1 TARGET=ARMV8 RANLIB=echo
630
630
```
631
631
appears to be sufficient on Linux. On OSX, setting AR to the ar provided in the
632
632
"bin" path of the NDK (probably `llvm-ar`) is also necessary.
633
633
634
+ If you prefer building with CMake, running
635
+ ```bash
636
+ cmake -DANDROID_ABI=arm64 -v8 a -DTARGET=ARMV8 -DCMAKE_TOOLCHAIN_FILE=/opt/android-ndk-r27 /build/cmake/android.toolchain.cmake -DNOFORTRAN=1 -DANDROID_PLATFORM=android-23 ..
637
+ cmake --build .
638
+ ```
639
+ in your build directory should work (be sure to adjust the toolchain_file argument according to where you installed the NDK, and the ANDROID_PLATFORM
640
+ according to the minimum version of Android you want to support. (If you leave out the ANDROID_PLATFORM parameter, the build will fail with an error
641
+ message about a missing declaration or missing header file complex.h)
634
642
635
643
??? note "Alternative build script for 3 architectures"
636
644
You can’t perform that action at this time.
0 commit comments