Building SDL for fbcon requires Xlib.h?

I’m trying to build SDL with only video support for the framebuffer. When I
run make I get the following errors:

In file included from SDL_fbriva.c:32:
riva_mmio.h:450: parse error before string constant
In file included from SDL_fbriva.c:32:
riva_mmio.h:472:22: X11/Xlib.h: No such file or directory
riva_mmio.h:473:23: X11/Xatom.h: No such file or directory
In file included from SDL_fbriva.c:32:
riva_mmio.h:478: warning: type defaults to int' in declaration ofSDL_SYSWM_TYPE’
riva_mmio.h:478: warning: data definition has no type or storage class
riva_mmio.h:483: parse error before "SDL_SYSWM_TYPE"
riva_mmio.h:483: warning: no semicolon at end of struct or union
riva_mmio.h:485: parse error before "XEvent"
riva_mmio.h:485: warning: no semicolon at end of struct or union
riva_mmio.h:486: warning: type defaults to int' in declaration ofevent’
riva_mmio.h:486: warning: data definition has no type or storage class
riva_mmio.h:487: parse error before ‘}’ token
riva_mmio.h:495: parse error before "SDL_SYSWM_TYPE"
riva_mmio.h:495: warning: no semicolon at end of struct or union
riva_mmio.h:498: parse error before "Display"
riva_mmio.h:498: warning: no semicolon at end of struct or union
riva_mmio.h:498: warning: no semicolon at end of struct or union
riva_mmio.h:499: warning: type defaults to int' in declaration ofwindow’
riva_mmio.h:499: warning: data definition has no type or storage class
riva_mmio.h:509: parse error before "fswindow"
riva_mmio.h:509: warning: type defaults to int' in declaration offswindow’
riva_mmio.h:509: warning: data definition has no type or storage class
riva_mmio.h:510: parse error before "wmwindow"
riva_mmio.h:510: warning: type defaults to int' in declaration ofwmwindow’
riva_mmio.h:510: warning: data definition has no type or storage class
riva_mmio.h:511: warning: type defaults to int' in declaration ofx11’
riva_mmio.h:511: warning: data definition has no type or storage class
riva_mmio.h:512: parse error before ‘}’ token
riva_mmio.h:512: warning: type defaults to int' in declaration ofinfo’
riva_mmio.h:512: warning: data definition has no type or storage class
riva_mmio.h:513: parse error before ‘}’ token
riva_mmio.h:513: warning: useless keyword or type name in empty declaration
riva_mmio.h:513: warning: empty declaration
riva_mmio.h:513: confused by earlier errors, bailing out
make[3]: *** [SDL_fbriva.lo] Error 1
make[3]: Leaving directory /mnt/SDL-1.2.5/src/video/fbcon' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory/mnt/SDL-1.2.5/src/video’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/SDL-1.2.5/src’
make: *** [all-recursive] Error 1

Why does riva_mmio.h need X11/Xlib.h? I don’t need riva support, just vesa fb
so if there’s a way to turn something off I’d be up for that.–
Jason Bodnar
@Jason_Bodnar
http://www.shakabuku.org

“You want free speech? Let’s see you acknowledge a man whose words make
your blood boil who is standing center stage advocating at the top of
his lungs that which you would spend a lifetime opposing at the top of
yours.” – President Andrew Shephard, “The American President”

I’m trying to build SDL with only video support for the framebuffer. When I
run make I get the following errors:

In file included from SDL_fbriva.c:32:
riva_mmio.h:450: parse error before string constant
In file included from SDL_fbriva.c:32:
riva_mmio.h:472:22: X11/Xlib.h: No such file or directory
riva_mmio.h:473:23: X11/Xatom.h: No such file or directory

Hmm, that’s interesting. The version of riva_mmio.h included in the fbcon
directory has only 449 lines. I’m guessing you have one somewhere else on
your system? :slight_smile:

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

I don’t think so. I think the problem lies somewhere other than SDL though.

I was doing this build on a uml virtual machine with the SDL src in a hostfs
mounted directory. I ran into all sorts of problems with with "stray \329"
erros from gcc (with the number varying constantly) and other errors. I think
something’s going on with hostfs because I was able to eventually cleanly
build for SDL for fbcon only by shutting down the uml virtual machine,
rebooting it, running make, and repeat.

After every iteration the build would get a little further before new errors
popped up, but eventually finished without an error. (I haven’t tested the
resulting libs yet.)

So, it seems this is a UML/hostfs problem so I won’t bother the list anymore :wink:

Thanks,

JasonOn Thu, 01 May 2003 09:05:52 -0700, Sam Lantinga wrote

I’m trying to build SDL with only video support for the framebuffer. When I
run make I get the following errors:

In file included from SDL_fbriva.c:32:
riva_mmio.h:450: parse error before string constant
In file included from SDL_fbriva.c:32:
riva_mmio.h:472:22: X11/Xlib.h: No such file or directory
riva_mmio.h:473:23: X11/Xatom.h: No such file or directory

Hmm, that’s interesting. The version of riva_mmio.h included in the
fbcon directory has only 449 lines. I’m guessing you have one
somewhere else on your system? :slight_smile:


Jason Bodnar
@Jason_Bodnar
http://www.shakabuku.org

“You want free speech? Let’s see you acknowledge a man whose words make
your blood boil who is standing center stage advocating at the top of
his lungs that which you would spend a lifetime opposing at the top of
yours.” – President Andrew Shephard, “The American President”

Hello, is there a way that I can detect when the mouse is no longer inside
the sdl window in window mode, so that I can stop blitting my custom cursor?
It is wierd to have one mouse “stay behind” inside my sdl window when the
cursor travels outside the window.

Thank you
Blake Delaney

CaptureMouse/ReleaseMouse Under windows… I dunno if SDL has a flavor of
capture mouse for other drivers…

There’s also NC_MOUSE messages which occur when a mouse leaves/enters your
window… but again I dunno if they’re available for SDL…

Hello, is there a way that I can detect when the mouse is no longer inside
the sdl window in window mode, so that I can stop blitting my custom
cursor?> It is wierd to have one mouse “stay behind” inside my sdl window when the
cursor travels outside the window.

Thank you
Blake Delaney


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

Hello, is there a way that I can detect when the mouse is no longer
inside the sdl window in window mode, so that I can stop blitting my
custom cursor?

It is wierd to have one mouse “stay behind” inside my sdl window when the
cursor travels outside the window.

Thank you
Blake Delaney

http://sdldoc.csn.ul.ie/sdlactiveevent.php

SDL_APPMOUSEFOCUS

Johannes

p.s.: sorry, I’ve been too fast and deleted the original message already :slight_smile:

You’ll get an SDL_ActiveEvent when the mouse or keyboard gains/loses
focus on your app.

Check out.

http://sdldoc.csn.ul.ie/sdlactiveevent.phpOn Fri, 2003-05-02 at 15:49, Blake D wrote:

Hello, is there a way that I can detect when the mouse is no longer inside
the sdl window in window mode, so that I can stop blitting my custom cursor?
It is wierd to have one mouse “stay behind” inside my sdl window when the
cursor travels outside the window.

Thank you
Blake Delaney


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


Jimmy <@Jimmy>
Jimmy’s World.org
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20030506/a345c254/attachment.pgp