Skip to content
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

SDL_image 2 not building JPEG support for Android x86 #82

Closed
SDLBugzilla opened this issue Feb 11, 2021 · 0 comments
Closed

SDL_image 2 not building JPEG support for Android x86 #82

SDLBugzilla opened this issue Feb 11, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: unspecified
Reported for operating system, platform: Android (All), x86

Comments on the original bug report:

On 2014-04-15 17:54:28 +0000, Davide Coppola wrote:

Created attachment 1621
Patch to build SDL_image with JPEG support for Android

When trying to build SDL_image 2 (latest version from Hg repository) for Android I get the following error (I stripped the paths for brevity):

[x86] Compile : SDL2_image <= jidctfst.S
jni/SDL2_image/external/jpeg-9/jidctfst.S:17:34: fatal error: machine/cpu-features.h: No such file or directory
#include <machine/cpu-features.h>
^
compilation terminated.
make: *** [obj/local/x86/objs/SDL2_image/external/jpeg-9/jidctfst.o] Error 1
make: *** Waiting for unfinished jobs....

That's because a cpu-features.h is only provided for ARM architectures.

In order to fix it I changed the Android.mk file in SDL_image/ according to the one in SDL_image/external/jpeg-9 and now it builds and works fine.
I've attached an unified patch so you can have a look at my changes.

P.S.
Version doesn't have any 2.x entry so I had to use "unspecified" for the bug.

On 2014-04-18 00:31:38 +0000, Sam Lantinga wrote:

Fixed, thanks!
https://hg.libsdl.org/SDL_image/rev/18ce78d0a125

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant