| Summary: | SDL_image won't load PNGs in Windows XP | ||
|---|---|---|---|
| Product: | SDL_image | Reporter: | Donald Straney <burntfuse> |
| Component: | misc | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED WORKSFORME | QA Contact: | Sam Lantinga <slouken> |
| Severity: | major | ||
| Priority: | P2 | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Windows (XP) | ||
|
Description
Donald Straney
2006-09-21 15:27:48 UTC
Hi, Please try SDL_Image from SVN, I have fixed similar error in 2004 (http://www.libsdl.org/cgi/viewvc.cgi/trunk/SDL_image/IMG_png.c?view=log) -- Dmitry Yakimov Thanks, but when I try to compile in Dev-C++ I get these errors: [Linker error] undefined reference to `SDL_RWFromFile' [Linker error] undefined reference to `SDL_SetError' I've got the SDL 1.2.9 development libraries installed, and the extra commands passed to the compiler are "-lmingw32 -lSDLmain -lSDL". (I tried searching to see if there was something I was doing wrong, but couldn't find anything) With Dev-C++ you have to create a .a lib file for any dll's you want to call directly(Dev will occasionally let you get away without them, but the functionality involved is incredibly buggy). Anything using sdl_image needs a -lsdl_image flag. To get a .a file from a dll DL the mingw_utils_0.3 package, use bin/pexports.exe to change the get a .def and bin/dlltool.exe to get a .a from the .def This is a compiler issue and not a SDL_Image issue. The current version of image(and at least two previous releases) work with PNG files on winXP. Same problem under linux. When trying to load a png file i get a segmentation fault. using netbeans 6.5, ubuntu 8.10, gcc, sdl 1.2.13 Can you test with the latest pre-release snapshot? http://www.libsdl.org/tmp/SDL_image-1.2.8.zip Thanks! No response in a few years. :) |