The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
(no subject)
Canley ProSoft
Guest

---------------------------------
Yahoo! DSL Something to write home about. Just $16.99/mo. or less
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060103/8a7e0d30/attachment.html
(no subject)
IraqiGeek
Guest

Hi all,

I have compiled and installed SDL 1.2.9 without any issues on my LFS 6.1
system (no X) running vanilla 2.6.11.12 and 2.6.15. Both have support for
frame buffer devices enabled with VESA and S3 drivers checked, and the
kernel is monolithic, so there is no chance that I have forgotten to copy
any modules.

I just started reading the Programming Linux Games book, and got to the
first (SDL hello world) program. The program compiles fine, without any
errors or warnings, but when I run it, SDL_GetError returns that I have no
available video device. Is there anything else that I need to install? Does
libSDL require having X installed on the system to operate? or is it just a
something that I didnt configure?

PS: everything is running under vmware workstation 5.0.

Regards,
IraqiGeek
www.iraqigeek.com
(no subject)
Sam Lantinga
Guest

Quote:
I have compiled and installed SDL 1.2.9 without any issues on my LFS 6.1
system (no X) running vanilla 2.6.11.12 and 2.6.15. Both have support for
frame buffer devices enabled with VESA and S3 drivers checked, and the
kernel is monolithic, so there is no chance that I have forgotten to copy
any modules.

What is the output of fbset -i

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment
(no subject)
IraqiGeek
Guest

On Friday, January 06, 2006 5:11 PM GMT,
Sam Lantinga <slouken at twomix.devolution.com> wrote:

Quote:
Quote:
I have compiled and installed SDL 1.2.9 without any issues on my LFS
6.1 system (no X) running vanilla 2.6.11.12 and 2.6.15. Both have
support for frame buffer devices enabled with VESA and S3 drivers
checked, and the kernel is monolithic, so there is no chance that I
have forgotten to copy any modules.

What is the output of fbset -i

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

No fbset available in the system. I will install it, and get back with the
output. Any other packages that I need to install? Again, I am using Linux
Quote:
From Scratch (LFS), no X, nothing extra that I didnt compile and install by
hand.

Regards,
IraqiGeek
www.iraqigeek.com
(no subject)
IraqiGeek
Guest

On Friday, January 06, 2006 5:11 PM GMT,
Sam Lantinga <slouken at twomix.devolution.com> wrote:

Quote:
Quote:
I have compiled and installed SDL 1.2.9 without any issues on my LFS
6.1 system (no X) running vanilla 2.6.11.12 and 2.6.15. Both have
support for frame buffer devices enabled with VESA and S3 drivers
checked, and the kernel is monolithic, so there is no chance that I
have forgotten to copy any modules.

What is the output of fbset -i

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

fbset -i returns the following:

open /dev/fb0: No such device

Regards,
IraqiGeek
www.iraqigeek.com
(no subject)
Ryan C. Gordon
Guest

Quote:
open /dev/fb0: No such device

You don't have the framebuffer device node. Run this at root:

mknod 29 0 c /dev/fb0


This assumes you aren't using something like devfs or udev and have to
make device nodes yourself. Otherwise, it's possible that the kernel
drivers didn't find your hardware, etc.

Then if it might work, otherwise, let us know if fbset -i gets any further.

--ryan.
(no subject)
IraqiGeek
Guest

On Friday, January 06, 2006 8:17 PM GMT,
Ryan C. Gordon <icculus at icculus.org> wrote:

Quote:
Quote:
open /dev/fb0: No such device

You don't have the framebuffer device node. Run this at root:

mknod 29 0 c /dev/fb0


This assumes you aren't using something like devfs or udev and have to
make device nodes yourself. Otherwise, it's possible that the kernel
drivers didn't find your hardware, etc.

Then if it might work, otherwise, let us know if fbset -i gets any
further.

The /dev/fbx are there alright, but I think that they were made during the
SDL install, since I saw a few mknods scroll down during the installation
process. LFS uses udev to create the /dev nodes. The LFS system is running
on VMware, which emulates an S3 trio (I think its of the 76x series), and I
have otehr vmware machines running RH, DSL, and knoppix without any issues.
Once I even installed RH 7.2, and it detected all the hardware without any
issues (Ironically, vmware emulates an Intel 440BX chipset, running on an
AMD Athlon XP processor).

