-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Broken jpeg recipe for NDK 23b? #2603
Comments
To fix the issue, I had to copy the jpeg recipe and make two changes:
(this doesn't really matter, but it gives an annoying error once the build has failed once) and 2) (which is the real source of the problem, I think) |
The issue is based on the new release of I made a few changes on the recipe myself on line 33 '-DCMAKE_SYSTEM_PROCESSOR={cpu}'.format(cpu='aarch64' if arch.arch == "arm64-v8a" else "armv7-a") I changed the cpu value to suit the values on this file set(NDK_PROC_aarch64_ABI "arm64-v8a")
set(NDK_PROC_armv7-a_ABI "armeabi-v7a")
set(NDK_PROC_armv6_ABI "armeabi-v6")
set(NDK_PROC_armv5te_ABI "armeabi")
set(NDK_PROC_i686_ABI "x86")
set(NDK_PROC_mips_ABI "mips")
set(NDK_PROC_mips64_ABI "mips64")
set(NDK_PROC_x86_64_ABI "x86_64")
set(NDK_ARCH_arm64_ABI "arm64-v8a")
set(NDK_ARCH_arm_ABI "armeabi")
set(NDK_ARCH_mips_ABI "mips")
set(NDK_ARCH_mips64_ABI "mips64")
set(NDK_ARCH_x86_ABI "x86")
set(NDK_ARCH_x86_64_ABI "x86_64")
endif()
# Validate inputs.
if(CMAKE_ANDROID_ARCH_ABI AND NOT DEFINED "NDK_ABI_${CMAKE_ANDROID_ARCH_ABI}_PROC")
message(FATAL_ERROR "Android: Unknown ABI CMAKE_ANDROID_ARCH_ABI='${CMAKE_ANDROID_ARCH_ABI}'.")
endif()
if(CMAKE_SYSTEM_PROCESSOR AND NOT DEFINED "NDK_PROC_${CMAKE_SYSTEM_PROCESSOR}_ABI")
message(FATAL_ERROR "Android: Unknown processor CMAKE_SYSTEM_PROCESSOR='${CMAKE_SYSTEM_PROCESSOR}'.")
endif() and it works too. Also commenting out '-DCMAKE_SYSTEM_PROCESSOR={cpu}'.format(cpu='arm'), as @gbm001 stated works too |
Ah, that makes sense. I'd tried a few different cmake versions (newer and older) but not that far back. |
Fixed via #2586, feel free to re-open the issue if you're still encountering it on the |
Checklist
p4a.branch = develop
)Versions
Description
My main app, which uses Pillow, no longer works. I think I have tracked the issue down to the combination of NDK 23b and the jpeg recipe.
buildozer.spec
Command:
Spec file:
Logs
More complete but still somewhat trimmed log:
https://pastebin.com/Lw3HTHGc
The text was updated successfully, but these errors were encountered: