Page 1 of 3

Problems running on Ubuntu 9.04

Posted: Tue Apr 21, 2009 7:04 pm
by ssalamass
I have downloaded the latest nightly V 2993 to check for those errors I menationed above and to give yo some support ^^ but after executing i get now this on ubuntu jaunty:
:)...

Code: Select all

./freeorion: symbol lookup error: /usr/lib32/libX11.so.6: undefined symbol: xcb_writev
greetings tom

Re: Intel 965GM on Linux

Posted: Tue Apr 21, 2009 10:54 pm
by OndrejR
go to application directory and run:

Code: Select all

ldd ./freeorion
and post output here.

Re: Intel 965GM on Linux

Posted: Wed Apr 22, 2009 3:35 pm
by ssalamass
OndrejR wrote:
OndrejR wrote:go to application directory(not where is installed, but under it where are all executables) and run:

Code: Select all

ldd ./freeorion
and post output here.

sorry.. but the code I posted above (accidentially as "quote") is the entire output.. there was nothing else than "not a dynamic executable". Jesus... i have difficulties over difficulties on jaunty and intrepid I think I am going back to Hardy

Re: Intel 965GM on Linux

Posted: Wed Apr 22, 2009 3:44 pm
by OndrejR
To the directory where are files:

Code: Select all

freeorionca
freeoriond
freeorion
and there run:

Code: Select all

ldd ./freeorion

Re: Intel 965GM on Linux

Posted: Wed Apr 22, 2009 9:31 pm
by ssalamass
ahh sorry man.. that was due to me being very tired :) here you go:

/freeorion/application$ ldd ./freeorion
linux-gate.so.1 => (0xf7f60000)
libGL.so.1 => /usr/lib32/libGL.so.1 (0xf7ed5000)
libGLU.so.1 => /usr/lib32/libGLU.so.1 (0xf7e63000)
libGiGi.so => not found
libGiGiOgre.so => not found
libOgreMain-1.6.1.so => not found
libm.so.6 => /lib32/libm.so.6 (0xf7e3c000)
libpthread.so.0 => /lib32/libpthread.so.0 (0xf7e23000)
libc.so.6 => /lib32/libc.so.6 (0xf7cbf000)
/lib/ld-linux.so.2 (0xf7f61000)
libdl.so.2 => /lib32/libdl.so.2 (0xf7cbb000)
libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf7ca1000)
libX11.so.6 => /usr/lib32/libX11.so.6 (0xf7bb2000)
libXext.so.6 => /usr/lib32/libXext.so.6 (0xf7ba2000)
libXxf86vm.so.1 => /usr/lib32/libXxf86vm.so.1 (0xf7b9c000)
libXdamage.so.1 => /usr/lib32/libXdamage.so.1 (0xf7b98000)
libXfixes.so.3 => /usr/lib32/libXfixes.so.3 (0xf7b93000)
libdrm.so.2 => /usr/lib32/libdrm.so.2 (0xf7b89000)
libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf7a9a000)
libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7a8b000)
libXau.so.6 => /usr/lib32/libXau.so.6 (0xf7a86000)
libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf7a81000)
librt.so.1 => /lib32/librt.so.1 (0xf7a78000)

Re: Intel 965GM on Linux

Posted: Thu Apr 23, 2009 9:35 pm
by kroddn
Thats not sufficient ;-)

Change into the "application" directory, as done bore and do:

Code: Select all

export LD_LIBRARY_PATH=./lib
ldd ./freeorion
And please execute:

Code: Select all

ldd /usr/lib32/libX11.so.6
It seems to me that an update of a lib removed a function which is needed by freeorion... or Ubuntu 9.04 introduced a bug into libX11 for 32 bit.

Which version do you have installed? A 64 Bit version of Ubuntu 9.04?

When I installed the nvidia driver on my x86_64 system, I could install 32 bit libs too - maybe these 32 bit libs for your card are missing.

Re: Intel 965GM on Linux

Posted: Sun May 03, 2009 7:47 pm
by agaric
ok heres my output

agaric@agaric-hdt:~/Games/freeorion/application$ export LD_LIBRARY_PATH=./lib

agaric@agaric-hdt:~/Games/freeorion/application$ ldd /usr/lib/libX11.so.6
linux-gate.so.1 => (0xb8009000)
libxcb.so.1 => ./lib/libxcb.so.1 (0xb7f00000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7eec000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7d88000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb7d84000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7d7f000)
/lib/ld-linux.so.2 (0xb800a000)

agaric@agaric-hdt:~/Games/freeorion/application$ ldd ./freeorion
linux-gate.so.1 => (0xb7fcc000)
libGL.so.1 => /usr/lib/libGL.so.1 (0xb7f00000)
libGLU.so.1 => /usr/lib/libGLU.so.1 (0xb7e8e000)
libGiGi.so => ./lib/libGiGi.so (0xb75ea000)
libGiGiOgre.so => ./lib/libGiGiOgre.so (0xb75d1000)
libOgreMain-1.6.2.so => ./lib/libOgreMain-1.6.2.so (0xb715f000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7139000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7120000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb6fbc000)
/lib/ld-linux.so.2 (0xb7fcd000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb6fb8000)
libxcb.so.1 => ./lib/libxcb.so.1 (0xb6fa0000)
libGLcore.so.1 => /usr/lib/libGLcore.so.1 (0xb6088000)
libnvidia-tls.so.1 => /usr/lib/tls/libnvidia-tls.so.1 (0xb6086000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb6075000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb5f86000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb5e97000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb5e88000)
libboost_signals-gcc43-mt-1_37.so.1.37.0 => ./lib/libboost_signals-gcc43-mt-1_37.so.1.37.0 (0xb5e75000)
libboost_system-gcc43-mt-1_37.so.1.37.0 => ./lib/libboost_system-gcc43-mt-1_37.so.1.37.0 (0xb5e70000)
libboost_filesystem-gcc43-mt-1_37.so.1.37.0 => ./lib/libboost_filesystem-gcc43-mt-1_37.so.1.37.0 (0xb5e5d000)
libboost_thread-gcc43-mt-1_37.so.1.37.0 => ./lib/libboost_thread-gcc43-mt-1_37.so.1.37.0 (0xb5e4f000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb5dd8000)
libz.so.1 => /lib/libz.so.1 (0xb5dc2000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb5da1000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb5d7b000)
libzzip-0.so.13 => ./lib/libzzip-0.so.13 (0xb5d75000)
libXaw.so.7 => /usr/lib/libXaw.so.7 (0xb5d17000)
libXt.so.6 => /usr/lib/libXt.so.6 (0xb5cc4000)
libSM.so.6 => /usr/lib/libSM.so.6 (0xb5cba000)
libICE.so.6 => /usr/lib/libICE.so.6 (0xb5ca2000)
libCg.so => ./lib/libCg.so (0xb55d5000)
libfreeimage.so.3 => ./lib/libfreeimage.so.3 (0xb5360000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb535c000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb5356000)
librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb534d000)
libXmu.so.6 => /usr/lib/libXmu.so.6 (0xb5337000)
libXpm.so.4 => /usr/lib/libXpm.so.4 (0xb5327000)
libuuid.so.1 => /lib/libuuid.so.1 (0xb5321000)

agaric@agaric-hdt:~/Games/freeorion/application$ ~/Games/freeorion/freeorion
Following into my basedir
CWD: /home/agaric/Games/freeorion/application
python2.5 found. Using it.
./freeorion: symbol lookup error: /usr/lib/libX11.so.6: undefined symbol: xcb_writev
agaric@agaric-hdt:~/Games/freeorion/application$

Re: Problems running on Ubuntu 9.04

Posted: Mon May 04, 2009 2:33 pm
by kroddn
I now was able to reproduce this error on an ubuntu virtual machine.

The problem is as fallows:
The library "libOgreMain-1.6.2.so" in freeorion needs a function _xcb_lock_io, which is delivered in lib libxcb.so.1 from Debian Lenny. I ship this lib with FreeOrion in the application/lib directory.

But this lib is incompatible with the Ubuntu 9.04 version of libX11, which is missing the symbol "xcb_writev".

I see no solution for now until we are able to link Ogre modules statically into the binary.

Re: Problems running on Ubuntu 9.04

Posted: Mon May 04, 2009 5:43 pm
by Geoff the Medio
You can't ship libx11 as well?

It'd be a pain, but could you make two versions of the linux binary: one for ubuntu 9.04 or later ane one for ubuntu 8.10, and (compatible OSes with each)?

Re: Problems running on Ubuntu 9.04

