Problem loading the GUI image

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

NintenDave
Just popping in
Just popping in
Posts: 1
Joined: Tue Aug 12, 2008 05:49

Problem loading the GUI image

Postby NintenDave » Tue Aug 12, 2008 06:00

Hello, I've run into a problem when using CEGUI in my Ogre application. When I try to load the Taharez skin (with the files that came with the latest CEGUI source download), CEGUI gives me this error:

12/08/2008 06:43:42 (Error) Exception: Failed to create Texture object from file 'TaharezLook.tga'. Additional Information:
OGRE EXCEPTION(5:): Cannot find codec for extension png in Codec::getCodec at OgreCodec.cpp (line 62)


I also tried using a png to see if it was just tga that was broken (I remembered to change the imageset file).

I compiled Ogre to use FreeImage2.

Does anyone have any solutions or suggestions?
Thanks.

[edit]
Forgot to post the code:

Code: Select all

    CEGUI::Logger::getSingleton().setLoggingLevel(CEGUI::Informative);
    CEGUI::SchemeManager::getSingleton().loadScheme("TaharezLook.scheme", "GUI");
    CEGUI::FontManager::getSingleton().createFont("DejaVuSans-10.font", "GUI");
    CEGUI::Window* layout = CEGUI::WindowManager::getSingleton().loadWindowLayout("katana.layout", "", "GUI");

    system.setDefaultMouseCursor("TaharezLook", "MouseArrow");
    system.setDefaultFont("DejaVuSans-10");
    system.setGUISheet(layout);

Return to “Help”

Who is online

Users browsing this forum: No registered users and 6 guests