Re: [Flightgear-devel] FlightGear without Joystick
Martin Spott wrote: Hello, at least since 1.6.0 release (or earlier) PLIB appears not to build joystick support on Solaris (not on the two machines I use to compile miscallaneous stuff on). But FlightGear does not build with a PLIB without joystick support: Do you tend to wait until PLIB has joystick support on Solaris or might it be of interest to let 'configure' test for joystick support and set the dependencies in FlightGear accordingly ? This should be fixed in the CVS version of plib. I've added a jsNone.cxx file with empty functions for IRIX, Solaris and HP-UX. Erik ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] FlightGear without Joystick
This should be fixed in the CVS version of plib. I've added a jsNone.cxx file with empty functions for IRIX, Solaris and HP-UX. I tried yesterday without success: /usr/local/src/plib/src/js ~ g++ [...] -c -o js.o js.cxx In file included from js.cxx:23: js.h:40:32: machine/joystick.h: No such file or directory In file included from js.cxx:23: js.h:131: 'joystick' is used as a type, but is not defined as a type. make[2]: *** [js.o] Error 1 and today PLIB CVS did not change, Martin. -- Unix _IS_ user friendly - it's just selective about who its friends are ! -- ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] FlightGear without Joystick
Martin Spott wrote: This should be fixed in the CVS version of plib. I've added a jsNone.cxx file with empty functions for IRIX, Solaris and HP-UX. I tried yesterday without success: /usr/local/src/plib/src/js ~ g++ [...] -c -o js.o js.cxx In file included from js.cxx:23: js.h:40:32: machine/joystick.h: No such file or directory In file included from js.cxx:23: js.h:131: 'joystick' is used as a type, but is not defined as a type. make[2]: *** [js.o] Error 1 and today PLIB CVS did not change, It looks like a platform detection problem. Somehow your compiler identifies itself as being a BSD platform. Instead it should support the SOLARIS definition. If you know this shouldn't be the case, add the correct string to plib/src/util/ul.h. After that everything should compiler again. Erik ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] FlightGear without Joystick
Somehow your compiler identifies itself as being a BSD platform. Instead it should support the SOLARIS definition. I think it's a different issue. Taken from current 'README': PORTABILITY and DEPENDANCIES: [...] JS -- Currently Linux/Windows/BSD only. plib-1.4.2 detects the presence of a joystick and decides not to build 'libplibjs': [ configure ] checking joystick.h usability... no checking joystick.h presence... no checking for joystick.h... no checking linux/joystick.h usability... no checking linux/joystick.h presence... no checking for linux/joystick.h... no [ make ] make[2]: Entering directory /usr/local/src/plib-1.4.2/src/js' make[2]: Nothing to be done for ll'. make[2]: Leaving directory /usr/local/src/plib-1.4.2/src/js' So would might be worthwhile to allow building FlightGear _without_ joystick support in PLIB !? Martin. -- Unix _IS_ user friendly - it's just selective about who its friends are ! -- ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] FlightGear without Joystick
Martin Spott wrote: Somehow your compiler identifies itself as being a BSD platform. Instead it should support the SOLARIS definition. I think it's a different issue. Taken from current 'README': PORTABILITY and DEPENDANCIES: [...] JS -- Currently Linux/Windows/BSD only. from the README in plib/src/js: ...and a bunch of OS-specific code: jsLinux.cxx jsLinuxOld.cxx jsWindows.cxx jsBSD.cxx jsMacOS.cxx ...for OS's (eg IRIX and SOLARIS) without standard joystick functionality, we add: jsNone.cxx ...which safely returns error status with no buttons or axes provided. believe me, it is the SOLARIS variable in plib/src/util/ul.h You might want to try this path: --- /home/erik/src/CVS/fgfs/plib/src/util/ul.h Sat Jan 4 11:01:57 2003 +++ plib/src/util/ul.h Thu Feb 20 13:35:45 2003 @@ -80,7 +80,7 @@ #define UL_IRIX 1 -#elif defined(SOLARIS) +#elif defined(SOLARIS) || defined (sun) #define UL_SOLARIS 1 Erik ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] FlightGear without Joystick
Martin, Our assumption has been that plib supports joysticks on every platform, or hides the fact that it doesn't from the calling application. Apparently neither is the case, at least for solaris. :-( Question, if you hack up the FG code to yank out all joystick support, can you then get to the end and get a working FG build? In the past there have been strange missing symbols that couldn't be resolved which looked a lot like a compiler bug somewhere. Regards, Curt. Martin Spott writes: Hello, at least since 1.6.0 release (or earlier) PLIB appears not to build joystick support on Solaris (not on the two machines I use to compile miscallaneous stuff on). But FlightGear does not build with a PLIB without joystick support: /usr/local/src/FlightGear/src/Cockpit/built_in ~ g++ [...] -c -o FGMagRibbon.o [...] [...] In file included from ../panel.hxx:54, from FGMagRibbon.hxx:25, from FGMagRibbon.cxx:22: ../../../src/Input/input.hxx:31:21: plib/js.h: File not found In file included from ../panel.hxx:54, from FGMagRibbon.hxx:25, from FGMagRibbon.cxx:22: ../../../src/Input/input.hxx:262: `JS_MAX_AXES' was not declared in this scope ../../../src/Input/input.hxx:262: enumerator value for `MAX_JOYSTICK_AXES' not integer constant ../../../src/Input/input.hxx:308: syntax error before `*' token make[3]: *** [FGMagRibbon.o] Error 1 Do you tend to wait until PLIB has joystick support on Solaris or might it be of interest to let 'configure' test for joystick support and set the dependencies in FlightGear accordingly ? Martin. -- Unix _IS_ user friendly - it's just selective about who its friends are ! -- ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel -- Curtis Olson IVLab / HumanFIRST Program FlightGear Project Twin Cities[EMAIL PROTECTED] [EMAIL PROTECTED] Minnesota http://www.menet.umn.edu/~curt http://www.flightgear.org ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] FlightGear without Joystick
Martin Spott writes: Curtis L. Olson [EMAIL PROTECTED] wrote: Question, if you hack up the FG code to yank out all joystick support, can you then get to the end and get a working FG build? I'll try my best as time permits. I spent quite a couple of hours compiling and testing FlightGear, DRI, FreeTDS and other OpenSource stuff these days. I assume I somehow should get back to working a bit more for my income really soon ;-) Now, now ... don't be distracted by those hunger pains, and those angry people banging on your door wanting to evict you for not paying rent. :-) Curt. -- Curtis Olson IVLab / HumanFIRST Program FlightGear Project Twin Cities[EMAIL PROTECTED] [EMAIL PROTECTED] Minnesota http://www.menet.umn.edu/~curt http://www.flightgear.org ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel