Page 1 of 1

Unsupported Image format on mac

Posted: Sat Jun 27, 2015 5:47 pm
by oawad79
Hey

When trying to run the latest version 4 on mac os , I get

objc[16195]: Class SDLApplication is implemented in both /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib and /usr/local/lib/libSDL2-2.0.0.dylib. One of the two will be used. Which one is undefined.
objc[16195]: Class SDLAppDelegate is implemented in both /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib and /usr/local/lib/libSDL2-2.0.0.dylib. One of the two will be used. Which one is undefined.
objc[16195]: Class SDLTranslatorResponder is implemented in both /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib and /usr/local/lib/libSDL2-2.0.0.dylib. One of the two will be used. Which one is undefined.
objc[16195]: Class SDLMessageBoxPresenter is implemented in both /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib and /usr/local/lib/libSDL2-2.0.0.dylib. One of the two will be used. Which one is undefined.
objc[16195]: Class SDLOpenGLContext is implemented in both /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib and /usr/local/lib/libSDL2-2.0.0.dylib. One of the two will be used. Which one is undefined.
objc[16195]: Class SDLWindow is implemented in both /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib and /usr/local/lib/libSDL2-2.0.0.dylib. One of the two will be used. Which one is undefined.
objc[16195]: Class Cocoa_WindowListener is implemented in both /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib and /usr/local/lib/libSDL2-2.0.0.dylib. One of the two will be used. Which one is undefined.
objc[16195]: Class SDLView is implemented in both /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib and /usr/local/lib/libSDL2-2.0.0.dylib. One of the two will be used. Which one is undefined.
rocksndiamonds: warning: configuration file '/Users/oawad/Documents/Rocks'n'Diamonds/cache/artworkinfo.cache' is empty
rocksndiamonds: fatal error: LoadImage() failed: IMG_Load(): Unsupported image format
rocksndiamonds: aborting

Thanks

Re: Unsupported Image format on mac

Posted: Tue Jul 28, 2015 4:51 pm
by Holger
HI, sorry for the late reply, I was on vacation for the last few weeks.

May it be possible that the dynamic SDL2 libraries are sort of mixed up on your installation? Apparently you have installed SDL2 both in /usr/local/opt and /usr/local/lib, which might cause trouble here. Could you please temporarily rename "/usr/local/opt/sdl2" to "/usr/local/opt/sdl2.tmp", for example, and try again?

To better see what's going on, I have improved the error message you get (please pull the latest changes from the git repository), so we can see at least which file caused the problem here (most probably the very first graphic file it attempts to load, which should be "RocksFontSmall.png" I think).

I just had a somewhat similar error on my own Mac, where the game refused to load a MOD music file, because the SDL2_mixer library was unable to use the (dynamically loaded) MikMod library to load the MOD file; cleaning up my SDL2 dynamic libs solved it over here.