[SDL] Problems loading images in MAC OS X Leopard.
Todd Steinackle
toddsteinackle at gmail.com
Sun Aug 23 19:59:24 PDT 2009
On Sat, Aug 22, 2009 at 11:35 AM, Jorge Vega
Sanchez<memmaker650 at gmail.com> wrote:
> Hi guys.
>
> This is my first mail to this list.
> I'm a senior programmer and I'm starting to learn the SDL API. I want to do
> program for MAC and Linux and now I'm testing programs of other people to
> see the code and the final results. In MAC i can compile the projects but
> when i launch the program obtain two diferent messages, 1warning and 1
> error.
>
> Warning once: This application, or a library it uses, is using
> NSQuickDrawView, which has been deprecated. Apps should cease use of
> QuickDraw and move to Quartz.
>
> Error.
> Could not load 'lifepig.png'!
> Could not load 'font.png'!
> Could not load 'glassfont.png'!
> Could not load 'icons.png'!
> Could not load 'stars.png'!
> Could not load 'pigframes.png'!
> Could not load 'evil.png'!
> Could not load 'slime.png'!
> Could not load graphics!
>
> To load images i select two type of program. Once which use SDL library only
> (LoadBMP9) and other which use the SDL_image library (IMG_Load). I konw the
> differences between both libraries but in MAC Leopard i obtain always the
> same error and warning message. Someone know something to solve these
> problems.
Hi Jorge,
The warning about NSQuickDrawView being deprecated is not preventing
your images from loading, I wrote a game which runs on OS X Leopard
and loads png images with SDL_image and that wasn't an issue. If you
are compiling everything from the command line you may not have libpng
installed, you can download a binary from this link --
http://ethan.tira-thompson.com/Mac%20OS%20X%20Ports.html -- that will
work with a command line build setup. If you are using Xcode you may
not have the images in the correct location, the working directory of
your SDL app (the .app file) is by default set to its parent. What
method are you using to compile?
Todd Steinackle
http://www.noquarterarcade.com/
>
> THanks.
>
> Best regards
> Jorge
>
>
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
More information about the SDL
mailing list