刘志勇

Results 26 comments of 刘志勇

> I've been running into issues building (during cmake even) this locally on docker (with x86 host mac/linux). Would you be able to provide the Dockerfile that you used :)?...

Clang supports riscv backend, building from scratch is not required for ndk, you just need the sysroot of riscv Do they provide precompiled toolchains? if there is, you can directly...

ubuntu 21.04 android-ndk-r24 no dependency, the `SSIZE_MAX` is defined in `android-ndk-r24/**/sysroot/usr/include/limits.h` ```bash python build.py \ --ndk=/path/to/android-ndk-xxx \ --arch aarch64 ```

modify `src/libpng/CMakeLists.txt` ```bash if(UNIX AND NOT APPLE AND NOT BEOS AND NOT HAIKU) find_library(M_LIBRARY m) else() # libm is not needed and/or not available set(M_LIBRARY "") endif() # set M_LIBRARY...

modify CMakeLists.txt, change `-lpthread` to `-lc` or add a libpthread.so, for example execute the following command: echo 'INPUT(-lc)' > `/path/to/android-ndk-xxx/**/sysroot/usr/lib/aarch64-linux-android/30/libpthread.so` android has no `libpthread.so` and `librt.so` libpthread == libc librt...

modify `libpng/CMakeLists.txt`, about line 32 ``` // enable NEON add_definitions(-DPNG_ARM_NEON_INTRINSICS_AVAILABLE) ```

This error comes from `CMAKE_SYSTEM_PROCESSOR` detection, [CMAKE_SYSTEM_PROCESSOR](https://cmake.org/cmake/help/latest/variable/CMAKE_SYSTEM_PROCESSOR.html) == host arch(linux-x86_64), not `aarch64` or `arm,` so the `libpng_arm_sources` source file will not be compiled, this problem will be fixed in the...

You can also try to build it with `Termux` on the device, it should work note that, need to download the [termux-ndk](https://github.com/Lzhiyong/termux-ndk) I provided, because requires api >= 30

I don't know how to solve it, please make sure the path of ndk in `local.properties` is correct and your phone is aarch64 architecture.

termux-ndk does not depend on termux, it can be installed separately How to integrate the ndk? the gradle plugin will automatically help us execute the cmake command to compile the...