How to run my program with fbdev / svgalib

Hi!
THis might be a silly question but i am new in programing with the
SDL-Libary. How do i get my program running with the fbdev or the svgalib ?

Thanx for the help!–
Sent through GMX FreeMail - http://www.gmx.net

gamsta at gmx.net wrote:

Hi!
THis might be a silly question but i am new in programing with the
SDL-Libary. How do i get my program running with the fbdev or the svgalib ?

Thanx for the help!


Sent through GMX FreeMail - http://www.gmx.net

Oh man… I think you’re can’t add svgalib support in your application
on account svgalib driver is not complete (why ?). when I look down
through SDL/svga code I found Sam does not know enough to complete
driver (page flippin an so on). But for usin fbcon you must compile yer
kernel with fbcon support an ofcourse SDL with fbcon support enabled.
After this you required to ‘export SDL_VIDEODRIVER=fbcon’ (or somethin)
an try to run yer application. (as for SDL-1.0.8)–
With best regards Razor.X.Jackie
"The choise is yours… walk now and live or stay and die"

Oh man… I think you’re can’t add svgalib support in your application
on account svgalib driver is not complete (why ?). when I look down
through SDL/svga code I found Sam does not know enough to complete
driver (page flippin an so on).

Actually it would be really easy for somebody to do… :slight_smile:

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Hi!
THis might be a silly question but i am new in programing with the
SDL-Libary. How do i get my program running with the fbdev or the svgalib ?

Get the SDL source, unpack it and run:
./configure --enable-video-svga --prefix=/usr; make

Then as root do “make install”

Now you should be able to run your program on the console and have it
use the appropriate driver. If you need to force a perticular driver,
you can set an environment variable, as per the FAQ:
http://www.devolution.com/~slouken/SDL/faq/FAQ-General.html#GENERAL_VIDEODRIVER

Thanx for the help!

You’re welcome!

See ya,
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec