On Wed, 6 Jun 2012 13:46:43 +0400
Ilya Chernykh
On Wednesday 06 June 2012 12:23:42 Josef Reidinger wrote:
When trying to run stuntrally:
An exception has occured: OGRE EXCEPTION(5:ItemIdentityException): Can not find codec for 'png' image format.
I have no idea how to enable png codec in ogre. Previously the game worked.
Hi, OGRE use png from freeimage library. So check if freeimage library have png plugin. If yes, then problem is somewhere in OGRE, if not, then problem is in freeimage library. Josef
Indeed, in the freeimage spec file I found the following:
# Remove bundled libs (except of LibJPEG/ and LibTIFF4/) to make sure these don't get used during compile rm -rf Source/LibPNG/ Source/LibRawLite/ Source/OpenEXR/ Source/ZLib/ %if 0%{?suse_version} > 1210 rm -rf Source/LibOpenJPEG/ %endif
So how this can be mitigated?
This is not neccessary error. It can be just that we don't want bundled libraries and use instead system libraries for it. Maybe something there is changed and cause broken png support. ( it would be nice if such library have tests for this case ). I reccomend to try compile simple example with png using freeimage and if it doesn't work, then investigate what is going wrong in freeimage library. Josef -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org