Computer Science Canada SDL_image and SDL_LoadPNG (compile error) |
Author: | HyperFlexed [ Fri Jun 18, 2010 6:05 pm ] | ||||||
Post subject: | SDL_image and SDL_LoadPNG (compile error) | ||||||
I had libsdl-dev and libsdl-image-dev installed (through apt-get). I was getting odd errors on compile:
Because of this, I tried installing libsdl and libsdl_image from source. They compiled fine. The packages are sitting happily under /usr/local/lib
I can't see where I'm going wrong in the source code:
and as far as I can tell libpng and zlib are installed. It seems like the compiler can't find SDL_LoadPNG, but as I understand this should be included with SDL_image. If anyone can recommend further troubleshooting steps or offer some advice, I'd be glad to hear it. This has to be the most complicated hello world I've ever done ![]() |
Author: | CodeMonkey2000 [ Fri Jun 18, 2010 6:17 pm ] |
Post subject: | RE:SDL_image and SDL_LoadPNG (compile error) |
That's telling you that SDL_LoadPNG is not part of the library. What you want is IMG_load, read the SDL_image documentation http://jcatki.no-ip.org:8080/SDL_image/SDL_image_frame.html |
Author: | HyperFlexed [ Fri Jun 18, 2010 6:22 pm ] |
Post subject: | Re: SDL_image and SDL_LoadPNG (compile error) |
My hero! Thanks a tonne. I saw references on forums to some mysterious SDL_LoadPNG function, I guess I'll be sure to check the API next time. ![]() |