Problem with SDL_INIT_VIDEO

OK, so I got a new computer and I’m trying to build my game on it. It
turns out that SDL_Init fails. Removing SDL_INIT_VIDEO makes it work,
but as you can imagine I can’t have the game running without video
output :stuck_out_tongue:

Can somebody help me find out what’s up? This is Ubuntu 14.04 64-bit,
using SDL 2.0.3 (the version available from the download section of
the site). The GPU is AMD and is running OpenGL 3.1. What other
information should I attach?

Does SDL spit an error out? Have you tried building SDL from source, or
are you using pre-built binaries?On 19 Jun 2014 00:24, “Sik the hedgehog” <sik.the.hedgehog at gmail.com> wrote:

OK, so I got a new computer and I’m trying to build my game on it. It
turns out that SDL_Init fails. Removing SDL_INIT_VIDEO makes it work,
but as you can imagine I can’t have the game running without video
output :stuck_out_tongue:

Can somebody help me find out what’s up? This is Ubuntu 14.04 64-bit,
using SDL 2.0.3 (the version available from the download section of
the site). The GPU is AMD and is running OpenGL 3.1. What other
information should I attach?


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

Have you tried printing out what the error is? SDL_GetError()? Do other
games work with SDL2? Such as the test examples in trunk?On Wed, Jun 18, 2014 at 9:23 PM, Sik the hedgehog < sik.the.hedgehog at gmail.com> wrote:

OK, so I got a new computer and I’m trying to build my game on it. It
turns out that SDL_Init fails. Removing SDL_INIT_VIDEO makes it work,
but as you can imagine I can’t have the game running without video
output :stuck_out_tongue:

Can somebody help me find out what’s up? This is Ubuntu 14.04 64-bit,
using SDL 2.0.3 (the version available from the download section of
the site). The GPU is AMD and is running OpenGL 3.1. What other
information should I attach?


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

2014-06-19 1:29 GMT-03:00, Alex Barry <alex.barry at gmail.com>:

Have you tried building SDL from source, or
are you using pre-built binaries?

From source.

2014-06-19 1:31 GMT-03:00, Brandon Schaefer <brandon.schaefer at canonical.com>:

Have you tried printing out what the error is? SDL_GetError()?

I knew I was missing something!

“No available video device”

Do other
games work with SDL2? Such as the test examples in trunk?

Tried building the test programs but got an error about
SDL_test_common.h. What’s the proper way to build the test programs?

…I just remembered I need to install the OpenGL dev libraries
separately. Let’s see if that fixes it >.> (this system is still
pretty barebones) Shouldn’t SDL resort to the software renderer if it
can’t use OpenGL though?

2014-06-19 1:43 GMT-03:00, Sik the hedgehog <@Sik_the_hedgehog>:> 2014-06-19 1:29 GMT-03:00, Alex Barry <alex.barry at gmail.com>:

Have you tried building SDL from source, or
are you using pre-built binaries?

From source.

2014-06-19 1:31 GMT-03:00, Brandon Schaefer
<brandon.schaefer at canonical.com>:

Have you tried printing out what the error is? SDL_GetError()?

I knew I was missing something!

“No available video device”

Do other
games work with SDL2? Such as the test examples in trunk?

Tried building the test programs but got an error about
SDL_test_common.h. What’s the proper way to build the test programs?

Is ./configure mentioning anything about not finding some video libraries?
Ubuntu might need you to install some *-dev packages, but I haven’t used
Ubuntu desktop in a few years now.On 19 Jun 2014 00:43, “Sik the hedgehog” <sik.the.hedgehog at gmail.com> wrote:

2014-06-19 1:29 GMT-03:00, Alex Barry <@Alex_Barry>:

Have you tried building SDL from source, or
are you using pre-built binaries?

From source.

2014-06-19 1:31 GMT-03:00, Brandon Schaefer <
brandon.schaefer at canonical.com>:

Have you tried printing out what the error is? SDL_GetError()?

I knew I was missing something!

“No available video device”

Do other
games work with SDL2? Such as the test examples in trunk?

Tried building the test programs but got an error about
SDL_test_common.h. What’s the proper way to build the test programs?


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

Well, it was that :confused: I feel dumb now.

2014-06-19 1:46 GMT-03:00, Alex Barry <alex.barry at gmail.com>:

Is ./configure mentioning anything about not finding some video libraries?
Ubuntu might need you to install some *-dev packages, but I haven’t used
Ubuntu desktop in a few years now.

For the record, ./configure didn’t complain at all originally. It
did complain when later I installed the OpenGL libraries without the
X11 ones… I think something may need to be ironed out here :stuck_out_tongue:

Also now that the game boots I’m having issues with the audio,
SDL_OpenAudio fails -_-’ (SDL_GetError returns “No such audio
device”).

Take a look at: https://hg.libsdl.org/SDL/file/tip/README-linux.txt (“Build
Dependencies”)

2014-06-19 2:03 GMT-03:00 Sik the hedgehog <sik.the.hedgehog at gmail.com>:> Well, it was that :confused: I feel dumb now.

2014-06-19 1:46 GMT-03:00, Alex Barry <alex.barry at gmail.com>:

Is ./configure mentioning anything about not finding some video
libraries?
Ubuntu might need you to install some *-dev packages, but I haven’t used
Ubuntu desktop in a few years now.

For the record, ./configure didn’t complain at all originally. It
did complain when later I installed the OpenGL libraries without the
X11 ones… I think something may need to be ironed out here :stuck_out_tongue:

Also now that the game boots I’m having issues with the audio,
SDL_OpenAudio fails -_-’ (SDL_GetError returns “No such audio
device”).


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


Gabriel.