Trying to build SDL 1.3 (straight configure/make):
SDL_svgaevents.c -fPIC -DPIC -o build/.libs/SDL_svgaevents.o
In file included from ./src/video/svga/SDL_svgaevents.c:40:
./src/video/svga/SDL_svgavideo.h:31:1: warning: “_THIS” redefined
In file included from ./src/video/svga/…/…/events/SDL_sysevents.h:24,
from ./src/video/svga/SDL_svgaevents.c:38:
./src/video/svga/…/…/events/…/video/SDL_sysvideo.h:173:1: warning: this is the location of the previous definition
./src/video/svga/SDL_svgaevents.c: In function ‘SVGA_mousecallback’:
./src/video/svga/SDL_svgaevents.c:161: warning: passing argument 1 of ‘SDL_GetMouseState’ makes integer from pointer without a cast
./src/video/svga/SDL_svgaevents.c:161: error: too few arguments to function ‘SDL_GetMouseState’
./src/video/svga/SDL_svgaevents.c:165: warning: passing argument 1 of ‘SDL_GetMouseState’ makes integer from pointer without a cast
./src/video/svga/SDL_svgaevents.c:165: error: too few arguments to function ‘SDL_GetMouseState’
./src/video/svga/SDL_svgaevents.c:170: warning: passing argument 1 of ‘SDL_GetMouseState’ makes integer from pointer without a cast
./src/video/svga/SDL_svgaevents.c:170: error: too few arguments to function ‘SDL_GetMouseState’
./src/video/svga/SDL_svgaevents.c:174: warning: passing argument 1 of ‘SDL_GetMouseState’ makes integer from pointer without a cast
./src/video/svga/SDL_svgaevents.c:174: error: too few arguments to function ‘SDL_GetMouseState’
SDL_GetMouseState in some places has 2, some places 3 arguments – and its
defined with 3 args:
: leisner at thinkpad 11:26:14;gid SDL_GetMouseState
include/SDL_mouse.h:119: * \fn Uint8 SDL_GetMouseState(int *x, int *y)
include/SDL_mouse.h:128:extern DECLSPEC Uint8 SDLCALL SDL_GetMouseState(int index, int *x, int *y);
src/SDL_compat.c:259: SDL_GetMouseState(selected, &x, &y);
test/testalpha.c:276: SDL_GetMouseState(0, &x, &y);
test/testgl.c:273: SDL_GetMouseState(0, &x, &y);
src/events/SDL_mouse.c:272:SDL_GetMouseState(int index, int *x, int *y)
src/video/fbcon/SDL_fbevents.c:752: button_state = SDL_GetMouseState(NULL, NULL);
src/video/ps2gs/SDL_gsevents.c:617: button_state = SDL_GetMouseState(NULL, NULL);
src/video/ps2gs/SDL_gsmouse.c:143: SDL_GetMouseState(&x, &y);
src/video/svga/SDL_svgaevents.c:161: if (!(SDL_GetMouseState(NULL, NULL) & SDL_BUTTON(1))) {
src/video/svga/SDL_svgaevents.c:165: if ((SDL_GetMouseState(NULL, NULL) & SDL_BUTTON(1))) {
src/video/svga/SDL_svgaevents.c:170: if (!(SDL_GetMouseState(NULL, NULL) & SDL_BUTTON(2))) {
src/video/svga/SDL_svgaevents.c:174: if ((SDL_GetMouseState(NULL, NULL) & SDL_BUTTON(2))) {
src/video/svga/SDL_svgaevents.c:179: if (!(SDL_GetMouseState(NULL, NULL) & SDL_BUTTON(3))) {
src/video/svga/SDL_svgaevents.c:183: if ((SDL_GetMouseState(NULL, NULL) & SDL_BUTTON(3))) {
src/video/vgl/SDL_vglevents.c:122: button_state = SDL_GetMouseState(NULL, NULL);
I found it builds on Ubuntu 8.04…
I’m going to look into why its different…
“Marty Leisner” <@Marty_Leisner> writes on Wed, 12 Nov 2008 03:29:12 G
MT> Trying to build SDL 1.3 (straight configure/make):
> SDL_svgaevents.c -fPIC -DPIC -o build/.libs/SDL_svgaevents.o
> In file included from ./src/video/svga/SDL_svgaevents.c:40:
> ./src/video/svga/SDL_svgavideo.h:31:1: warning: “_THIS” redefined
> In file included from ./src/video/svga/…/…/events/SDL_sysevents.h:24,
> from ./src/video/svga/SDL_svgaevents.c:38:
> ./src/video/svga/…/…/events/…/video/SDL_sysvideo.h:173:1: warning: this is the location of the previous defin
>ition
> ./src/video/svga/SDL_svgaevents.c: In function ‘SVGA_mousecallback’:
> ./src/video/svga/SDL_svgaevents.c:161: warning: passing argument 1 of ‘SDL_GetMouseState’ makes integer from poi
>nter without a cast
> ./src/video/svga/SDL_svgaevents.c:161: error: too few arguments to function ‘SDL_GetMouseState’
> ./src/video/svga/SDL_svgaevents.c:165: warning: passing argument 1 of ‘SDL_GetMouseState’ makes integer from poi
>nter without a cast
> ./src/video/svga/SDL_svgaevents.c:165: error: too few arguments to function ‘SDL_GetMouseState’
> ./src/video/svga/SDL_svgaevents.c:170: warning: passing argument 1 of ‘SDL_GetMouseState’ makes integer from poi
>nter without a cast
> ./src/video/svga/SDL_svgaevents.c:170: error: too few arguments to function ‘SDL_GetMouseState’
> ./src/video/svga/SDL_svgaevents.c:174: warning: passing argument 1 of ‘SDL_GetMouseState’ makes integer from poi
>nter without a cast
> ./src/video/svga/SDL_svgaevents.c:174: error: too few arguments to function ‘SDL_GetMouseState’
>
> SDL_GetMouseState in some places has 2, some places 3 arguments – and its
> defined with 3 args:
> : leisner at thinkpad 11:26:14;gid SDL_GetMouseState
> include/SDL_mouse.h:119: * \fn Uint8 SDL_GetMouseState(int *x, int *y)
> include/SDL_mouse.h:128:extern DECLSPEC Uint8 SDLCALL SDL_GetMouseState(int index, int *x, int *y);
> src/SDL_compat.c:259: SDL_GetMouseState(selected, &x, &y);
> test/testalpha.c:276: SDL_GetMouseState(0, &x, &y);
> test/testgl.c:273: SDL_GetMouseState(0, &x, &y);
> src/events/SDL_mouse.c:272:SDL_GetMouseState(int index, int *x, int *y)
> src/video/fbcon/SDL_fbevents.c:752: button_state = SDL_GetMouseState(NULL, NULL);
> src/video/ps2gs/SDL_gsevents.c:617: button_state = SDL_GetMouseState(NULL, NULL);
> src/video/ps2gs/SDL_gsmouse.c:143: SDL_GetMouseState(&x, &y);
> src/video/svga/SDL_svgaevents.c:161: if (!(SDL_GetMouseState(NULL, NULL) & SDL_BUTTON(1))) {
> src/video/svga/SDL_svgaevents.c:165: if ((SDL_GetMouseState(NULL, NULL) & SDL_BUTTON(1))) {
> src/video/svga/SDL_svgaevents.c:170: if (!(SDL_GetMouseState(NULL, NULL) & SDL_BUTTON(2))) {
> src/video/svga/SDL_svgaevents.c:174: if ((SDL_GetMouseState(NULL, NULL) & SDL_BUTTON(2))) {
> src/video/svga/SDL_svgaevents.c:179: if (!(SDL_GetMouseState(NULL, NULL) & SDL_BUTTON(3))) {
> src/video/svga/SDL_svgaevents.c:183: if ((SDL_GetMouseState(NULL, NULL) & SDL_BUTTON(3))) {
> src/video/vgl/SDL_vglevents.c:122: button_state = SDL_GetMouseState(NULL, NULL);
>
>
>
> The SVN copy seems to have the same problems…
>
> It seems apparently wrong, how does it build?
>
> marty
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Sam Lantinga writes on Mon, 17 Nov 2008 10:52:42 PST
> > > I found it builds on Ubuntu 8.04…
> > > I’m going to look into why its different…
>
> > The SVGA driver is not yet implemented. Ubuntu doesn’t ship with svgalib
> > development libraries by default.
>
> You can configure with --disable-video-svga to ignore SVGA support.
>
> See ya!
> -Sam Lantinga, Lead Software Engineer, Blizzard Entertainment
Hi Sam,
There’s something I’m doing in my “working system” (I’m using gcc 4.3.1, lots
of other “non-stock” versions by default on my ubuntu 7.10 systems) in
non-system directories…
For some reason, when I have a simple PATH (the shipped software),
configure/builds work fine…for grunts I’m going to --disable-video-svga –
but not sure what I’m tickling to make it cry…