I’m pretty sure others encountered the same problem, but I still can’t find a solution (only mentioned the problem here in an other thread)
When I build my Android binary, and enable jpeg for SDL_image, I get the following message for the x86 target:
Code:
jni/SDL2_image-2.0.0/external/jpeg-9/jidctfst.S:17:34: fatal error: machine/cpu-features.h: No such file or directory
I tried many ways to fix it, but can’t solve it
Could someone enlighten me what to do to be able to use jpegs with SDL_image on x86 Android?
Thanks in advance!
Hello,
could it be possible that you need a more recent NDK ? (r9d is the latest)
and/or use a more recent android target. --> target-19 is the latest
Cheers,
SylvainOn Tue, May 27, 2014 at 8:59 PM, glezmen wrote:
I’m pretty sure others encountered the same problem, but I still can’t
find a solution (only mentioned the problem here in an other thread)
When I build my Android binary, and enable jpeg for SDL_image, I get the
following message for the x86 target:
Code:
jni/SDL2_image-2.0.0/external/jpeg-9/jidctfst.S:17:34: fatal error:
machine/cpu-features.h: No such file or directory
I tried many ways to fix it, but can’t solve it [image: Sad]
Could someone enlighten me what to do to be able to use jpegs with
SDL_image on x86 Android?
Thanks in advance!
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
–
Sylvain Becker
Switch the .S for the .C, internal jpeg build is not handling asm platform
cases correctly righ now, i guess the’d take a patch if anyone fixes it ;-).
Juan Manuel Borges Ca??o wrote:
Switch the .S for the .C, internal jpeg build is not handling asm platform cases correctly righ now, i guess the’d take a patch if anyone fixes it ;-).
Thanks for the hint!
I added both files in the Android.mk, and enclosed the .S file in a #ifdef arm and the .c file in an #ifndef arm block, and now it builds for all platforms, i only have to test it now
glezmen wrote:
Thanks for the hint!
I added both files in the Android.mk, and enclosed the .S file in a #ifdef arm and the .c file in an #ifndef arm block, and now it builds for all platforms, i only have to test it now
ehh, no, still doesn’t work, complains about undefined jpeg_idct_ifast
but i’ll investigate the issue more