SDL_image problem

Hi;
i have the following problem:

i try to load a .jpg image, so do the following:
#include <SDL/SDL_image.h>
int flags = IMG_INIT_JPG;
int initted = IMG_Init(flags);
if ( ( initted & flags ) != flags ){
fprintf(stderr, “IMG_Init: %s\n”, IMG_GetError());
}
then i got
IMG_Init: JPEG images are not supported.

i was running Ubuntu 10.04LTS,
and the SDL version: 1.2.15
SDL_image version: 1.2.12.–

Best Wishes

??? From SEU

@bluedlw

Maybe I’m oversimplifying it, but it looks like SDL_image was built without
JPEG support. I’d try compiling it from source and using that library or
filing a bug with Ubuntu if you needed it.On Mon, Jul 2, 2012 at 11:18 AM, bluedlw wrote:

Hi;
i have the following problem:

i try to load a .jpg image, so do the following:
#include <SDL/SDL_image.h>
int flags = IMG_INIT_JPG;
int initted = IMG_Init(flags);
if ( ( initted & flags ) != flags ){
fprintf(stderr, “IMG_Init: %s\n”, IMG_GetError());
}
then i got
IMG_Init: JPEG images are not supported.

i was running Ubuntu 10.04LTS,
and the SDL version: 1.2.15
SDL_image version: 1.2.12.

Best Wishes

??? From SEU

hellodailiwen at gmail.com


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org