Problem loading the GUI image
Posted: 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:
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:
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);