spring and libpython2.6
Moderator: Moderators
-
- Posts: 12
- Joined: 06 Feb 2009, 20:39
spring and libpython2.6
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
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
Re: spring and libpython2.6
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.
the crash is probably unrelated.
-
- Posts: 12
- Joined: 06 Feb 2009, 20:39
Re: spring and libpython2.6
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.
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.
-
- Posts: 12
- Joined: 06 Feb 2009, 20:39
Re: spring and libpython2.6
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?
Re: spring and libpython2.6
compile with debug info and run spring in gdb. when it crashes, print a backtrace (bt) and post the output.
-
- Posts: 12
- Joined: 06 Feb 2009, 20:39
Re: spring and libpython2.6
imbaczek wrote:compile with debug info
I can't compile without python2.5StrangeMan wrote:scons and cmake show errors while configuring, because they cant find the python 2.5 includes.
Re: spring and libpython2.6
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
-
- Posts: 12
- Joined: 06 Feb 2009, 20:39
Re: spring and libpython2.6
Sorry, but I don't think, my skills are enough to do so.lurker wrote:StrangeMan wrote:I can't compileimbaczek wrote:two-line addition and already committed to master, try seeking it in git history and making the change yourself
Re: spring and libpython2.6
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 :)
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 :)
-
- Posts: 12
- Joined: 06 Feb 2009, 20:39
Re: spring and libpython2.6
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.
-
- Posts: 12
- Joined: 06 Feb 2009, 20:39
Re: spring and libpython2.6
Ok, i got an helpfull error message:
lobboost_regex seems to be installed. Where can i find Libboost_regex-gcc43-mt?
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.
Re: spring and libpython2.6
if you compiled correctly, you should already have it :/
-
- Posts: 12
- Joined: 06 Feb 2009, 20:39
Re: spring and libpython2.6
Well, scons configure shows me the missing library, but scons compiled without problems or errors. So i thought, it's ok. 

-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Re: spring and libpython2.6
Question: why don't you use the opensuse packages?
-
- Posts: 12
- Joined: 06 Feb 2009, 20:39
Re: spring and libpython2.6
@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:
@ imbaczek: Well, sometime libraries are optional...

@ all:
This is, what scons tells me:
What is that missing library? I can't find it in my package-manager./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.
-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Re: spring and libpython2.6
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...
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...
-
- Posts: 12
- Joined: 06 Feb 2009, 20:39
Re: spring and libpython2.6
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.[...] managed to compile spring, libtorrent for the lobby and the lobby itself [...]
Well, I would prefer, to use a self compiled version of spring.