OGRE Sample programs do not display

Problems building or running the engine, queries about how to use features etc.
libolt
Greenskin
Posts: 126
Joined: Wed Jan 19, 2005 4:48 am
x 9

OGRE Sample programs do not display

Post by libolt »

Hi,

I've successfully built OGRE from CVS on my athlon 64 3000+ which is running Gentoo compiled for amd64. I had to manually install the 64 bit version of the nvidia Cg toolkit. OGRE installs fine, but when I go into the Samples/Common/bin directory and attempt to run one of the samples all it does is something like the following:

Code: Select all

tbird bin # ./SkyBox
Creating resource group General
Registering ResourceManager for type Material
Registering ResourceManager for type Mesh
Registering ResourceManager for type Skeleton
Loading library libOgrePlatform.so
OverlayElementFactory for type Panel registered.
OverlayElementFactory for type BorderPanel registered.
OverlayElementFactory for type TextArea registered.
Registering ResourceManager for type Font
ArchiveFactory for archive type FileSystem registered.
ArchiveFactory for archive type Zip registered.
DevIL version: Developer's Image Library (DevIL) 1.6.7 Jan 17 2005
DevIL image formats: bmp dib cut dcx dds gif hdr ico cur jpg jpe jpeg lif mdl mng jng pcx pic pix png pbm pgm pnm ppm psd pdd psp pxr sgi bw rgb rgba tga vda icb vst tif tiff wal xpm raw
Registering ResourceManager for type HighLevelGpuProgram
Loading library /usr/local/lib/OGRE/RenderSystem_GL.so
OpenGL Rendering Subsystem created.
Loading library /usr/local/lib/OGRE/Plugin_ParticleFX.so
Particle Emitter Type 'Point' registered
Particle Emitter Type 'Box' registered
Particle Emitter Type 'Ellipsoid' registered
Particle Emitter Type 'Cylinder' registered
Particle Emitter Type 'Ring' registered
Particle Emitter Type 'HollowEllipsoid' registered
Particle Affector Type 'LinearForce' registered
Particle Affector Type 'ColourFader' registered
Particle Affector Type 'ColourFader2' registered
Particle Affector Type 'ColourImage' registered
Particle Affector Type 'ColourInterpolator' registered
Particle Affector Type 'Scaler' registered
Particle Affector Type 'Rotator' registered
Loading library /usr/local/lib/OGRE/Plugin_BSPSceneManager.so
Registering ResourceManager for type BspLevel
Loading library /usr/local/lib/OGRE/Plugin_OctreeSceneManager.so
TerrainSceneManager: Registered a new PageSource for type Heightmap
Loading library /usr/local/lib/OGRE/Plugin_CgProgramManager.so
*-*-* OGRE Initialising
*-*-* Version 1.0.0 (Azathoth)
Creating resource group Bootstrap
Added resource location '../../Media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
Added resource location '../../Media' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/fonts' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/materials/programs' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/materials/scripts' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/materials/textures' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/models' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/overlays' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/particle' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
Added resource location '../../Media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
Added resource location '../../Media/packs/dragon.zip' of type 'Zip' to resource group 'General'
Added resource location '../../Media/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
Added resource location '../../Media/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
Added resource location '../../Media/packs/skybox.zip' of type 'Zip' to resource group 'General'
OGRE Configuration
------------------
Select Renderer:
    1) OpenGL Rendering Subsystem
It never displays a window or anything. I'm using version 1.0.6629 of the nvidia display drives for linux amd64 with a geforce 6600 GT card.

The kernel is 2.6.9-gentoo-r6

Thanks for the help, I hope to start experimentening with OGRE soon it looks like a fantastic project.

Mike
User avatar
monster
OGRE Community Helper
OGRE Community Helper
Posts: 1098
Joined: Mon Sep 22, 2003 2:40 am
Location: Melbourne, Australia

Post by monster »

Err, I assume you've tried typing in "1" and then pressing return? Then it should go through a load more options, before starting up Ogre.
libolt
Greenskin
Posts: 126
Joined: Wed Jan 19, 2005 4:48 am
x 9

Post by libolt »

OK, Duh on my part. I should've read the docs better.

However now that I answer the questions on the command line and attempt to run the Sample, I get the following:

