QtImageCodec - image codec for CEGUI, that loads images using Qt.
Compile image codec
Download image codec sources. Extract it. In extracted directory open terminal and type:
Put compiled "libCEGUIQtImageCodec-0.7.0.so" from "bin" to system directory for shared libraries. This can be "/usr/local/lib" for example. Then run "ldconfig" as administrator.
Compile Qt plugin for TGA support
Qt does not support TGA image loading, but there is a plugin for it in KDE that supports doing that. To compile it download its source from the following locations:
Put it into a separate directory, for example "qtga". In that directory open terminal and issue the following command:
Open generated project file ("qtga.pro") and make sure it contains the following statements:
TEMPLATE = lib CONFIG += plugin
Then in the terminal type:
Put the built shared library ("libqtga.so") to "imageformats" subdirectory of qt plugin directory. For example this can be something like "/usr/lib64/qt4/plugins/imageformats" on 64 bit linux system.
Configure CEGUI library
In order to make this codec the default image codec used by CEGUI before compiling CEGUI configure it with the following command:
Alternatively image codec used by CEGUI system can be changed in the source code of an application:
CEGUI::System::getSingleton ().setImageCodec ("QtImageCodec");