Discussion:
Building SDL for fbcon requires Xlib.h?
(too old to reply)
Jason Bodnar
2003-04-30 20:41:31 UTC
Permalink
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 of
`SDL_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 of `event'
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 of `window'
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 of `fswindow'
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 of `wmwindow'
riva_mmio.h:510: warning: data definition has no type or storage class
riva_mmio.h:511: warning: type defaults to `int' in declaration of `x11'
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 of `info'
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
***@shakabuku.org
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"
Sam Lantinga
2003-05-01 16:05:52 UTC
Permalink
Post by Jason Bodnar
I'm trying to build SDL with only video support for the framebuffer. When I
riva_mmio.h:450: parse error before string constant
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? :)

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment
Jason Bodnar
2003-05-01 17:01:49 UTC
Permalink
Post by Sam Lantinga
Post by Jason Bodnar
I'm trying to build SDL with only video support for the framebuffer. When I
riva_mmio.h:450: parse error before string constant
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? :)
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 ;-)

Thanks,

Jason

--
Jason Bodnar
***@shakabuku.org
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"
Blake D
2003-05-02 19:49:22 UTC
Permalink
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
Jim
2003-05-02 20:18:40 UTC
Permalink
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...
Post by Blake D
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
http://www.libsdl.org/mailman/listinfo/sdl
Johannes Schmidt
2003-05-03 09:32:43 UTC
Permalink
Post by Blake D
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 :)
Jimmy
2003-05-06 17:36:35 UTC
Permalink
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.php
Post by Blake D
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
http://www.libsdl.org/mailman/listinfo/sdl
--
Jimmy <***@jimmysworld.org>
Jimmy's World.org
Loading...