spring and libpython2.6

spring and libpython2.6

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
StrangeMan
Posts: 12
Joined: 06 Feb 2009, 20:39

spring and libpython2.6

Post by StrangeMan »

Hi there.

I'm trying to run spring on my brand new installed opensuse11.1 32bit system. I installed it using the MojoSetup. The only version of libpython, my system provides is 2.6, but spring requires 2.5, which i cant install, due to dependency reasons. (=> I can not downgrade python). I searched the web for more than 3h and also tried to compile from source. I always come to the point, where i need this libpython2.5.so.1.0.

I have libpython2.6.so.1.0, so i created a symlink, what showed spring a "fake" of libpython2.5.so.1.0. Spring started successfully and i was able to play, but after some minutes, it suddenly crashed (It just closes the window and i'm back on my desktop. That happens during onlineplay and singleplayer). I guess, this is a problem, caused by the faked python library.

So i thought, that compiling from source might solve my problem. But scons and cmake show errors while configuring, because they cant find the python 2.5 includes.

Is there a way to run spring with python 2.6 or do my crashes with the fake version of libpython2.5.so.1.0 depend on other reasons?

Thanks for replies,
StrangeMan
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: spring and libpython2.6

Post by imbaczek »

the game itself doesn't use python at all; unitsync (the lobby interface lib) uses it. python 2.6 is a two-line addition and already committed to master, try seeking it in git history and making the change yourself.

the crash is probably unrelated.
StrangeMan
Posts: 12
Joined: 06 Feb 2009, 20:39

Re: spring and libpython2.6

Post by StrangeMan »

So, you think, its better to use the symlinked way? Well, ok, but this would mean, that i have to search for the cause of the crash. I'll try to reproduce it and save the terminal output in a file.

I installed my system today, yesterday i had opensuse 11.0 and everything worked find, including the libpython. I had no crashes, thats why i thinkt this library might cause them.
StrangeMan
Posts: 12
Joined: 06 Feb 2009, 20:39

Re: spring and libpython2.6

Post by StrangeMan »

OK, i played the game again and had a crash. I saved the output of startspring.sh, but it doesn't seem to contain crash-related stuff. I read in some other text files and log files, but none seems to contain anything usable. The game doesn't show any error message. What can i do now?
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: spring and libpython2.6

Post by imbaczek »

compile with debug info and run spring in gdb. when it crashes, print a backtrace (bt) and post the output.
StrangeMan
Posts: 12
Joined: 06 Feb 2009, 20:39

Re: spring and libpython2.6

Post by StrangeMan »

imbaczek wrote:compile with debug info
StrangeMan wrote:scons and cmake show errors while configuring, because they cant find the python 2.5 includes.
I can't compile without python2.5
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: spring and libpython2.6

Post by lurker »

StrangeMan wrote:I can't compile
imbaczek wrote:two-line addition and already committed to master, try seeking it in git history and making the change yourself
StrangeMan
Posts: 12
Joined: 06 Feb 2009, 20:39

Re: spring and libpython2.6

Post by StrangeMan »

lurker wrote:
StrangeMan wrote:I can't compile
imbaczek wrote:two-line addition and already committed to master, try seeking it in git history and making the change yourself
Sorry, but I don't think, my skills are enough to do so.
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: spring and libpython2.6

Post by aegis »

remove the python dependencies from unitsync.
viewtopic.php?p=319821#p319821

if anyone (probably me) ever gets around to needing unitsync in python, I've already got it covered, and my implementation will be more cross-version :)
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: spring and libpython2.6

Post by imbaczek »

ctypes ftw.
StrangeMan
Posts: 12
Joined: 06 Feb 2009, 20:39

Re: spring and libpython2.6

Post by StrangeMan »

Ok, i downloaded the config.py from the link and managed to compile spring, libtorrent for the lobby and the lobby itself. I can play a normal game, but there are still crashes. At the moment i'm recompiling with debug=1. For my crash doesn't seem to be libpython-related anymore, i'll open a new topic.
StrangeMan
Posts: 12
Joined: 06 Feb 2009, 20:39

Re: spring and libpython2.6

Post by StrangeMan »

Ok, i got an helpfull error message:

Code: Select all

rts/System/Platform/Linux/SoLib.cpp:23: SoLib::SoLib: libboost_regex-gcc43-mt-1_35.so.1.35.0: cannot open shared object file: No such file or directory

Program received signal SIGSEGV, Segmentation fault.
lobboost_regex seems to be installed. Where can i find Libboost_regex-gcc43-mt?
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: spring and libpython2.6

Post by imbaczek »

if you compiled correctly, you should already have it :/
StrangeMan
Posts: 12
Joined: 06 Feb 2009, 20:39

Re: spring and libpython2.6

Post by StrangeMan »

Well, scons configure shows me the missing library, but scons compiled without problems or errors. So i thought, it's ok. :|
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: spring and libpython2.6

Post by imbaczek »

:shock:
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: spring and libpython2.6

Post by Auswaschbar »

Question: why don't you use the opensuse packages?
StrangeMan
Posts: 12
Joined: 06 Feb 2009, 20:39

Re: spring and libpython2.6

Post by StrangeMan »

@Auswaschbar: Because the lobby was very old, and things didn't work good.

@ imbaczek: Well, sometime libraries are optional... :?

@ all:
This is, what scons tells me:
/spring_0.78.2.1> scons configure
scons: Reading SConscript files ...

Now configuring. If something fails, consult `config.log' for details.

Detected platform : linux
Checking gcc version... 4.3.2
Configuring for i686
profiling NOT enabled, debugging NOT enabled, level 2 optimizing enabled
Precompiled header enabled
OpenGL Multithreading Library and parallel threads for Sim/Draw are NOT enabled

Configuring spring
Checking for zip... Zip 2.32 found
Checking for Freetype2...
Checking for freetype-config... /usr/bin/freetype-config
Checking for Freetype >= 2.0.0... 2.3.7
Checking for SDL...
Checking for sdl-config... /usr/bin/sdl-config
Checking for LibSDL >= 1.2.0... 1.2.13
Checking for OpenAL...
Checking for openal-config... not found
Guessing OpenAL include path... /usr/include/AL
Checking for Ogg headers...
Guessing ogg include path... /usr/include/ogg
Checking for Vorbis(-file) headers...
Guessing vorbisfile include path... /usr/include/vorbis
Checking for Python 2.6...
Guessing Python include path... /usr/include/python2.6
Checking for Python 2.5...
Guessing Python include path... /usr/include/python2.5
Checking for Python 2.4...
Guessing Python include path... /usr/include/python2.4
Checking for Java... not found
Guessing Java include path... /usr/include/java

Checking headers and libraries
Checking for C++ header file boost/cstdint.hpp... yes
Checking for C++ header file boost/regex.hpp... yes
Checking for C library boost_regex-gcc-mt... no
Checking for C library boost_regex-mt... yes
Checking for C++ header file boost/serialization/split_member.hpp... yes
Checking for C++ header file boost/thread.hpp... yes
Checking for C library boost_thread-gcc-mt... no
Checking for C library boost_thread-mt... yes
Checking for C++ header file GL/gl.h... yes
Checking for C library GL... yes
Checking for C++ header file GL/glu.h... yes
Checking for C library GLU... yes
Checking for C++ header file GL/glew.h... yes
Checking for C library GLEW... yes
Checking for C++ header file zlib.h... yes
Checking for C library z... yes
Checking for C++ header file ft2build.h... yes
Checking for C library freetype... yes
Checking for C++ header file IL/il.h... yes
Checking for C library IL... yes
Checking for C++ header file IL/ilu.h... yes
Checking for C library ILU... yes
Checking for C++ header file AL/al.h... yes
Checking for C library openal... yes
Checking for C++ header file X11/Xcursor/Xcursor.h... yes
Checking for C library Xcursor... yes
Checking for C++ header file X11/X.h... yes
Checking for C library X11... yes
Checking for C++ header file vorbis/vorbisfile.h... yes
Checking for C library vorbisfile... yes
Checking for C library vorbis... yes
Checking for C++ header file ogg/ogg.h... yes
Checking for C library ogg... yes
Checking for C++ header file SDL/SDL.h... yes
Checking for C library SDL... yes
Checking for C++ header file Python.h... yes
Checking for C library python2.6... yes
Checking for C++ header file jni.h... yes

Everything seems OK. Run `scons' now to build.
scons: done reading SConscript files.
scons: Building targets ...
scons: Nothing to be done for `configure'.
scons: done building targets.
What is that missing library? I can't find it in my package-manager.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: spring and libpython2.6

Post by Auswaschbar »

When lobby is too old, you should go and compile the lobby instead.

http://software.opensuse.org/search?q=s ... 3A11.1&p=1 here is the most recent version of spring, including unitsync. But I wonder why there are no i586-packages for springlobby...
StrangeMan
Posts: 12
Joined: 06 Feb 2009, 20:39

Re: spring and libpython2.6

Post by StrangeMan »

[...] managed to compile spring, libtorrent for the lobby and the lobby itself [...]
OK, i installed only the yast-packages fpr spring and used my self compiled lobby. But where is the unitsync library now? Without the path to it, i can't change the spring settings.

Well, I would prefer, to use a self compiled version of spring.
Post Reply

Return to “Linux”