Code: Select all


Parsing script OgreDebugPanel.overlay
Error loading texture New_Ogre_Border_Center.png. Texture layer will be blank. Loading the texture failed with the following exception: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 0
Function: png library error
Description: IL Error.
File: OgreILImageCodec.cpp
Line: 121
Stack unwinding: ILImageCodec::decode(..) <- Image::load(..) <- <<beginning of stack>>
Error loading texture New_Ogre_Border.png. Texture layer will be blank. Loading the texture failed with the following exception: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 0
Function: png library error
Description: IL Error.
File: OgreILImageCodec.cpp
Line: 121
Stack unwinding: ILImageCodec::decode(..) <- Image::load(..) <- <<beginning of stack>>
Error loading texture New_Ogre_Border_Break.png. Texture layer will be blank. Loading the texture failed with the following exception: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 0
Function: png library error
Description: IL Error.
File: OgreILImageCodec.cpp
Line: 121
Stack unwinding: ILImageCodec::decode(..) <- Image::load(..) <- <<beginning of stack>>
Font TrebuchetMSBoldusing texture size 512x512
Info: Freetype returned null for character 160 in font TrebuchetMSBold
Texture: TrebuchetMSBoldTexture: Loading 1 faces(PF_A8R8G8B8,512x512x1) with 0 generated mipmaps from Image.
Error loading texture New_Ogre_Logo.png. Texture layer will be blank. Loading the texture failed with the following exception: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 0
Function: png library error
Description: IL Error.
File: OgreILImageCodec.cpp
Line: 121
Stack unwinding: ILImageCodec::decode(..) <- Image::load(..) <- <<beginning of stack>>
Parsing script OgreLoadingPanel.overlay
Finished parsing scripts for resource group Bootstrap
Parsing scripts for resource group General
Parsing script Examples.program
Parsing script Example-DynTex.material
Parsing script Example-Water.material
Parsing script Example.material
Parsing script Examples-Advanced.material
Parsing script OffsetMapping.material
Parsing script Ogre.material
Parsing script RZR-002.material
Parsing script smoke.material
Parsing script fresnelenviron.material
Parsing script sample.fontdef
Bad attribute line: glyph               0.152344        0.125   0.160156        0.1875 in font Ogre
Parsing script Example-Water.particle
Parsing script Example.particle
Parsing script smoke.particle
An exception has occured: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 0
Function: png library error
Description: IL Error.
File: OgreILImageCodec.cpp
Line: 121
Stack unwinding: ILImageCodec::decode(..) <- Image::load(..) <- <<beginning of stack>>
*-*-* OGRE Shutdown
Unregistering ResourceManager for type Font
Unregistering ResourceManager for type Skeleton
Unregistering ResourceManager for type Mesh
Unregistering ResourceManager for type HighLevelGpuProgram
Unloading library /usr/local/lib/OGRE/Plugin_CgProgramManager.so
Unloading library /usr/local/lib/OGRE/Plugin_OctreeSceneManager.so
Unregistering ResourceManager for type BspLevel
Unloading library /usr/local/lib/OGRE/Plugin_BSPSceneManager.so
Unloading library /usr/local/lib/OGRE/Plugin_ParticleFX.so
Render Target 'OGRE Render Window' Average FPS: 0 Best FPS: 0 Worst FPS: 999
Unregistering ResourceManager for type GpuProgram
******************************
*** Stopping SDL Subsystem ***
******************************
Unregistering ResourceManager for type Texture
Unloading library /usr/local/lib/OGRE/RenderSystem_GL.so
Unregistering ResourceManager for type Material
Unloading library libOgrePlatform.so

Which apperas to be the same error as this person had, which went unresolved AFAICT.

http://www.ogre3d.org/phpBB2/viewtopic ... les+amd64

I'm also using libpng 1.2.8, re-emerged DevIL from portage and then did a clean recompile of OGRE

Any help is greatly appreciated.

Mike
User avatar
_mental_
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 419
Joined: Mon Jan 27, 2003 11:51 pm
Location: The Woodlands, TX

Post by _mental_ »

The solution to the libpng problem is in this thread:

http://www.ogre3d.org/phpBB2/viewtopic. ... ight=amd64