chaosfire / vdrift-ogre

Automatically exported from code.google.com/p/vdrift-ogre
0 stars 0 forks source link

Can not find codec for 'png' image format. #156

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi!
I get the foillowing upon trying to run stuntrally:

An exception has occured: OGRE EXCEPTION(5:ItemIdentityException): Can not find 
codec for 'png' ima                                                             
                      ge format.
There are no formats supported (no codecs registered). in Codec::getCodec at 
/usr/src/packages/BUIL                                                          
                         D/ogre_src_v1-7-4/OgreMain/src/OgreCodec.cpp (line 69)
INFO: Exiting

Original issue reported on code.google.com by anixx...@gmail.com on 9 May 2012 at 12:00

GoogleCodeExporter commented 8 years ago

Original comment by Cry...@gmail.com on 9 May 2012 at 4:02

GoogleCodeExporter commented 8 years ago
Where did you get Stunt Rally and Ogre?

Original comment by tapiovie...@gmail.com on 12 May 2012 at 12:13

GoogleCodeExporter commented 8 years ago
According to the message there is no PNG support in your version of OGRE, so I 
assume you compiled OGRE yourself and hadn't installed PNG headers when 
compiling?

Original comment by scrawl...@gmail.com on 12 May 2012 at 12:13

GoogleCodeExporter commented 8 years ago
I built the latest stuntrally in openSUSE's games repository.

Original comment by anixx...@gmail.com on 12 May 2012 at 5:15

GoogleCodeExporter commented 8 years ago
This is what ogre says when compiling:

-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
+ zlib
+ zziplib
+ freeimage
+ freetype
+ X11
+ Xt
+ Xaw
+ OpenGL
+ cg
+ boost
+ boost-thread
+ boost-date_time
+ OIS
+ Doxygen
+ CppUnit
-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
+ OpenGL ES: Support for the OpenGL ES 1.x render system 
<http://www.khronos.org/opengles/>
+ POCO: POCO framework <http://pocoproject.org/>
+ tbb: Threading Building Blocks <http://www.threadingbuildingblocks.org/>
-----------------------------------------------------------------------------

-- 
----------------------------------------------------------------------------
  FEATURE SUMMARY
----------------------------------------------------------------------------

Building components:
  + Paging
  + Property
  + Terrain
  + RTShader System
  + RTShader System Core Shaders
  + RTShader System Extensions Shaders
Building plugins:
  + BSP scene manager
  + Cg program manager
  + Octree scene manager
  + Portal connected zone scene manager
  + Particle FX
Building rendersystems:
  + OpenGL
Building executables:
  + Samples
  + Tools
Building core features:
  + DDS image codec
  + FreeImage codec
  + ZIP archives

Build type:                      dynamic
Threading support:               background (boost)
Use double precision:            disabled
Allocator type:                  nedmalloc (pooling)
STL containers use allocator:    enabled
Strings use allocator:           disabled
Memory tracker (debug):          disabled
Memory tracker (release):        disabled
Use new script compilers:        enabled
Use Boost:                       enabled

Original comment by anixx...@gmail.com on 12 May 2012 at 5:17

GoogleCodeExporter commented 8 years ago
Ogre version is 1.7.4

Original comment by anixx...@gmail.com on 13 May 2012 at 6:37

GoogleCodeExporter commented 8 years ago
This looks ok, the png support should be provided by FreeImage codec.

Googled your error and this came up, have you tried it? 
http://www.ogre3d.org/forums/viewtopic.php?f=2&t=53014&start=0#p379588

Original comment by scrawl...@gmail.com on 13 May 2012 at 8:24

GoogleCodeExporter commented 8 years ago
I think static linking of freeimage is not posssible or permitted.

Original comment by anixx...@gmail.com on 13 May 2012 at 8:41

GoogleCodeExporter commented 8 years ago
I added FREEIMAGE_LIBRARY_TYPE="STATIC" to the make argument in ogre but this 
does not help.

Original comment by anixx...@gmail.com on 13 May 2012 at 5:57

GoogleCodeExporter commented 8 years ago
Sorry, then I've no idea. You should ask in the ogre forums about it.

Either way it's an issue with your ogre build, and not with the game - so I'm 
changing status to invalid.

Original comment by scrawl...@gmail.com on 14 May 2012 at 6:01