Re: [Tuxpaint-devel] Tux Paint 0.9.16 build for Mac OS X?
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
|
From: Bill K. <nb...@so...> - 2006-10-12 01:51:50
|
On Wed, Oct 11, 2006 at 07:45:56PM -0600, Martin Fuhrer wrote:
> I had some time last night to put together a universal binary of Tux
> Paint 0.9.16rc2. It compiles :-) but doesn't run :-( I'm getting
> the following error:
>
> Error: I couldn't load a graphics file:
> Tux Paint.app/Contents/Resources/brushes//kuroneko.dat
> The Simple DirectMedia Layer error that occurred was:
> Unsupported image format
>
> I presume kurenko.dat is an image file,
No, it is a text file describing some details about the "kuroneko.png"
brush image. (Most brushes do not have corresponding .dat files, but
this one, and some others, do.)
Now, why it's trying to load the .dat file as a PNG is confusing, because
it should skip it.
Line 5627 of tuxpaint.c:
if (strcasestr(files[i].str, ".png"))
(It's an implicit test of "!= NULL" there, btw.)
> and I've checked that I
> linked against SDL 1.2.11 and SDL Image 1.2.5, which I believe are
> the latest versions. Any ideas?
See if strcasestr is working right? :)
Thx!
-bill!
|