Problems loading images in MAC OS X Leopard

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.

THanks.

Best regards
Jorge

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/On Sat, Aug 22, 2009 at 11:35 AM, Jorge Vega Sanchez wrote:

THanks.

Best regards
Jorge


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

I use to compile the terminal and a makefile to compile all the
project. I install the SDL libreary and the SDL_image library using
the source code and test that the files are in the correct folder a
with the right name. usr/local/lib

The SDL_image library have the posibility to load png images but i
think first the problem is I can’t load any image.
And the problem is a tested a very simple programthat only uses two
images and are writen in 4 files.

Thanks for the answer. I’m new using SDL.
El 24/08/2009, a las 4:59, Todd Steinackle escribi?:> On Sat, Aug 22, 2009 at 11:35 AM, Jorge Vega Sanchez<@Jorge_Vega_Sanchez> 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


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

Best regards
Jorge

I use to compile the terminal and a makefile to compile all the project. I
install the SDL libreary and the SDL_image library using the source code and
test that the files are in the correct folder a with the right name.
usr/local/lib

The SDL_image library have the posibility to load png images but i think
first the problem is I can’t load any image.
And the problem is a tested a very simple programthat only uses two images
and are writen in 4 files.

Be sure to check the output of the SDL_image ./configure command to
make sure you have the needed image libraries. If that’s not it, the
images are probably not being located. Are your image files in
/usr/local/lib? Can you post the code for the simple program you are
trying to get working?On Mon, Aug 24, 2009 at 5:31 AM, Jorge Vega Sanchez wrote:

Thanks for the answer. I’m new using SDL.
El 24/08/2009, a las 4:59, Todd Steinackle escribi?:

On Sat, Aug 22, 2009 at 11:35 AM, Jorge Vega Sanchez 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


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

Best regards
Jorge


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