SDL initialization failed

Hi all:

I’ve built SDL from source and installed it, because I want the most
recent version to use with Gource. However, now when I try to run
Gource, I get an error:

$ /usr/local/bin/gource
gource: SDL initialization failed - No available video device

I have previously installed various sdl packages with apt-get (on
Ubuntu 11.04), but I tried removing them to see if that would help.
It doesn’t seem to change anything. Can you give some tips about how
to get SDL initialization to work?

$ dpkg --get-selections | grep sdl
libsdl-image1.2 deinstall
libsdl-mixer1.2 deinstall
libsdl-ttf2.0-0 deinstall
libsdl1.2debian-pulseaudio install
sdl-ball deinstall
sdl-ball-data install

Looks like you don’t have your distros equivalent to libsdl-dev, but that’s
my guess.On Sun, Jun 26, 2011 at 1:28 PM, Joe Corneli wrote:

Hi all:

I’ve built SDL from source and installed it, because I want the most
recent version to use with Gource. However, now when I try to run
Gource, I get an error:

$ /usr/local/bin/gource
gource: SDL initialization failed - No available video device

I have previously installed various sdl packages with apt-get (on
Ubuntu 11.04), but I tried removing them to see if that would help.
It doesn’t seem to change anything. Can you give some tips about how
to get SDL initialization to work?

$ dpkg --get-selections | grep sdl
libsdl-image1.2 deinstall
libsdl-mixer1.2 deinstall
libsdl-ttf2.0-0 deinstall
libsdl1.2debian-pulseaudio install
sdl-ball deinstall
sdl-ball-data install


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Oh, ignore that, I just re-read your original post
When you ran ./configure, what was the output?On Sun, Jun 26, 2011 at 2:12 PM, Alex Barry <@Alex_Barry> wrote:

Looks like you don’t have your distros equivalent to libsdl-dev, but that’s
my guess.

On Sun, Jun 26, 2011 at 1:28 PM, Joe Corneli wrote:

Hi all:

I’ve built SDL from source and installed it, because I want the most
recent version to use with Gource. However, now when I try to run
Gource, I get an error:

$ /usr/local/bin/gource
gource: SDL initialization failed - No available video device

I have previously installed various sdl packages with apt-get (on
Ubuntu 11.04), but I tried removing them to see if that would help.
It doesn’t seem to change anything. Can you give some tips about how
to get SDL initialization to work?

$ dpkg --get-selections | grep sdl
libsdl-image1.2 deinstall
libsdl-mixer1.2 deinstall
libsdl-ttf2.0-0 deinstall
libsdl1.2debian-pulseaudio install
sdl-ball deinstall
sdl-ball-data install


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Hi Alex:

Pasted here: http://pastebin.com/raw.php?i=Xb8ED2c2

JoeOn Sun, Jun 26, 2011 at 8:14 PM, Alex Barry <alex.barry at gmail.com> wrote:

Oh, ignore that, I just re-read your original post
When you ran ./configure, what was the output?

On Sun, Jun 26, 2011 at 2:12 PM, Alex Barry <alex.barry at gmail.com> wrote:

Looks like you don’t have your distros equivalent to libsdl-dev, but
that’s my guess.

On Sun, Jun 26, 2011 at 1:28 PM, Joe Corneli <@Joe_Corneli> wrote:

Hi all:

I’ve built SDL from source and installed it, because I want the most
recent version to use with Gource. ?However, now when I try to run
Gource, I get an error:

$ /usr/local/bin/gource
gource: SDL initialization failed - No available video device

I have previously installed various sdl packages with apt-get (on
Ubuntu 11.04), but I tried removing them to see if that would help.
It doesn’t seem to change anything. ?Can you give some tips about how
to get SDL initialization to work?

$ dpkg --get-selections | grep sdl
libsdl-image1.2 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? deinstall
libsdl-mixer1.2 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? deinstall
libsdl-ttf2.0-0 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? deinstall
libsdl1.2debian-pulseaudio ? ? ? ? ? ? ? ? ? ? ?install
sdl-ball ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?deinstall
sdl-ball-data ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? install


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Looks like everything went well with the configure script, although I think
I’m missing a few lines at the bottom, but you didn’t mention any errors, so
we’ll move on.
It might be best to perform a clean install of SDL, so do:

sudo make uninstall

Then wipe out SDL’s headers and library files, which I think by default go
into /usr/local/, but I’m not using linux right now, so I’m simply going off
memory. Delete all the libSDL*.so files, and the headers.

Now, go back into the source directory:

make clean

./configure && make

sudo make install

What I suspect is happening is that SDL is accidently loading an older .so
file, and this should fix it.

-AlexOn Sun, Jun 26, 2011 at 2:37 PM, Joe Corneli wrote:

Hi Alex:

Pasted here: http://pastebin.com/raw.php?i=Xb8ED2c2

Joe

On Sun, Jun 26, 2011 at 8:14 PM, Alex Barry <@Alex_Barry> wrote:

Oh, ignore that, I just re-read your original post
When you ran ./configure, what was the output?

On Sun, Jun 26, 2011 at 2:12 PM, Alex Barry <@Alex_Barry> wrote:

Looks like you don’t have your distros equivalent to libsdl-dev, but
that’s my guess.

On Sun, Jun 26, 2011 at 1:28 PM, Joe Corneli wrote:

Hi all:

I’ve built SDL from source and installed it, because I want the most
recent version to use with Gource. However, now when I try to run
Gource, I get an error:

$ /usr/local/bin/gource
gource: SDL initialization failed - No available video device

I have previously installed various sdl packages with apt-get (on
Ubuntu 11.04), but I tried removing them to see if that would help.
It doesn’t seem to change anything. Can you give some tips about how
to get SDL initialization to work?

$ dpkg --get-selections | grep sdl
libsdl-image1.2 deinstall
libsdl-mixer1.2 deinstall
libsdl-ttf2.0-0 deinstall
libsdl1.2debian-pulseaudio install
sdl-ball deinstall
sdl-ball-data install


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Ubuntu does not ship with several important development headers and libraries installed. This includes even the basic Xlib stuff, which is why there is no video driver when you build SDL. You’re going to need to install all of those yourself. The Software Manager tool should be convenient here.------------------------
EM3 Nathaniel Fries, U.S. Navy

http://natefries.net/

OK, I found things working after running:

sudo apt-get install libsdl1.2debian-allOn Mon, Jun 27, 2011 at 4:18 AM, Nathaniel J Fries wrote:

Ubuntu does not ship with several important development headers and
libraries installed. This includes even the basic Xlib stuff, which is why
there is no video driver when you build SDL. You’re going to need to install
all of those yourself. The Software Manager tool should be convenient here.


EM3 Nathaniel Fries, U.S. Navy

http://natefries.net/


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Nate,

what do you think for the most compatible video driver?