Doubts

hi

i am new to SDL programming, am working on linux, when am trying to
initialize the video device using SDL_Init(SDL_VIDEO_INIT), am getting the
error message like
"Could not initialize SDL - No available video device"

to over come this problem do i need to modify or enable any thing

please help me out on this

thanks in advance
pavan kumar .k

What version of SDL are you using? And did you build the library from source from the command line?

Are you doing this from X or from the console, and if the latter, do you
have a framebuffer device available (/dev/fb0 or possibly /dev/fb/0)?

AndyOn Tue, Mar 29, 2011 at 11:39 PM, pavan kumar <kumar.pavan463 at gmail.com>wrote:

hi

i am new to SDL programming, am working on linux, when am trying to
initialize the video device using SDL_Init(SDL_VIDEO_INIT), am getting the
error message like
"Could not initialize SDL - No available video device"

to over come this problem do i need to modify or enable any thing

please help me out on this

thanks in advance
pavan kumar .k


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

Andy Kazmaier
Hammerhead Vision
208-794-4432

I remember a similar problem a while ago. The problem was the display
variable was not set. Something like:

export DISPLAY=:0.0

needed to be run prior to using sdl.

try

echo $DISPLAY

and see what happens. then export the display variable as above.

Hope that helps,

JohnOn Thu, Mar 31, 2011 at 2:55 PM, Andy Kazmaier wrote:

Are you doing this from X or from the console, and if the latter, do you
have a framebuffer device available (/dev/fb0 or possibly /dev/fb/0)?

Andy

On Tue, Mar 29, 2011 at 11:39 PM, pavan kumar <kumar.pavan463 at gmail.com> wrote:

hi

i am new to SDL programming, am working on linux, when am trying to
initialize the video device using SDL_Init(SDL_VIDEO_INIT), am getting the
error message like
"Could not initialize SDL - No available video device"

to over come this problem do i need to modify or enable any thing

please help me out on this

thanks in advance
pavan kumar .k


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

Andy Kazmaier
Hammerhead Vision
208-794-4432


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

Make sure you’ve got all your x11 headers and libraries installed.

These are not installed by default on newer versions of Ubuntu.------------------------
EM3 Nathaniel Fries, U.S. Navy

http://natefries.net/