[GIT 2010-03-21] TGA Loader Tries to Read PNG

Reports that are not bugs or happen because of a misconfiguration.

Moderators: SMC Team, MVP

[GIT 2010-03-21] TGA Loader Tries to Read PNG

Postby Luiji » 26 Mar 2010 17:32

First off, it seems GIT uses these crazy long id's for revisions (a066f15ef5efc4684536379b5e21e9149ef19bc9).

Anyway, I compiled SMC with the latest CEGUI and a patch I made to enable usage of SDL-Image 1.2.7 (temporary fix until next Ubuntu), and heres the problem: it seems that CEGUI is trying to load a PNG file using a TGA codec (I don't think those are compatible).

Error message:
Code: Select all
CEGUI Scheme Exception occurred : OpenGLTexture::loadFromFile - TGAImageCodec - Official TGA image codec failed to load image 'SMCLook512.png'.


Thanks,
- Luiji
Custom Built IBM-Compatible (Arch Linux w/ KDE)
Dell Vostro (Windows 7)
Dell Inspiron 1440 (Windows Server 2003, Debian w/ KDE)
Dell Inspiron 11z (Linux Mint)
Luiji
MVP
MVP
 
Posts: 2703
Joined: 14 Jan 2010 23:20
Location: The Mushroom Kyngdom

Re: [GIT a066f15ef5efc4684536379b5] TGA Loader Tries to Read

Postby CrazyEddie » 27 Mar 2010 23:31

When you build CEGUI it selects an ImageCodec to use as the default based upon available libraries and/or configure options specified; the TGAImageCodec is the 'last resort' choice. The order of selection is basically: DevIL, FreeImage, SILLY, Corona and finally TGA - so this means that none of those earlier libraries were found (or you explicitly disabled them ;)). In order to resolve the issue you need to rebuild CEGUI with a more capable image lib installed.

CE.
CrazyEddie
Furball blue
Furball blue
 
Posts: 5
Joined: 20 Mar 2010 12:08

Re: [GIT a066f15ef5efc4684536379b5] TGA Loader Tries to Read

Postby FluXy » 27 Mar 2010 23:56

I use f.e. SILLY for CEGUI.

In CEGUI/projects/premake/config.lua :
Code: Select all
DEFAULT_IMAGE_CODEC = "silly"
If i didn't read your post but it was important you can send me a PM.
Any Donation will help this project!
User avatar
FluXy
Admin
Admin
 
Posts: 2857
Joined: 04 May 2004 19:44
Location: Germany

Re: [GIT 2010-03-21] TGA Loader Tries to Read PNG

Postby Luiji » 28 Mar 2010 01:12

OK, thanks for the information! I can't find SILLY in the repository, so I installed FreeImage. That seemed to solve one error, no just to recompile stuff.
Custom Built IBM-Compatible (Arch Linux w/ KDE)
Dell Vostro (Windows 7)
Dell Inspiron 1440 (Windows Server 2003, Debian w/ KDE)
Dell Inspiron 11z (Linux Mint)
Luiji
MVP
MVP
 
Posts: 2703
Joined: 14 Jan 2010 23:20
Location: The Mushroom Kyngdom


Return to Invalid

Who is online

Users browsing this forum: No registered users and 1 guest

cron