Posted: Mon May 04, 2009 5:57 pm
by kroddn
I cannot ship X11, because it differs from system to system. If I would do that, I could create a complete distribution for FreeOrion :-)

I don't want to do this work all again on an ubuntu system. There must be another solution... one is to build Ogre statically.

Re: Problems running on Ubuntu 9.04

Posted: Mon May 04, 2009 10:10 pm
by kroddn
Seems that I could fix this problem... but I am not able to test functionality, for I have no openGL 2.0 support on my ubuntu 9.04 virtual machine.

I linked libOgreMain into the freeorion binary statically. This does not affect the ogre modules used by GiGi at all, but the error does not appear.

Someone needs to test that.

The latest version on my webspace is updated:

http://freeorion.psitronic.de/download/ ... tic.tar.gz
md5sum: 143b45be438119bff870c5d7911fdcdd

Re: Problems running on Ubuntu 9.04

Posted: Tue May 05, 2009 3:46 am
by agaric
Okey, i have just tested this version and it didn't work. The output was as follows.

agaric@agaric-hdt:~/Games/freeorion$ ~/Games/freeorion/freeorion
Following into my basedir
CWD: /home/agaric/Games/freeorion/application
python2.5 found. Using it.
freeorion: OgreRoot.cpp:103: static Ogre::Root& Ogre::Root::getSingleton(): Assertion `ms_Singleton' failed.
Aborted
agaric@agaric-hdt:~/Games/freeorion$

Re: Problems running on Ubuntu 9.04

Posted: Tue May 05, 2009 3:55 am
by Geoff the Medio
Can you post your ogre.log?

And do you have OpenGL support on that system? (sorry if you've said already).

Edit: hmm: viewtopic.php?p=36156#p36156
A problem with the static linking, I presume.

Re: Problems running on Ubuntu 9.04

Posted: Tue May 05, 2009 4:45 am
by agaric
I did have a hard time finding ogre.log(~/.freeorion/ogre.log) at first :)

It seems it doesn't make one if i dont sudo freeorion??. There was a one from yesterday, and it only updated it when used sudo. The earlier one had alot more info in it too.

07:31:15: Creating resource group General
07:31:15: Creating resource group Internal
07:31:15: Creating resource group Autodetect
07:31:15: SceneManagerFactory for type 'DefaultSceneManager' registered.
07:31:15: Registering ResourceManager for type Material
07:31:15: Registering ResourceManager for type Mesh
07:31:15: Registering ResourceManager for type Skeleton
07:31:15: MovableObjectFactory for type 'ParticleSystem' registered.
07:31:15: OverlayElementFactory for type Panel registered.
07:31:15: OverlayElementFactory for type BorderPanel registered.
07:31:15: OverlayElementFactory for type TextArea registered.
07:31:15: Registering ResourceManager for type Font
07:31:15: ArchiveFactory for archive type FileSystem registered.
07:31:15: ArchiveFactory for archive type Zip registered.
07:31:15: FreeImage version: 3.10.0
07:31:15: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
07:31:15: 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,exr,j2k,j2c,jp2
07:31:15: DDS codec registering
07:31:15: Registering ResourceManager for type HighLevelGpuProgram
07:31:15: Registering ResourceManager for type Compositor
07:31:15: MovableObjectFactory for type 'Entity' registered.
07:31:15: MovableObjectFactory for type 'Light' registered.
07:31:15: MovableObjectFactory for type 'BillboardSet' registered.
07:31:15: MovableObjectFactory for type 'ManualObject' registered.
07:31:15: MovableObjectFactory for type 'BillboardChain' registered.
07:31:15: MovableObjectFactory for type 'RibbonTrail' registered.
07:31:15: Loading library ./RenderSystem_GL

My glxinfo says about OpenGl:
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 8800 GTS/PCI/SSE2
OpenGL version string: 3.0.0 NVIDIA 180.44
OpenGL shading language version string: 1.30 NVIDIA via Cg compiler

Re: Problems running on Ubuntu 9.04

Posted: Wed May 06, 2009 1:44 pm
by kroddn
The linux-version of FreeOrion supports a parameter "--strace". This can be used to create an strace.

Call it like this

Code: Select all

$HOME/freeorion/freeorion --strace
I then creats a logfile in /tmp/freeorion.trace - this file can be uploaded here.

Of course the programm "strace" needs to be installed on the system.