getting a SDL error .. need some help ..

getting a SDL error .. need some help ..

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

Moderator: Moderators

Post Reply
User avatar
genblood
Posts: 862
Joined: 19 Jan 2005, 03:37

getting a SDL error .. need some help ..

Post by genblood »

I've just rebuilt my Linux system and I'm using Gentoo 2006.1 on
a AMDx86-64 build. This is the error I'm getting ...

spring is using data directory: /home/<user>/.spring
Warning: ERROR
Could not initialize SDL.

If you have a solution post it ..
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

U tried
revdep-rebuild

And recompiling spring aswell ?
User avatar
genblood
Posts: 862
Joined: 19 Jan 2005, 03:37

Post by genblood »

hollowsoul
U tried
revdep-rebuild

Where is that information? Can you post where it is and
more details on it ...
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Code: Select all

emerge gentoolkit
revdep-rebuild
http://gentoo-wiki.com/TIP_Control_revdep-rebuild

How do people use gentoo & dont know about revdep-rebuild :)
Basicly it rebuilds packages that are broken, due to libraby(s) that they were compiled against, where an update to library changed the ABI.

Basicly, never hurts to run revdep-rebuild -i
When a app stops working after update, or even after updating your system.

edit: Since your problems occured when u rebuilt your system. Changes u need to run revdep-rebuild to rebuild broken packages. Not sure if revdep-rebuild will pick up on taspring. So would compile that again just to be safe
User avatar
genblood
Posts: 862
Joined: 19 Jan 2005, 03:37

Post by genblood »

Thanks for the help. I've read up on it in the portage
manual.

I prefer the windows os over linux ... I know more about
windows. I prefer the Gentoo distro over all the others.
Due to it makes me think more ... I know it doesn't sound
right ... but I've learned alot from trail and errors ...
During the installation of Gentoo..
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Re: getting a SDL error .. need some help ..

Post by PauloMorfeo »

genblood wrote:I've just rebuilt my Linux system ...
spring is using data directory: /home/<user>/.spring
Warning: ERROR
Could not initialize SDL.
...
Since you just rebuilt your OS, my bet is that you do not have full 3D drivers installed.
Also, i have seen that request of help many times. As far as i know, that is almost always not having 3D drivers installed.
SDL will try to set up a grafical mode and use 3D acceleration but it won't be available, thus failing to initialise.

If you don't know how to check, use:
glxinfo | grep render
Should say something like "direct rendering: yes". Or no...
If you are newbie to Linux, i advise against Gentoo. Although you will learn alot while strugling with the dificulties..
own3d
Posts: 129
Joined: 25 Aug 2006, 16:31

Post by own3d »

Having used gentoo extensively for two years, I am royally fed up with it, just install ubuntu and put some of the universe/multiverse repositories on. Its almost as upto date and has every package you can think of.


Anyway to install graphics drivers we first need to know what your graphics card make and model are.
User avatar
genblood
Posts: 862
Joined: 19 Jan 2005, 03:37

Post by genblood »

I updated with revdep-rebuild ... and re-emerge taspring.

I'm still getting the same error :oops:

I typed glxinfo | grep render ..

XXXXXX@LordBlood ~ $ glxinfo | grep render
direct rendering: Yes
OpenGL renderer string: GeForce 6600/PCI/SSE2
GL_NVX_conditional_render, GL_SGIS_generate_mipmap, GL_SGIS_texture_lod,



I'm still getting this error message ....

xxxxxx@LordBlood ~ $ spring
Warning: ERROR
Could not initialize SDL.

I got it to work at one time , but I did a rebuild due to new hardware I was upgrading
too. If you know a solution can you post it.
pheldens
Posts: 191
Joined: 12 Aug 2006, 21:35

Post by pheldens »

find out why sdl crashes,

export SDL_DEBUG=1 && ./spring
own3d
Posts: 129
Joined: 25 Aug 2006, 16:31

Post by own3d »

Follow this guide to setup your drivers http://www.gentoo.org/doc/en/nvidia-guide.xml
malric
Posts: 521
Joined: 30 Dec 2005, 22:22

Post by malric »

I just upgraded myself to 2006.1 on an AMDx86-64 but with the system compiled for 32 bits, and I have no problem.

Just some thoughts:
- are other things that use sdl working ?
- what are you CFLAGS ? For example I ran into problems (crashes for some applications) when i used to aggresive CFLAGS.
Post Reply

Return to “Linux”