Thread: [Tuxnes-devel] systems without X
Brought to you by:
tmmm
From: Jason D. S. <jd...@us...> - 2004-05-12 23:23:49
|
Compilation on windows is currently completely thwarted because configure doesn't disable X compilation if X isn't present, and even if you disable such compilation manually (by changing X_DISPLAY_MISSING in config.h) the code doesn't pay attention to this value. Fixing this is a bit beyond me. I'm still in favor of having just one renderer, using SDL. jason |
From: Jason D. S. <jd...@us...> - 2004-05-12 23:27:03
|
Jason Dorje Short wrote: > Compilation on windows is currently completely thwarted because > configure doesn't disable X compilation if X isn't present, and even if > you disable such compilation manually (by changing X_DISPLAY_MISSING in > config.h) the code doesn't pay attention to this value. Err, here's a start. In file included from controller.c:20: globals.h:82:22: X11/Xlib.h: No such file or directory globals.h:83:23: X11/Xutil.h: No such file or directory globals.h:84:24: X11/keysym.h: No such file or directory globals.h:85:28: X11/cursorfont.h: No such file or directory In file included from controller.c:20: globals.h:86: error: parse error before '*' token globals.h:86: warning: type defaults to `int' in declaration of `display' globals.h:86: warning: data definition has no type or storage class globals.h:94: error: parse error before "gc" globals.h:94: warning: type defaults to `int' in declaration of `gc' globals.h:94: warning: type defaults to `int' in declaration of `blackgc' globals.h:94: warning: data definition has no type or storage class globals.h:95: error: parse error before "rootwindow" globals.h:95: warning: type defaults to `int' in declaration of `rootwindow' globals.h:95: warning: type defaults to `int' in declaration of `w' globals.h:95: warning: data definition has no type or storage class globals.h:96: error: parse error before '*' token globals.h:96: warning: type defaults to `int' in declaration of `image' globals.h:96: warning: data definition has no type or storage class globals.h:97: error: parse error before "layout" globals.h:97: warning: type defaults to `int' in declaration of `layout' globals.h:97: warning: data definition has no type or storage class controller.c:34:22: X11/Xlib.h: No such file or directory controller.c:35:23: X11/Xutil.h: No such file or directory controller.c:36:24: X11/keysym.h: No such file or directory controller.c:37:28: X11/cursorfont.h: No such file or directory controller.c: In function `HandleJoystickLinux': controller.c:580: warning: unused variable `nes_button' controller.c:581: warning: unused variable `axis_i' jason |
From: Mike M. <che...@ya...> - 2004-05-12 23:37:50
|
What about globals.h:98 "Pixmap" is the an SDL type? I'll move this around so it workes. --- Jason Dorje Short <jd...@us...> wrote: > Jason Dorje Short wrote: > > Compilation on windows is currently completely thwarted because > > configure doesn't disable X compilation if X isn't present, and even > if > > you disable such compilation manually (by changing X_DISPLAY_MISSING > in > > config.h) the code doesn't pay attention to this value. > > Err, here's a start. > > In file included from controller.c:20: > globals.h:82:22: X11/Xlib.h: No such file or directory > globals.h:83:23: X11/Xutil.h: No such file or directory > globals.h:84:24: X11/keysym.h: No such file or directory > globals.h:85:28: X11/cursorfont.h: No such file or directory > In file included from controller.c:20: > globals.h:86: error: parse error before '*' token > globals.h:86: warning: type defaults to `int' in declaration of > `display' > globals.h:86: warning: data definition has no type or storage class > globals.h:94: error: parse error before "gc" > globals.h:94: warning: type defaults to `int' in declaration of `gc' > globals.h:94: warning: type defaults to `int' in declaration of > `blackgc' > globals.h:94: warning: data definition has no type or storage class > globals.h:95: error: parse error before "rootwindow" > globals.h:95: warning: type defaults to `int' in declaration of > `rootwindow' > globals.h:95: warning: type defaults to `int' in declaration of `w' > globals.h:95: warning: data definition has no type or storage class > globals.h:96: error: parse error before '*' token > globals.h:96: warning: type defaults to `int' in declaration of `image' > globals.h:96: warning: data definition has no type or storage class > globals.h:97: error: parse error before "layout" > globals.h:97: warning: type defaults to `int' in declaration of `layout' > globals.h:97: warning: data definition has no type or storage class > controller.c:34:22: X11/Xlib.h: No such file or directory > controller.c:35:23: X11/Xutil.h: No such file or directory > controller.c:36:24: X11/keysym.h: No such file or directory > controller.c:37:28: X11/cursorfont.h: No such file or directory > controller.c: In function `HandleJoystickLinux': > controller.c:580: warning: unused variable `nes_button' > controller.c:581: warning: unused variable `axis_i' > > jason > > > ------------------------------------------------------- > This SF.Net email is sponsored by: SourceForge.net Broadband > Sign-up now for SourceForge Broadband and get the fastest > 6.0/768 connection for only $19.95/mo for the first 3 months! > http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click > _______________________________________________ > Tuxnes-devel mailing list > Tux...@li... > https://lists.sourceforge.net/lists/listinfo/tuxnes-devel __________________________________ Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' http://movies.yahoo.com/showtimes/movie?mid=1808405861 |
From: Jason D. S. <jd...@us...> - 2004-05-13 00:06:46
|
Mike Mestnik wrote: > What about globals.h:98 "Pixmap" is the an SDL type? > > I'll move this around so it workes. Probably SDL, yes. I'm not sure if I have SDL for win32 built or not. But if I don't this should be detected in configure. Of course configure should fail if none of the renderers are buildable. jason |
From: Mike M. <che...@ya...> - 2004-05-12 23:52:55
|
--- Jason Dorje Short <jd...@us...> wrote: > Compilation on windows is currently completely thwarted because > configure doesn't disable X compilation if X isn't present, and even if > you disable such compilation manually (by changing X_DISPLAY_MISSING in > config.h) the code doesn't pay attention to this value. > > Fixing this is a bit beyond me. I'm still in favor of having just one > renderer, using SDL. > > jason > In renderer.h:13 HAVE_X is defined, should we be using X_DISPLAY_MISSING? Also controller.c is littered with both linux and x11 code, I'l work on moving these two controller_x11.c and controller_linux.c. I don't know who to test-build as if I didn't have X11, is there a howto or trick? __________________________________ Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' http://movies.yahoo.com/showtimes/movie?mid=1808405861 |
From: Jason D. S. <jd...@us...> - 2004-05-13 00:10:19
|
Mike Mestnik wrote: > --- Jason Dorje Short <jd...@us...> wrote: > >>Compilation on windows is currently completely thwarted because >>configure doesn't disable X compilation if X isn't present, and even if >>you disable such compilation manually (by changing X_DISPLAY_MISSING in >>config.h) the code doesn't pay attention to this value. >> >>Fixing this is a bit beyond me. I'm still in favor of having just one >>renderer, using SDL. > > In renderer.h:13 HAVE_X is defined, should we be using X_DISPLAY_MISSING? > Also controller.c is littered with both linux and x11 code, I'l work on > moving these two controller_x11.c and controller_linux.c. There shouldn't be anything linux-specific, I think. Individual elements should be detected at configure time. Most of these will be available on all POSIX-like environments. Usually the man page will say. For stuff like OSS and ALSA they are linux-specific, but again should be checked for individually (use ALSA if available, otherwise use OSS, etc). HAVE_X is synonymous (well, reversed from) with X_DISPLAY_MISSING. See renderer.h. > I don't know who to test-build as if I didn't have X11, is there a howto > or trick? No idea. jason |
From: Mike M. <che...@ya...> - 2004-05-13 00:38:37
Attachments:
tuxnes-win32.diff
|
Here is the controller split I was talking about. I wanted to get your input on my Makefile.am changes b4 I commited it. __________________________________ Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' http://movies.yahoo.com/showtimes/movie?mid=1808405861 |