Regards,
IraqiGeek
www.iraqigeek.com
(no subject)
Simon Roby
Guest

On 1/6/06, IraqiGeek <geek at iraqigeek.com> wrote:
Quote:
Hi all,

I have compiled and installed SDL 1.2.9 without any issues on my LFS 6.1
system (no X) running vanilla 2.6.11.12 and 2.6.15. Both have support for
frame buffer devices enabled with VESA and S3 drivers checked, and the
kernel is monolithic, so there is no chance that I have forgotten to copy
any modules.

I just started reading the Programming Linux Games book, and got to the
first (SDL hello world) program. The program compiles fine, without any
errors or warnings, but when I run it, SDL_GetError returns that I have no
available video device. Is there anything else that I need to install? Does
libSDL require having X installed on the system to operate? or is it just a
something that I didnt configure?

PS: everything is running under vmware workstation 5.0.

Is the graphical framebuffer running? Since you're running under
VMWare I'm guessing text mode looks identical. For example, to use the
vesa framebuffer on my system I put the following in my kernel boot
parameters in GRUB:

video=vesafb:ypan,1024x768-16

--
- SR
(no subject)
Ryan C. Gordon
Guest

Quote:
Quote:
Quote:
open /dev/fb0: No such device

(Whoops, "No such device" means there's no such device...I just gave you
instructions for "No such file or directory" ... looks like your kernel
didn't find the hardware, so SDL can't use it. Run "dmesg" and look for
errors, I guess.)

--ryan.
(no subject)
IraqiGeek
Guest

On Friday, January 06, 2006 10:01 PM GMT,
Simon Roby <simon.roby at gmail.com> wrote:

Quote:
Quote:
On 1/6/06, IraqiGeek <geek at iraqigeek.com> wrote:
Quote:
Hi all,

I have compiled and installed SDL 1.2.9 without any issues on my
LFS 6.1 system (no X) running vanilla 2.6.11.12 and 2.6.15. Both
have support for frame buffer devices enabled with VESA and S3
drivers checked, and the kernel is monolithic, so there is no
chance that I have forgotten to copy any modules.

I just started reading the Programming Linux Games book, and got to
the first (SDL hello world) program. The program compiles fine,
without any errors or warnings, but when I run it, SDL_GetError
returns that I have no available video device. Is there anything
else that I need to install? Does libSDL require having X installed
on the system to operate? or is it just a something that I didnt
configure?

PS: everything is running under vmware workstation 5.0.

Is the graphical framebuffer running? Since you're running under
VMWare I'm guessing text mode looks identical. For example, to use
the vesa framebuffer on my system I put the following in my kernel
boot parameters in GRUB:

video=vesafb:ypan,1024x768-16

I don't know which distro you are using, but according to the (vanilla)
kernel documentation, the kernel parameters should look something like this:

video=vesafb:"comma separated options" vga="vga mode"

where vga mode is a 3 hex digit number, for example:

0x312 for 640x480 at 24bit
0x311 for 640x480 at 16bit
0x315 for 800x600 at 24bit
0x314 for 800x600 at 16bit

Now, I can get the resolution to change to 800x600 or 1024x768, but the
problem is that the screen would only show rubbish, or nothing at all
(whether I choose 15, 16 or 24bit color). If I choose 640x480, the kernel
objects on the mode.

I have frame buffer support, vesa vga graphics support, and the console
display driver support options all compiled in the kernel. Are there any
other options/features in the kernel that need to be included???

Regards,
IraqiGeek
www.iraqigeek.com
(no subject)
Mikael Eriksson
Guest

On Sun, Jan 08, 2006 at 01:01:48AM -0000, IraqiGeek wrote:
Quote:
I don't know which distro you are using, but according to the (vanilla)
kernel documentation, the kernel parameters should look something like this:

I guess it's the vesafb-tng patch. Available at:
http://dev.gentoo.org/~spock/projects/vesafb-tng/
(no subject)
Sam Lantinga
Guest

Quote:
Is it possible to linky agains libSDL when using uclibc? I have a chroot
environment with uclibc (gentoo based) and I have compiled libsdl with
standard USE flags ( I also tested -X, because I'd like to run just agains
fbcon, but no luck)

It looks like you're linking against a version of SDL built with aalib.
I'm pretty sure you want to rebuild SDL for your target platform. :)

See ya,
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment
(no subject)
Sam Lantinga
Guest

Quote:
Is it legal to blit to and from the same surface, as long as the source and
destination areas don't overlap? SDL's behavior seems inconsistent.

Quote:
I wrote a simple program to fill areas of a surface with a checkerboard
pattern of 2 colors: http://burningsmell.org/code-snippets/checker.c
It does this:
1) Sets clip rect to allowed area
2) Draws a pattern of 4 squares in the upper left with SDL_FillRect's
3) While it's narrower than the area, blit it right of and double width
4) While it's shorter than the area, blit it below itself and double height

Quote:
Usually this works great, but in circumstances that seem to be painfully
difficult to reduce to a simple example, it only draws the upper left
rectangle -- nothing else appears. I have confirmed that it actually is
doing all the blitting it's supposed to when this happens -- the blits just
don't "take".

Hmm, as long as the rectangles don't overlap, I imagine that it should be fine.
Can you put together a test case?

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment
(no subject)
Sam Lantinga
Guest

Quote:
Hi,
i use a SDL application called "scummvm" on my WinXP multi-monitor system
(primary display: 17'' TFT, secondary display: 15'' TFT).

Quote:
My problem is that when i use the applications fullscreen mode it uses the
primary display as default, wich is to large for it.
I would like to use the secondary display (the 15'' TFT) for fullscreen mode.
I allready asked the scummvm support about that problem but they think it is a
SDL related problem.
So does anyone know how to choose wich display is used for SDL under WinXP?

There currently isn't any way, though I'm open to suggestions for 1.3 API
changes.

Bob, do we address this at all in the multi-window code you're working on?

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment
(no subject)
Bu Bacoo
Guest

Yes, I had libsdl built with aalib, both built for target platform (i686
ulibc). I'll try without aalib.

On 1/21/06, Sam Lantinga <slouken at twomix.devolution.com> wrote:
Quote:

Quote:
Is it possible to linky agains libSDL when using uclibc? I have a chroot
environment with uclibc (gentoo based) and I have compiled libsdl with
standard USE flags ( I also tested -X, because I'd like to run just
agains
Quote:
fbcon, but no luck)

It looks like you're linking against a version of SDL built with aalib.
I'm pretty sure you want to rebuild SDL for your target platform. :)

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060121/d6398df7/attachment.htm
(no subject)
Bu Bacoo
Guest

Bingo. no aalib is the answer
Thanks

On 1/21/06, Bu Bacoo <bubacoo at gmail.com> wrote:
Quote:

Yes, I had libsdl built with aalib, both built for target platform (i686
ulibc). I'll try without aalib.

On 1/21/06, Sam Lantinga < slouken at twomix.devolution.com> wrote:
Quote:

Quote:
Is it possible to linky agains libSDL when using uclibc? I have a
chroot
Quote:
environment with uclibc (gentoo based) and I have compiled libsdl with
standard USE flags ( I also tested -X, because I'd like to run just
agains
Quote:
fbcon, but no luck)

It looks like you're linking against a version of SDL built with aalib.
I'm pretty sure you want to rebuild SDL for your target platform. :)

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

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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060121/6868fd19/attachment.html
(no subject)
slouken at devolution.com
Guest

Whoops, pardon the mails with no subject - I just revamped my mail program
to efficiently handle the 19000+ SDL e-mails I have, and added a teensy little
bug. :)

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment
(no subject)
Sam Lantinga
Guest

Quote:
On Sat, 21 Jan 2006 18:01:56 -0200, <slouken at devolution.com> wrote:

Quote:
Quote:
Whoops, pardon the mails with no subject - I just revamped my mail
program
to efficiently handle the 19000+ SDL e-mails I have, and added a teensy
little
bug. Smile

Quote:
Now your name is broken.

Yeah, but now it's fast! :)

(thanks!)
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment
(no subject)
Torsten Giebl
Guest

Hello !


Quote:
Yeah, but now it's fast! Smile


Will it be online ?



CU
(no subject)
Canley ProSoft
Guest

---------------------------------

What are the most popular cars? Find out at Yahoo! Autos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060124/86504f74/attachment.html