| Summary: | JPEG Assembly using Android API 21 | ||
|---|---|---|---|
| Product: | SDL_image | Reporter: | Isaac Burns <isaacburns> |
| Component: | misc | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | olli.kallioinen |
| Version: | 2.0.0 | ||
| Hardware: | ARM | ||
| OS: | Android (All) | ||
| Attachments: |
patch
patch |
||
Created attachment 2255 [details]
patch
Created attachment 2256 [details]
patch
The patch should actually look more like this.
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
LOCAL_SRC_FILES += $(JPG_LIBRARY_PATH)/jidctfst.S
else
LOCAL_SRC_FILES += $(JPG_LIBRARY_PATH)/jidctfst.c
endif
Fixed, thanks! https://hg.libsdl.org/SDL_image/rev/8402819e7bb2 |
Starting with API 21 (android-21), __ARCH_ARM__ < 6 is no longer defined in platforms/android-21/arch-arm/usr/include/machine/cpu-features.h. Compiling the JPEG library for armeabi errors with: "error Unknown or unsupported ARM architecture". There may be a better way to patch this in the SDL_image/Android.mk file. ifneq (,$(filter $(TARGET_ARCH_ABI),armeabi-v7a arm64-v8a)) LOCAL_SRC_FILES += $(JPG_LIBRARY_PATH)/jidctfst.S else LOCAL_SRC_FILES += $(JPG_LIBRARY_PATH)/jidctfst.c endif Somewhat related to Bug #2501.