I have finally gotten around to doing some more work on the debian/ubuntu packages.
Now I need testers! Currently I only have packages for ubuntu hardy i386, but I hope to add support for gusty and debian unstable (both i386 and amd64!). I will also soon push code to the svn repository which lets you easily build your own debs too.
On Sun, Jul 13, 2008 at 8:01 PM, Tim Ansell <mit...@gmail.com> wrote:
> Hey guys,
> I have finally gotten around to doing some more work on the > debian/ubuntu packages.
> Now I need testers! Currently I only have packages for ubuntu hardy > i386, but I hope to add support for gusty and debian unstable (both i386 > and amd64!). I will also soon push code to the svn repository which lets > you easily build your own debs too.
i just installed it, tryin to get some demos working. i replaced the
plugin path in plugins.cfg to /usr/lib/OGRE/ and it manages to load a
bit but then there appears to be a missing one
[code]Loading library /usr/lib/OGRE/Plugin_CgProgramManager.so
OGRE EXCEPTION(7:): Could not load dynamic library /usr/lib/OGRE/
Plugin_CgProgramManager.so. System Error: /usr/lib/OGRE/
Plugin_CgProgramManager.so: cannot open shared object file: No such
file or directory in DynLib::load at OgreDynLib.cpp (line 80)[/code]
is it me doing something wrong or is there something not right with
the .deb?
On Jul 14, 7:05 am, Tim Ansell <mit...@gmail.com> wrote:
@Jimjamjahaa: Does the file: /usr/lib/OGRE/Plugin_CgProgramManager.so exist?
@Tim: Thanks for this packaging! I intended to do Debian packaging at some point, but it never got around. I hope you'll port it to Debian Lenny/Sid soon. In the meantime, when I get hold of an Ubuntu machine I'll try it.
On Mon, Jul 14, 2008 at 15:27, Jimjamjahaa <jimjamja...@gmail.com> wrote:
> i just installed it, tryin to get some demos working. i replaced the > plugin path in plugins.cfg to /usr/lib/OGRE/ and it manages to load a > bit but then there appears to be a missing one
> [code]Loading library /usr/lib/OGRE/Plugin_CgProgramManager.so > OGRE EXCEPTION(7:): Could not load dynamic library /usr/lib/OGRE/ > Plugin_CgProgramManager.so. System Error: /usr/lib/OGRE/ > Plugin_CgProgramManager.so: cannot open shared object file: No such > file or directory in DynLib::load at OgreDynLib.cpp (line 80)[/code]
> is it me doing something wrong or is there something not right with > the .deb?
> On Jul 14, 7:05 am, Tim Ansell <mit...@gmail.com> wrote: >> On Sun, 2008-07-13 at 21:20 -0600, Lakin Wecker wrote: >> > Right on! Thanks for doing this. I'm sure it will really be appreciated.
I don't know how to debug this, so here's just the installation log. Note, the possible conflict may ONLY come from previous attempted installation of Python-Ogre from source, although I doubt this (unless the Wiki instructions install system wide binaries? :P)
ivucica@riki:~/development/pygccxml$ sudo apt-get install python-ogre [sudo] password for ivucica: Reading package lists... Done Building dependency tree Reading state information... Done python-ogre is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 59 not upgraded. 1 not fully installed or removed. After this operation, 0B of additional disk space will be used. Setting up python-ogre (0.0.0-1) ... pycentral: pycentral pkginstall: not overwriting local files pycentral pkginstall: not overwriting local files dpkg: error processing python-ogre (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: python-ogre E: Sub-process /usr/bin/dpkg returned an error code (1)
> @Tim: > Thanks for this packaging! I intended to do Debian packaging at some > point, but it never got around. I hope you'll port it to Debian > Lenny/Sid soon. In the meantime, when I get hold of an Ubuntu machine > I'll try it.
I don't have a lenny/sid machine available to build on. I have however pushed the code which I used to generate these debs into the Python-ogre repository (thank Andy for giving me access).
You should be able to produce debs for Lenny/Sid by doing the following,
*WARNING*: The scripts are very fragile, do not attempt this unless you know what you are doing!!!!!! I am working on making this easier for the general user.
On Mon, 2008-07-14 at 18:56 +0200, Ivan Vucica wrote: > Hi,
> I don't know how to debug this, so here's just the installation log. > Note, the possible conflict may ONLY come from previous attempted > installation of Python-Ogre from source, although I doubt this (unless > the Wiki instructions install system wide binaries? :P)
> ivucica@riki:~/development/pygccxml$ sudo apt-get install python-ogre > [sudo] password for ivucica: > Reading package lists... Done > Building dependency tree > Reading state information... Done > python-ogre is already the newest version. > 0 upgraded, 0 newly installed, 0 to remove and 59 not upgraded. > 1 not fully installed or removed. > After this operation, 0B of additional disk space will be used. > Setting up python-ogre (0.0.0-1) ... > pycentral: pycentral pkginstall: not overwriting local files > pycentral pkginstall: not overwriting local files > dpkg: error processing python-ogre (--configure): > subprocess post-installation script returned error exit status 1 > Errors were encountered while processing: > python-ogre > E: Sub-process /usr/bin/dpkg returned an error code (1)
Do you have a previous version of python-ogre installed (IE from building the development version yourself)? If so you will need to remove it by hand.
Pycentral is complaining that it will overwrite files which already exist.
Are you installing these on Ubuntu Hardy (or trying to install on debian)? There are differences in pycentral that will make it impossible.
On Mon, 2008-07-14 at 06:27 -0700, Jimjamjahaa wrote: > i just installed it, tryin to get some demos working. i replaced the > plugin path in plugins.cfg to /usr/lib/OGRE/ and it manages to load a > bit but then there appears to be a missing one
You should remove plugins.cfg and link /etc/OGRE/plugins.cfg to the local directory (IE the command you need to run is "ln -s /etc/OGRE/plugins.cfg plugins.cfg").
> [code]Loading library /usr/lib/OGRE/Plugin_CgProgramManager.so > OGRE EXCEPTION(7:): Could not load dynamic library /usr/lib/OGRE/ > Plugin_CgProgramManager.so. System Error: /usr/lib/OGRE/ > Plugin_CgProgramManager.so: cannot open shared object file: No such > file or directory in DynLib::load at OgreDynLib.cpp (line 80)[/code]
The CgProgramManager is not part of the ogre3d Ubuntu ships. See what you have to do above. I hope to create a python-ogre-demos package in the near future.
> is it me doing something wrong or is there something not right with > the .deb?
On Tue, Jul 15, 2008 at 04:10, Tim Ansell <mit...@gmail.com> wrote: > Do you have a previous version of python-ogre installed (IE from > building the development version yourself)? If so you will need to > remove it by hand.
> Pycentral is complaining that it will overwrite files which already > exist.
> Are you installing these on Ubuntu Hardy (or trying to install on > debian)? There are differences in pycentral that will make it > impossible.
It's on Ubuntu Hardy on company's PC :)
Is it possible to make Pycentral print out exactly WHICH file is it attempting to overwrite? DPKG usually prints that out when it hits a file replacement error, so can you make Pycentral do the same in this postinstall config step? -- Regards,
Has this machine had python ogre installed at any time in the past?
> Is it possible to make Pycentral print out exactly WHICH file is it > attempting to overwrite? DPKG usually prints that out when it hits a > file replacement error, so can you make Pycentral do the same in this > postinstall config step?
I have no idea :/ An strace or ltrace might give us an idea.
I'm assuming it is one of the files under /usr/lib/python2.5/site-packages/ogre/
That directory should not exist until after you install the python-ogre.
On Tue, 2008-07-15 at 15:39 +0200, Ivan Vucica wrote: > On Tue, Jul 15, 2008 at 15:35, Tim Ansell <mit...@gmail.com> wrote: > > Has this machine had python ogre installed at any time in the past?
> Only as described on the wiki.
> I don't _think_ it was globally installed, but I can't remember what > kind of junk I did over a month ago.
It is likely that you did and hence python central is refusing to overwrite these unknown files.
> > I have no idea :/ An strace or ltrace might give us an idea.
> No pycentral --help? (I'm currently under Evil OS)
Nothing in there gives any useful information about this problem.
> > I'm assuming it is one of the files under > > /usr/lib/python2.5/site-packages/ogre/
> > That directory should not exist until after you install the python-ogre.
On Tue, 2008-07-15 at 09:11 -0700, Jimjamjahaa wrote: > hi thanks for the tip. it works, but not when "RTT Preferred Mode" is > set to "FBO". when that happens i get the following
I have no idea what you are saying above. Can you send some code which produces the problem (or which demo is failing?).
If he is running nvidia 169.x drivers and an older version of Ogre,
this is a well known bug. There is a workaround in svn and Ogre1.4.9
which rectifies this for nvidia 169.x. I'm not sure what version of
Ogre is in the debian/ubuntu package or if it contains the above
patch.
> On Tue, 2008-07-15 at 09:11 -0700, Jimjamjahaa wrote:
> > hi thanks for the tip. it works, but not when "RTT Preferred Mode" is
> > set to "FBO". when that happens i get the following
> I have no idea what you are saying above. Can you send some code which
> produces the problem (or which demo is failing?).
> If he is running nvidia 169.x drivers and an older version of Ogre,
> this is a well known bug. There is a workaround in svn and Ogre1.4.9
> which rectifies this for nvidia 169.x. I'm not sure what version of
> Ogre is in the debian/ubuntu package or if it contains the above
> patch.
> On Jul 16, 11:50 am, Tim Ansell <mit...@gmail.com> wrote:
> > On Tue, 2008-07-15 at 09:11 -0700, Jimjamjahaa wrote:
> > > hi thanks for the tip. it works, but not when "RTT Preferred Mode" is
> > > set to "FBO". when that happens i get the following
> > I have no idea what you are saying above. Can you send some code which
> > produces the problem (or which demo is failing?).
> yep that would be it... i am using libogre1.4 (1.4.5-3build1) are > there newer debs available?
> On Jul 16, 8:54 am, dermont <dermontg...@gmail.com> wrote: >> >>> I have no idea what you are saying above.
>> If he is running nvidia 169.x drivers and an older version of Ogre, >> this is a well known bug. There is a workaround in svn and Ogre1.4.9 >> which rectifies this for nvidia 169.x. I'm not sure what version of >> Ogre is in the debian/ubuntu package or if it contains the above >> patch.
>> On Jul 16, 11:50 am, Tim Ansell <mit...@gmail.com> wrote:
>> > On Tue, 2008-07-15 at 09:11 -0700, Jimjamjahaa wrote: >> > > hi thanks for the tip. it works, but not when "RTT Preferred Mode" is >> > > set to "FBO". when that happens i get the following
>> > I have no idea what you are saying above. Can you send some code which >> > produces the problem (or which demo is failing?).
finally I have tested this (continuing from what I have posted in the previous mail).
First, here's the output log from company's "big project" developed under Windows:
ivucica@riki:/mnt/winxp/LOCV SVN/trunk$ python main.py data/texts: loaded 214 texts from 7 files Traceback (most recent call last): File "main.py", line 1, in <module> from src import init, logger File "/mnt/winxp/SVN/trunk/src/init.py", line 1, in <module> from project import * File "/mnt/winxp/SVN/trunk/src/project.py", line 23, in <module> from src import app, camera, session, localisation, audio, character, jobs, path, ui, actions, dialog File "/mnt/winxp/SVN/trunk/src/audio.py", line 2, in <module> import ogre.sound.OgreAL as OgreAL File "/usr/lib/python2.5/site-packages/ogre/sound/OgreAL/__init__.py", line 6, in <module> from _ogreal_ import * ImportError: /usr/lib/python2.5/site-packages/ogre/sound/OgreAL/_ogreal_.so: undefined symbol: _ZN5boost6python8indexing15python_iteratorC1ENS0_3api6objectE
Obviously, OgreAL is not built correctly.
Also I have tried demo smoke and demo onefish from PythonOgre SVN:
ivucica@riki:~/development/python-ogre/demos/ogre$ python ./Demo_OneFish.py Creating 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,pp m,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 /usr/lib/OGRE/RenderSystem_GL.so Installing plugin: GL RenderSystem OpenGL Rendering Subsystem created. Plugin successfully installed Loading library /usr/lib/OGRE/Plugin_ParticleFX.so 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 /usr/lib/OGRE/Plugin_BSPSceneManager.so Installing plugin: BSP Scene Manager Plugin successfully installed Loading library /usr/lib/OGRE/Plugin_OctreeSceneManager.so Installing plugin: Octree & Terrain Scene Manager Plugin successfully installed Loading library /usr/lib/OGRE/Plugin_EXRCodec.so EXRCodec initialised *-*-* 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: GenuineIntel: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz * SSE: yes * SSE2: yes * SSE3: yes * MMX: yes * MMXEXT: yes * 3DNOW: no * 3DNOWEXT: no * CMOV: yes * TSC: yes * FPU: yes * PRO: yes * HT: no ------------------------- ****************************** *** Starting GLX Subsystem *** ****************************** GLRenderSystem::createRenderWindow "OGRE Render Window", 800x600 windowed miscParams: FSAA=0 title=OGRE Render Window GLXWindow::create Parsing miscParams GLXWindow::create -- Best visual is 36 Error: API mismatch: the NVIDIA kernel module has version 173.14.05, but this NVIDIA driver component has version 173.14.09. Please make sure that the kernel module and all NVIDIA driver components have the same version. NVIDIA: Direct rendering failed; attempting indirect rendering. GL_VERSION = 2.1.2 NVIDIA 173.14.05 GL_VENDOR = NVIDIA Corporation GL_RENDERER = GeForce 9600 GT/PCI/SSE2 GL_EXTENSIONS = GL_ARB_color_buffer_float GL_ARB_depth_texture GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_half_float_pixel GL_ARB_imaging 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_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_vertex_program GL_ARB_window_pos 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_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_object GL_EXTX_framebuffer_mixed_formats GL_EXT_framebuffer_sRGB GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_packed_pixels GL_EXT_pixel_buffer_object GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_EXT_texture3D GL_EXT_texture_array GL_EXT_texture_compression_latc GL_EXT_texture_compression_rgtc 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_texture_shared_exponent GL_EXT_timer_query GL_EXT_vertex_array 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_float_buffer GL_NV_fog_distance GL_NV_fragment_program_option GL_NV_fragment_program2 GL_NV_geometry_shader4 GL_NV_light_max_exponent GL_NV_multisample_coverage GL_NV_multisample_filter_hint GL_NV_packed_depth_stencil 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_program2_option GL_NV_vertex_program3 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_L8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 FBO PF_A8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 FBO PF_A4L4 depth/stencil support: D0S0 D16S0 D24S0 D32S0 FBO PF_BYTE_LA depth/stencil support: D0S0 D16S0 D24S0 D32S0 FBO PF_R5G6B5 depth/stencil support: D0S0 D16S0 D24S0 D32S0 FBO PF_B5G6R5 depth/stencil support: D0S0 D16S0 D24S0 D32S0 FBO PF_A1R5G5B5 depth/stencil support: D0S0 D16S0 D24S0 D32S0 FBO PF_R8G8B8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 FBO PF_B8G8R8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 FBO PF_A8R8G8B8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8 FBO
...
From your log this may be your problem:
...
Error: API mismatch: the NVIDIA kernel module has version 173.14.05,
but this NVIDIA driver component has version 173.14.09. Please make
sure that the kernel module and all NVIDIA driver components
have the same version.
..
On Jul 22, 2:28 am, "Ivan Vucica" <ivuc...@gmail.com> wrote:
> From your log this may be your problem: > ... > Error: API mismatch: the NVIDIA kernel module has version 173.14.05, > but this NVIDIA driver component has version 173.14.09. Please make > sure that the kernel module and all NVIDIA driver components > have the same version. > ..
Woah! How did I miss that? Thanks. I have no idea how this happened; I'm pretty certain I installed the Ubuntu package for nVidia cards. I'll try rebuilding the module. Thank you again!