Can't using video driver

hi all,

if compile sdl for nano-x ,must the environment variable SDL_VIDEODRIVER
be set? if it does,how to then?
because when running the demos in subdirectory “test”,sdl can’t be
initialized.

And I found that in the file SDL.c,the return value of
the function ‘getenv(“SDL_VIDEODRIVER”)’ is NULL.

how to solve it then??

Regards,
Andy

hi all,

if compile sdl for nano-x ,must the environment variable SDL_VIDEODRIVER
be set? if it does,how to then?
because when running the demos in subdirectory “test”,sdl can’t be
initialized.

And I found that in the file SDL.c,the return value of
the function ‘getenv(“SDL_VIDEODRIVER”)’ is NULL.

how to solve it then??

Run the code under the debugger and find out what video driver is
being selected, and step into the Nano-X initialization function to
find out why it’s failing. I’ve never used Nano-X myself so I don’t
have any more insights.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

hi all,

if compile sdl for nano-x ,must the environment variable SDL_VIDEODRIVER
be set? if it does,how to then?
because when running the demos in subdirectory “test”,sdl can’t be
initialized.

And I found that in the file SDL.c,the return value of
the function ‘getenv(“SDL_VIDEODRIVER”)’ is NULL.

how to solve it then??

Run the code under the debugger and find out what video driver is
being selected, and step into the Nano-X initialization function to
find out why it’s failing. I’ve never used Nano-X myself so I don’t
have any more insights.

Oh, and if you can’t run the code under a debugger for some reason,
use the tried and true method of sticking printf statements in key
portions of the code and seeing what’s going on that way.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

i second that! That technique is worth a seconding…

that has saved my butt so many times…and is right now in fact (:> ----- Original Message -----

From: slouken@devolution.com (Sam Lantinga)
To:
Sent: Tuesday, January 21, 2003 9:32 PM
Subject: Re: [SDL] can’t using video driver

hi all,

if compile sdl for nano-x ,must the environment variable
SDL_VIDEODRIVER

be set? if it does,how to then?
because when running the demos in subdirectory “test”,sdl can’t be
initialized.

And I found that in the file SDL.c,the return value of
the function ‘getenv(“SDL_VIDEODRIVER”)’ is NULL.

how to solve it then??

Run the code under the debugger and find out what video driver is
being selected, and step into the Nano-X initialization function to
find out why it’s failing. I’ve never used Nano-X myself so I don’t
have any more insights.

Oh, and if you can’t run the code under a debugger for some reason,
use the tried and true method of sticking printf statements in key
portions of the code and seeing what’s going on that way.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

thanks a lot
I try it

I have opened the nanox debugger,
but there are some errors as follows:

./config.guess: ./dummy-32727: cannot execute binary file
testver.tmp: In function NX_VideoQuit': .../SDL-1.2.5/src/video/nanox/SDL_nxvideo.c:265: undefined reference toGrCloseClientFramebuffer’
testver.tmp: In function NX_CreateWindow': .../SDL-1.2.5/src/video/nanox/SDL_nxvideo.c:352: undefined reference toGrOpenClientFramebuffer’
testver.tmp: In function NX_PumpEvents': .../SDL-1.2.5/src/video/nanox/SDL_nxevents.c:360: undefined reference toGrGetWindowFBInfo’
testver.tmp: In function NX_ResizeImage': .../SDL-1.2.5/src/video/nanox/SDL_nximage.c:161: undefined reference toGrGetWindowFBInfo’
…/SDL-1.2.5/src/video/nanox/SDL_nximage.c:163: undefined reference to
GrGetWindowFBInfo' testver.tmp: In functionNX_RefreshDisplay’:
…/SDL-1.2.5/src/video/nanox/SDL_nximage.c:185: undefined reference to
`GrGetWindowFBInfo’
make: *** [testver] Error 1

But where are the GrCloseClientFramebuffer or other functions defined? In
the microwin??

Regards,
Andy

right,

I disable the nanox_direct_fb,then those errors which I post here a moment
ago
disappeared.

But I don’t know why were the errors generated.

Regards,
Andy