-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Riscv64 support #19
Comments
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 specify the sysroot flag Of course this just compiles, just like you can cross-compile aarch64 on x86_64, but you can't execute it |
I cant build it by error Ubunut 22.04 LTS
I think it related with some dependency. What OS are you using to build it? |
ubuntu 21.04 python build.py \
--ndk=/path/to/android-ndk-xxx \
--arch aarch64 |
For test scripts i decided in first just build by guide README.md. I took fresh docker image with ubuntu 22.04 installed tools and run command
I have the error
|
modify 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 direct
set(M_LIBRARY "m") |
I did it but have the error
|
modify CMakeLists.txt, change or add a libpthread.so, for example execute the following command: android has no |
i did it
but now I have another error related with libpng
|
modify
|
I modified it, but same error
in out I see
but I have same error |
This error comes from # set definitions and sources for arm
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm" OR
CMAKE_SYSTEM_PROCESSOR MATCHES "^aarch64")
set(PNG_ARM_NEON_POSSIBLE_VALUES check on off)
set(PNG_ARM_NEON "check" CACHE STRING "Enable ARM NEON optimizations:
check: (default) use internal checking code;
off: disable the optimizations;
on: turn on unconditionally.")
set_property(CACHE PNG_ARM_NEON PROPERTY STRINGS
${PNG_ARM_NEON_POSSIBLE_VALUES})
list(FIND PNG_ARM_NEON_POSSIBLE_VALUES ${PNG_ARM_NEON} index)
if(index EQUAL -1)
message(FATAL_ERROR
"PNG_ARM_NEON must be one of [${PNG_ARM_NEON_POSSIBLE_VALUES}]")
elseif(NOT ${PNG_ARM_NEON} STREQUAL "off")
set(libpng_arm_sources
arm/arm_init.c
arm/filter_neon.S
arm/filter_neon_intrinsics.c
arm/palette_neon_intrinsics.c)
if(${PNG_ARM_NEON} STREQUAL "on")
add_definitions(-DPNG_ARM_NEON_OPT=2)
elseif(${PNG_ARM_NEON} STREQUAL "check")
add_definitions(-DPNG_ARM_NEON_CHECK_SUPPORTED)
endif()
else()
add_definitions(-DPNG_ARM_NEON_OPT=0)
endif()
endif() |
You can also try to build it with |
How i can to add riscv64?
update:
i found this https://github.com/riscv-android-src/riscv-android/blob/main/doc/prebuilt_projects.md
for build prebuilds and ndk.
The text was updated successfully, but these errors were encountered: