64-bit Linux Python-Ogre Installation Issues (cont.)

13 views
Skip to first unread message

PhycoFalcon

unread,
Dec 8, 2007, 1:28:04 AM12/8/07
to Python Ogre Developers
Hello, folks. This is a continuation of the thread here:
http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=5886

There was an issue I had with the name of the boost directory, it
looked like it went up a version number but the program didn't know
what it was. So, I had to rename it. This was before I knew about
PythonOgreConfig_posix.py, though... Probably has something to do with
that.

One thing that Giulio and I both had issues with was this in that
file:
LIB_Boost = 'libboost_python-gcc41'
It was set to something different, but I can't remember. But I found
where it pointed -- /home/alex/development/root/usr/lib --, and chose
the mt version.

Also, it can't find ode, whatever I do. The header files are there,
and the python script points to them, but scons still can't find the
include files:
scons: Reading SConscript files ...
WARNING: Unable to find ode/ode.h include file (ode class) in
include_dirs
WARNING: Unable to find ode/ode.h include file (ogrerefapp class) in
include_dirs
WARNING: Unable to find ode/ode.h include file (ogreode class) in
include_dirs
WARNING: Unable to find ode/odecpp.h include file (ogreode class) in
include_dirs
WARNING: Unable to find Ogreode_Prefab.h include file (ogreode class)
in include_dirs

I build everything else, and I now have the ogre library in python.
Yay. However...

When I load a demo (this one being Demo_ParticleFX.py), it gives this
error, and it happens in the several demos I've tried. I suspect it
has something to do with an image library.
Mesh: Loading ogrehead.mesh.
Texture: WeirdEye.png: Loading 1 faces(PF_R8G8B8,256x256x1) with 5
hardware generated mipmaps from Image. Internal format is
PF_X8R8G8B8,256x256x1.
Texture: GreenSkin.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with 5
hardware generated mipmaps from Image. Internal format is
PF_X8R8G8B8,256x256x1.
Texture: spheremap.png: Loading 1 faces(PF_R8G8B8,256x256x1) with 5
hardware generated mipmaps from Image. Internal format is
PF_X8R8G8B8,256x256x1.
Texture: dirt01.jpg: Loading 1 faces(PF_R8G8B8,96x96x1) with 5
hardware generated mipmaps from Image. Internal format is
PF_X8R8G8B8,96x96x1.
Texture: basic_droplet.png: Loading 1 faces(PF_R8G8B8,64x64x1) with 5
hardware generated mipmaps from Image. Internal format is
PF_X8R8G8B8,64x64x1.
Segmentation fault (core dumped)

So, to summarize, the errors I've found during this course with the
linux install are as follows:
1) It is important to do everything in ~/development, as thing will be
different if you don't.
2) There's something about libboost and the boost directory that isn't
named properly. I've already fixed it, though, and I didn't examine
the problem too closely. I can't remember exactly what I did, either.
3) It's not just bjam that doesn't work on 64-bit platforms, it's
cmake, ccmake, and cgc as well.
4) ODE cannot be found for whatever reason.

JosephLisee

unread,
Dec 8, 2007, 2:07:37 AM12/8/07
to Python Ogre Developers
Does the normal Ogre Particle demo work? A segfault like that seems
to be a 64 bit issue.

-Joe

Andy Miller

unread,
Dec 8, 2007, 2:12:36 AM12/8/07
to python-ogre...@googlegroups.com
Thanks for all your work on this..  So to confirm the list of things to improve in the scripts for 64 bit systems:

1. Build all the 'tools' from source -- seems like we can't rely on any of the Linux binaries
2. Tweak the boost library name based upon the gcc compiler version -- either automatically or present a warning to the user

Can you go through the demos and determine which ones work and which ones fail as mentioned below as this will give us a view on what the problem might be.  Also there is a message in the user forum that lists a set of changes another user had to do to make 64 bit work -- I intend to roll these in but haven't yet so check that you've implemented them as well..

As for Ode -- does the development/ode-0.9 directory exist
What about root/usr/lib/libode.* ?
cd into the development/ode-0.9 directory and run 'make' and 'make install' ??

The base ode lib is built in the 04-Buidxxx script so you can look in there to see what it does -- the 'Python-Ogre' native ODE module doesn't currently build on Linux but the OgreODE one is fine so try running a demo in the demos/ogreode directory...

Andy...

Alex Trujillo

unread,
Dec 8, 2007, 6:53:50 AM12/8/07
to python-ogre...@googlegroups.com
I looked up that thread you (Andy) mentioned -- http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=5700  -- Correct me if I'm wrong, but isn't ode different than ogreode? I haven't seen any errors pertaining to ogreode.

He also posted this:
Building the ode wrappers causes a swap-of-death when compiling
Code:
g++ -o build_dir_2.5/ode_0.9/_ode__free_functions.pypp.os -c `pkg-config --cflags OGRE` -I -O2 -I./ -fPIC -I/mnt/sys01/home/ionflux/src/python-ogre/root/usr/include/boost-1_34 -I/mnt/sys01/home/ionflux/src/python-ogre/root/usr/include/ode -I/mnt/sys01/home/ionflux/src/python-ogre/ode- 0.9/OPCODE -I/usr/include/python2.5 -I/mnt/sys01/home/ionflux/src/python-ogre/root/usr/include/boost-1_34 generated/ode_0.9/_ode__free_functions.pypp.cpp
This is sometimes caused by too high an optimization setting, but even going back to -O1 did not fix it. So I have to skip ode as well for now.

As for the presence of the ode directories you mentioned:
development/ode-0.9 - Present
root/usr/lib/libode.a & libode.so - Present
I'm pretty sure that ode built itself, though.

Now I shall test every single demo. The results will be uploaded to this list.
The results of my tests are here:
http://python-ogre-developers.googlegroups.com/web/OgreDemoTest_071207.html

I shall finish them once I get the answer to this problem:

One thing I noticed is that for the first few Python-Ogre demos, they fail for this reason:
'/Demo_Basic.py: line 13: `sys.path.insert(0,'..')

I thought hard about what could be wrong, but _ogre_.so is even a 50+mb library in:
~/development/root/usr/lib/python2.5/site-packages/ogre/renderer/OGRE
So, at least it's there...

Also, the env command in that terminal window reads:
PYTHONPATH=/home/alex/development/root/usr/lib/python2.5/site-packages
LD_LIBRARY_PATH=/home/alex/development/root/usr/lib/

From what I can tell from the forums and list (searching for "sys.path.insert"), no one's discussed this problem before.

As for your improvements, I'd be glad to test those out for you, and yes, those seem like things that will ease the installation process for the novice. :-)

Thank you Andy, for your help. I honestly can't understand why someone would dedicate their time to build something as "mundane" (to the layman, at least; looking through the API docs really inspires me, however!) as a graphics library, instead of building wonderful games, but I suppose it takes all sorts, and I really have to thank you for helping us take these first steps to creating our own wonderful game.

- Alex

Giulio

unread,
Dec 8, 2007, 9:11:11 AM12/8/07
to Python Ogre Developers
In comparison with phycofalcon's report, i'd like to submit mine of a
successful installation, which is located at
http://python-ogre-developers.googlegroups.com/web/ogre_test_8122007.html.
even if im not on a 64bit platform, i got errors quite similar and
succeded fixing some of them.

Aftre i got the result you can see, bu think i still have to fix
something.

PhycoFalcon

unread,
Dec 10, 2007, 1:59:08 AM12/10/07
to Python Ogre Developers
I am working wtih Giulio. It would seem that most of his demos do
work, which is great! So, I guess it's 64-bits now.

I didn't try his fix here:
export PYTHONPATH=$PREFIX/lib/python$PYTHONVERSION/site-packages
to
export PYTHONPATH=$PREFIX/lib64/python$PYTHONVERSION/site-packages

Would that change things much?

The output of python Demo_Smoke.py on my system is this:

alex@halifax-black:~/development/python-ogre/demos/ogre$ python
Demo_Smoke.py
Traceback (most recent call last):
File "Demo_Smoke.py", line 15, in <module>
import ogre.renderer.OGRE as ogre
File "/home/alex/development/root/usr/lib/python2.5/site-packages/
ogre/renderer/OGRE/__init__.py", line 10, in <module>
from _ogre_ import *
ImportError: /home/alex/development/root/usr/lib/python2.5/site-
packages/ogre/renderer/OGRE/_ogre_.so: undefined symbol:
_ZN5boost6python8indexing5sliceC1ERKS2_

Also, to fix ode, would this be pertinent?
http://stuff.ionflux.de/ogreode-64.patch
found in the thread you just linked me to. (
http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=5700 )

- Alex

On Dec 8, 12:12 am, "Andy Miller" <nzmill...@gmail.com> wrote:
> Thanks for all your work on this.. So to confirm the list of things to
> improve in the scripts for 64 bit systems:
>
> 1. Build all the 'tools' from source -- seems like we can't rely on any of
> the Linux binaries
> 2. Tweak the boost library name based upon the gcc compiler version --
> either automatically or present a warning to the user
>
> Can you go through the demos and determine which ones work and which ones
> fail as mentioned below as this will give us a view on what the problem
> might be. Also there is a message in the user forum that lists a set of
> changes another user had to do to make 64 bit work -- I intend to roll these
> in but haven't yet so check that you've implemented them as well..
>
> As for Ode -- does the development/ode-0.9 directory exist
> What about root/usr/lib/libode.* ?
> cd into the development/ode-0.9 directory and run 'make' and 'make install'
> ??
>
> The base ode lib is built in the 04-Buidxxx script so you can look in there
> to see what it does -- the 'Python-Ogre' native ODE module doesn't currently
> build on Linux but the OgreODE one is fine so try running a demo in the
> demos/ogreode directory...
>
> Andy...
>

Andy Miller

unread,
Dec 10, 2007, 2:56:51 AM12/10/07
to python-ogre...@googlegroups.com
The problem with Demo_Smoke seems to be related to the boost build (which is a concern)..

Can you send me your boost/libs/python/build/Jamfile.V2

And don't worry about ode as it currently doesn't work under Linux, and isn't really needed...

Andy

> cd into the development/ode- 0.9 directory and run 'make' and 'make install'

Andy Miller

unread,
Dec 10, 2007, 3:48:21 AM12/10/07
to python-ogre...@googlegroups.com
I wonder if it's picking up a different boost library (without the indexing piece which we add "special") .. Can you do:

cd /home/alex/development/root/usr/lib/python2.5/site-packages/ogre/renderer/OGRE/
ldd _ogre_.so

See which boost it's picking up..

Also make sure you do an
export LD_LIBRARY_PATH=/home/alex/development/root/usr/lib
before running the Demo_Smoke program

Setting the library path has to be done each time you open a terminal -- or add it you your /etc/ld.conf?? file (do a man ldconfig for details)

Cheers
Andy

On 10/12/2007, PhycoFalcon <phyco...@gmail.com> wrote:
> cd into the development/ode- 0.9 directory and run 'make' and 'make install'

Alex Trujillo

unread,
Dec 10, 2007, 6:14:10 AM12/10/07
to python-ogre...@googlegroups.com
Whoops! I forgot to do the library path when I ran the program that last time. My bad.

Now it opens up the ogre configuration dialog, and yields following (as was had before, actually, when I was going to do my tests)

alex@halifax-black:~/development/python-ogre/demos/ogre$ python Demo_Smoke.pyCreating resource group General
Creating resource group Internal
Creating resource group Autodetect
SceneManagerFactory for type 'DefaultSceneManager' registered.
Registering ResourceManager for type Material
Registering ResourceManager for type Mesh
Registering ResourceManager for type Skeleton
MovableObjectFactory for type 'ParticleSystem' registered.
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.
FreeImage version: 3.9.3
This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi
DDS codec registering
Registering ResourceManager for type HighLevelGpuProgram
Registering ResourceManager for type Compositor
MovableObjectFactory for type 'Entity' registered.
MovableObjectFactory for type 'Light' registered.
MovableObjectFactory for type 'BillboardSet' registered.
MovableObjectFactory for type 'ManualObject' registered.
MovableObjectFactory for type 'BillboardChain' registered.
MovableObjectFactory for type 'RibbonTrail' registered.
Loading library /home/alex/development/root/usr/lib/OGRE/RenderSystem_GL
Installing plugin: GL RenderSystem
OpenGL Rendering Subsystem created.
Plugin successfully installed
Loading library /home/alex/development/root/usr/lib/OGRE/Plugin_ParticleFX
Installing plugin: ParticleFX
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
Particle Affector Type 'DirectionRandomiser' registered
Particle Affector Type 'DeflectorPlane' registered
Plugin successfully installed
Loading library /home/alex/development/root/usr/lib/OGRE/Plugin_BSPSceneManager
Installing plugin: BSP Scene Manager
Plugin successfully installed
Loading library /home/alex/development/root/usr/lib/OGRE/Plugin_OctreeSceneManager
Installing plugin: Octree & Terrain Scene Manager
Plugin successfully installed
Loading library /home/alex/development/root/usr/lib/OGRE/Plugin_CgProgramManager
Installing plugin: Cg Program Manager
Plugin successfully installed
*-*-* OGRE Initialising
*-*-* Version 1.4.5 (Eihort)
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/sounds' of type 'FileSystem' to resource group 'General'
Added resource location '../media/Audio' 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/gui' 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'
CPU Identifier & Features
-------------------------
 *   CPU ID: Unknown
-------------------------
******************************
*** Starting GLX Subsystem ***
******************************
GLRenderSystem::createRenderWindow "OGRE Render Window", 1024x768 fullscreen  miscParams: FSAA=6 title=OGRE Render Window
GLXWindow::create
Parsing miscParams
GLXWindow::create -- Entering full screen mode
GLXWindow::create -- Best visual is 35
GL_VERSION = 2.1.0 NVIDIA 96.39
GL_VENDOR = NVIDIA Corporation
GL_RENDERER = GeForce 7900 GT/GTO/PCI/SSE2
GL_EXTENSIONS = GL_ARB_color_buffer_float GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_half_float_pixel GL_ARB_imaging GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shadow GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_float GL_ARB_texture_mirrored_repeat GL_ARB_texture_non_power_of_two GL_ARB_texture_rectangle GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_ATI_draw_buffers GL_ATI_texture_float GL_ATI_texture_mirror_once GL_S3_s3tc GL_EXT_texture_env_add GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_Cg_shader GL_EXT_depth_bounds_test GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_object GL_EXT_gpu_program_parameters GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_packed_pixels GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_texture3D GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_sRGB GL_EXT_timer_query GL_EXT_vertex_array GL_HP_occlusion_test GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_copy_depth_to_color GL_NV_depth_clamp GL_NV_fence GL_NV_float_buffer GL_NV_fog_distance GL_NV_fragment_program GL_NV_fragment_program_option GL_NV_fragment_program2 GL_NV_half_float GL_NV_light_max_exponent GL_NV_multisample_filter_hint GL_NV_occlusion_query GL_NV_packed_depth_stencil GL_NV_pixel_data_range GL_NV_point_sprite GL_NV_primitive_restart GL_NV_register_combiners GL_NV_register_combiners2 GL_NV_texgen_reflection GL_NV_texture_compression_vtc GL_NV_texture_env_combine4 GL_NV_texture_expand_normal GL_NV_texture_rectangle GL_NV_texture_shader GL_NV_texture_shader2 GL_NV_texture_shader3 GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_program GL_NV_vertex_program1_1 GL_NV_vertex_program2 GL_NV_vertex_program2_option GL_NV_vertex_program3 GL_NVX_conditional_render GL_SGIS_generate_mipmap GL_SGIS_texture_lod GL_SGIX_depth_texture GL_SGIX_shadow GL_SUN_slice_accum
***************************
*** GL Renderer Started ***
***************************
Registering ResourceManager for type GpuProgram
GLSL support detected
GL: Using GL_EXT_framebuffer_object for rendering to textures (best)
FBO PF_UNKNOWN depth/stencil support: D16S0 D24S0 D32S0
FBO PF_R5G6B5 depth/stencil support: D0S0 D16S0
FBO PF_B5G6R5 depth/stencil support: D0S0 D16S0
FBO PF_R8G8B8 depth/stencil support: D0S0 D24S0 D32S0
FBO PF_B8G8R8 depth/stencil support: D0S0 D24S0 D32S0
FBO PF_A8R8G8B8 depth/stencil support: D0S0 D24S0 D32S0 Packed-D24S8
FBO PF_B8G8R8A8 depth/stencil support: D0S0 D24S0 D32S0 Packed-D24S8
FBO PF_A2R10G10B10 depth/stencil support: D0S0 D24S0 D32S0 Packed-D24S8
FBO PF_A2B10G10R10 depth/stencil support: D0S0 D24S0 D32S0 Packed-D24S8
FBO PF_FLOAT16_RGB depth/stencil support: D0S0
FBO PF_FLOAT16_RGBA depth/stencil support: D0S0
FBO PF_FLOAT32_RGB depth/stencil support: D0S0
FBO PF_FLOAT32_RGBA depth/stencil support: D0S0
FBO PF_X8R8G8B8 depth/stencil support: D0S0 D24S0 D32S0 Packed-D24S8
FBO PF_X8B8G8R8 depth/stencil support: D0S0 D24S0 D32S0 Packed-D24S8
FBO PF_SHORT_RGBA depth/stencil support: D0S0 D24S0 D32S0
FBO PF_R3G3B2 depth/stencil support: D0S0 D16S0
FBO PF_SHORT_RGB depth/stencil support: D0S0 D24S0 D32S0
[GL] : Valid FBO targets PF_UNKNOWN PF_R5G6B5 PF_B5G6R5 PF_R8G8B8 PF_B8G8R8 PF_A8R8G8B8 PF_B8G8R8A8 PF_A2R10G10B10 PF_A2B10G10R10 PF_FLOAT16_RGB PF_FLOAT16_RGBA PF_FLOAT32_RGB PF_FLOAT32_RGBA PF_X8R8G8B8 PF_X8B8G8R8 PF_SHORT_RGBA PF_R3G3B2 PF_SHORT_RGB
RenderSystem capabilities
-------------------------
 * Hardware generation of mipmaps: yes
 * Texture blending: yes
 * Anisotropic texture filtering: yes
 * Dot product texture operation: yes
 * Cube mapping: yes
 * Hardware stencil buffer: yes
   - Stencil depth: 8
   - Two sided stencil support: yes
   - Wrap stencil values: yes
 * Hardware vertex / index buffers: yes
 * Vertex programs: yes
   - Max vertex program version: vp40
 * Fragment programs: yes
   - Max fragment program version: fp40
 * Texture Compression: yes
   - DXT: yes
   - VTC: yes
 * Scissor Rectangle: yes
 * Hardware Occlusion Query: yes
 * User clip planes: yes
 * VET_UBYTE4 vertex element type: yes
 * Infinite far plane projection: yes
 * Hardware render-to-texture: yes
 * Floating point textures: yes
 * Non-power-of-two textures: yes
 * Volume textures: yes
 * Multiple Render Targets: 4
 * Point Sprites: yes
 * Extended point parameters: yes
 * Max Point Size: 63.375
 * Vertex texture fetch: yes
   - Max vertex textures: 4
   - Vertex textures shared: yes
Registering ResourceManager for type Texture
ResourceBackgroundQueue - threading disabled
Particle Renderer Type 'billboard' registered
SceneManagerFactory for type 'BspSceneManager' registered.
Registering ResourceManager for type BspLevel
SceneManagerFactory for type 'OctreeSceneManager' registered.
SceneManagerFactory for type 'TerrainSceneManager' registered.
Creating viewport on target 'OGRE Render Window', rendering from camera 'PlayerCam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
Parsing scripts for resource group Autodetect
Finished parsing scripts for resource group Autodetect
Parsing scripts for resource group Bootstrap
Parsing script OgreCore.material
Parsing script OgreProfiler.material
Parsing script Ogre.fontdef
Parsing script OgreDebugPanel.overlay
Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
Font BlueHighwayusing texture size 512x512
Info: Freetype returned null for character 127 in font BlueHighway
Info: Freetype returned null for character 128 in font BlueHighway
Info: Freetype returned null for character 129 in font BlueHighway
Info: Freetype returned null for character 130 in font BlueHighway
Info: Freetype returned null for character 131 in font BlueHighway
Info: Freetype returned null for character 132 in font BlueHighway
Info: Freetype returned null for character 133 in font BlueHighway
Info: Freetype returned null for character 134 in font BlueHighway
Info: Freetype returned null for character 135 in font BlueHighway
Info: Freetype returned null for character 136 in font BlueHighway
Info: Freetype returned null for character 137 in font BlueHighway
Info: Freetype returned null for character 138 in font BlueHighway
Info: Freetype returned null for character 139 in font BlueHighway
Info: Freetype returned null for character 140 in font BlueHighway
Info: Freetype returned null for character 141 in font BlueHighway
Info: Freetype returned null for character 142 in font BlueHighway
Info: Freetype returned null for character 143 in font BlueHighway
Info: Freetype returned null for character 144 in font BlueHighway
Info: Freetype returned null for character 145 in font BlueHighway
Info: Freetype returned null for character 146 in font BlueHighway
Info: Freetype returned null for character 147 in font BlueHighway
Info: Freetype returned null for character 148 in font BlueHighway
Info: Freetype returned null for character 149 in font BlueHighway
Info: Freetype returned null for character 150 in font BlueHighway
Info: Freetype returned null for character 151 in font BlueHighway
Info: Freetype returned null for character 152 in font BlueHighway
Info: Freetype returned null for character 153 in font BlueHighway
Info: Freetype returned null for character 154 in font BlueHighway
Info: Freetype returned null for character 155 in font BlueHighway
Info: Freetype returned null for character 156 in font BlueHighway
Info: Freetype returned null for character 157 in font BlueHighway
Info: Freetype returned null for character 158 in font BlueHighway
Info: Freetype returned null for character 159 in font BlueHighway
Info: Freetype returned null for character 160 in font BlueHighway
Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
Texture: ogretext.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
Parsing script OgreLoadingPanel.overlay
Finished parsing scripts for resource group Bootstrap
Parsing scripts for resource group General
Parsing script StdQuad_vp.program
Parsing script Examples.program
GLSL compiling: Ogre/BasicVertexPrograms/AmbientOneTextureGLSL
GLSL compiled : Ogre/BasicVertexPrograms/AmbientOneTextureGLSL
GLSL compiling: Ogre/HardwareSkinningTwoWeightsGLSL
GLSL compiled : Ogre/HardwareSkinningTwoWeightsGLSL
Parsing script Examples-Advanced.material
Parsing script VarianceShadowmap.material
Parsing script Example.material
GLSL compiling: Ogre/HardwareSkinningTwoWeightsShadowCasterGLSL
GLSL compiled : Ogre/HardwareSkinningTwoWeightsShadowCasterGLSL
Parsing script instancing.material
GLSL compiling: InstancingGLSL
GLSL compiled : InstancingGLSL
GLSL compiling: InstancingShadowCasterGLSL
GLSL compiled : InstancingShadowCasterGLSL
GLSL compiling: CrowdGLSL
GLSL compiled : CrowdGLSL
GLSL compiling: CrowdShadowCasterGLSL
GLSL compiled : CrowdShadowCasterGLSL
Parsing script BlackAndWhite.material
Parsing script Ocean.material
GLSL compiling: GLSL/OceanVS
GLSL compiled : GLSL/OceanVS
GLSL compiling: GLSL/OceanFS
GLSL compiled : GLSL/OceanFS
GLSL compiling: GLSL/Ocean2VS
GLSL compiled : GLSL/Ocean2VS
GLSL compiling: GLSL/Ocean2FS
GLSL compiled : GLSL/Ocean2FS
Parsing script SharpenEdges.material
Parsing script OffsetMapping.material
GLSL compiling: Examples/OffsetMappingIntegratedShadowsFPglsl
GLSL compiled : Examples/OffsetMappingIntegratedShadowsFPglsl
GLSL compiling: Examples/OffsetMappingIntegratedShadowsVPglsl
GLSL compiled : Examples/OffsetMappingIntegratedShadowsVPglsl
Parsing script RZR-002.material
Parsing script Ogre.material
Parsing script Embossed.material
Parsing script facial.material
Parsing script hdr.material
GLSL compiling: Ogre/Compositor/HDR/downscale2x2LuminenceGLSL_fp
GLSL compiled : Ogre/Compositor/HDR/downscale2x2LuminenceGLSL_fp
GLSL compiling: Ogre/Compositor/StdQuad_GLSL_vp
GLSL compiled : Ogre/Compositor/StdQuad_GLSL_vp
GLSL compiling: Ogre/Compositor/HDR/downscale3x3GLSL_fp
GLSL compiled : Ogre/Compositor/HDR/downscale3x3GLSL_fp
GLSL compiling: Ogre/Compositor/HDR/utils_fp
GLSL compiled : Ogre/Compositor/HDR/utils_fp
GLSL compiling: Ogre/Compositor/HDR/downscale3x3brightpassGLSL_fp
GLSL compiled : Ogre/Compositor/HDR/downscale3x3brightpassGLSL_fp
GLSL compiling: Ogre/Compositor/HDR/bloomGLSL_fp
GLSL compiled : Ogre/Compositor/HDR/bloomGLSL_fp
GLSL compiling: Ogre/Compositor/HDR/utils_fp
GLSL compiled : Ogre/Compositor/HDR/utils_fp
GLSL compiling: Ogre/Compositor/HDR/finaltonemappingGLSL_fp
GLSL compiled : Ogre/Compositor/HDR/finaltonemappingGLSL_fp
Parsing script Posterize.material
Parsing script DepthShadowmap.material
GLSL compiling: Ogre/DepthShadowmap/CasterVP_GLSL
GLSL compiled : Ogre/DepthShadowmap/CasterVP_GLSL
GLSL compiling: Ogre/DepthShadowmap/ReceiverVP_GLSL
GLSL compiled : Ogre/DepthShadowmap/ReceiverVP_GLSL
GLSL compiling: Ogre/DepthShadowmap/ReceiverFP_GLSL
GLSL compiled : Ogre/DepthShadowmap/ReceiverFP_GLSL
GLSL compiling: Ogre/DepthShadowmap/ReceiverFPPCF_GLSL
GLSL compiled : Ogre/DepthShadowmap/ReceiverFPPCF_GLSL
GLSL compiling: Ogre/DepthShadowmap/NormalMapReceiverVP_GLSL
GLSL compiled : Ogre/DepthShadowmap/NormalMapReceiverVP_GLSL
GLSL compiling: Ogre/DepthShadowmap/NormalMapReceiverFP_GLSL
GLSL compiled : Ogre/DepthShadowmap/NormalMapReceiverFP_GLSL
GLSL compiling: Ogre/DepthShadowmap/NormalMapReceiverFPPCF_GLSL
GLSL compiled : Ogre/DepthShadowmap/NormalMapReceiverFPPCF_GLSL
GLSL compiling: Ogre/DepthShadowmap/CasterFP_GLSL
GLSL compiled : Ogre/DepthShadowmap/CasterFP_GLSL
Parsing script HeatVision.material
Parsing script Tiling.material
Parsing script Example-DynTex.material
Parsing script smoke.material
Parsing script Bloom.material
GLSL compiling: Blur_ps_glsl
GLSL compiled : Blur_ps_glsl
GLSL compiling: Blur0_vs_glsl
GLSL compiled : Blur0_vs_glsl
GLSL compiling: Blur1_vs_glsl
GLSL compiled : Blur1_vs_glsl
Parsing script Glass.material
Parsing script Invert.material
Parsing script Example-Water.material
Parsing script Hurt.material
Parsing script MotionBlur.material
Parsing script Laplace.material
Parsing script DOF.material
Parsing script OldTV.material
Parsing script OldMovie.material
Parsing script RomanBath.material
Parsing script Examples.compositor
Parsing script sample.fontdef
Parsing script smoke.particle
Parsing script Example.particle
Parsing script Example-Water.particle
Parsing script emitted_emitter.particle
Parsing script Shadows.overlay
Parsing script Example-DynTex.overlay
Parsing script Example-CubeMapping.overlay
Parsing script Example-Water.overlay
Parsing script DP3.overlay
Parsing script Compositor.overlay
Finished parsing scripts for resource group General
Parsing scripts for resource group Internal
Finished parsing scripts for resource group Internal
Texture: clouds.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
Segmentation fault (core dumped)

This must have something to do with an image library.

- Alex

Andy Miller

unread,
Dec 10, 2007, 9:51:24 AM12/10/07
to python-ogre...@googlegroups.com
And you did change the window call in sf-OIS.py to

    def _setupInput(self):
        # ignore buffered input
         windowHnd = self.renderWindow.getCustomAttributeUnsignedLong("WINDOW")

Cheers
Andy

Alex Trujillo

unread,
Dec 10, 2007, 9:55:08 AM12/10/07
to python-ogre...@googlegroups.com
Yep, did that. Still no change in the result.

- Alex

Andy Miller

unread,
Dec 10, 2007, 6:04:23 PM12/10/07
to python-ogre...@googlegroups.com
Try Demo_Spinner as it doesn't use the sample framework - put print
statements throughout and see where it crashes.


The 'good' thing is that the ogre python module is loading so it's now
not a build issue but a pure 64 bit issue

Andy

Lakin Wecker

unread,
Dec 10, 2007, 6:17:52 PM12/10/07
to python-ogre...@googlegroups.com
To figure out where it crashes you can also put an:
import pdb; pdb.set_trace()

at the top of the file, and then you can step through the application one line at a time. (Use 'n' + <enter>)

Lakin

> > > > > > As for Ode -- does the development/ode- 0.9 directory exist

Alex Trujillo

unread,
Dec 11, 2007, 8:32:30 PM12/11/07
to python-ogre...@googlegroups.com
Thanks for the tip. Here's the error I was able to isolate as far as Python goes:
ImportError: '/home/alex/development/root/usr/lib/python2.5/site-packages/ogre/renderer/OGRE/_ogre_.so: undefined symbol: _ZN5boost6python8indexing5sliceC1ERKS2_'
Unfortunately, _ogre_.so is a binary, and I'm not sure about what the first place to look in how to debug that is. It's something to do with boost, to be sure, but it doesn't give me a line or filename, so it's somewhat cryptic.

- Alex

Andy Miller

unread,
Dec 11, 2007, 10:10:50 PM12/11/07
to python-ogre...@googlegroups.com
Hang on -- thats the problem caused by not setting the LD_LIBRARY_PATH I thought?? (and hence picking up the wrong boost library)

Andy

Alex Trujillo

unread,
Dec 14, 2007, 10:06:27 AM12/14/07
to python-ogre...@googlegroups.com
Alright, I needed a short break from this business... At any rate, I'm ready to get back in action. Also, thanks a lot, Lakin, as your debugger suggestion was helpful. I'm still pretty new to python, so I didn't know about its debugger. Heh.

I've narrowed down my problem with 64-bit Python-Ogre demos to Othisgre's FrameListener. Here's my evidence:
I ran Demo_Smoke, here:
> /home/alex/development/root/usr/lib/python2.5/site-packages/ogre/renderer/OGRE/sf_OIS.py(102)_setUp()
-> self._createFrameListener()
(Pdb) n
Segmentation fault (core dumped)

> /home/alex/development/python-ogre/demos/ogre/CompositorDemo_FrameListener.py(348)<module>()->None
-> class CompositorDemo_FrameListener( Ogre.FrameListener, OIS.KeyListener,  OIS.MouseListener, ItemSelectorInterface):
...and curtains.

One interesting thing, though, is messing with Demo_Spinner.py, as this yields a slightly different output:
Texture: nskingr.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with 9 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
> /home/alex/development/python-ogre/demos/ogre/Demo_Spinner.py(64)__init__()
-> window_hnd = self.window.getCustomAttributeInt("WINDOW")
(Pdb) n
Segmentation fault (core dumped)

I included the 'Texture:' line because I used to get that all the time in most of my demos before I started debugging. I think I'm really homing in on the problem here, I'm getting warm, I just can't quite pinpoint it. I hope there are enough clues here for folks who are more familiar with this program to help isolate this stumbling block.

- Alex

Andy Miller

unread,
Dec 14, 2007, 10:22:02 AM12/14/07
to python-ogre...@googlegroups.com
Go back to the forum post about 64bit systems 

You can't use self.window.getCustomAttributeInt .... as it fails on 64 bit systems...

I'll update the svn over the week end to make it more 64 bit friendly

Andy
Reply all
Reply to author
Forward
0 new messages