Hello. I think I have plib built and installed. Using GCC 3.3 and PLIB straight from CVS 2004-11-08.
Looking in /usr/include/plib and /usr/lib/ it looks like plib is installed. The only problem I now have is when trying to configure simgear from CVS (same date) I get: checking plib/ul.h usability... no checking plib/ul.h presence... yes configure: WARNING: plib/ul.h: present but cannot be compiled configure: WARNING: plib/ul.h: check for missing prerequisite headers? configure: WARNING: plib/ul.h: see the Autoconf documentation configure: WARNING: plib/ul.h: section "Present But Cannot Be Compiled" configure: WARNING: plib/ul.h: proceeding with the preprocessor's result configure: WARNING: plib/ul.h: in the future, the compiler will take precedence configure: WARNING: ## ------------------------------------------ ## configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ## configure: WARNING: ## ------------------------------------------ ## checking for plib/ul.h... yes checking for plib 1.6.0 or newer... wrong version configure: error: Install plib 1.6.0 or later first... That has to mean something. I tried changing the version in ul.h but that didn't help :). Could you send me your compiled files (from /usr/lib/libplibXXX and /usr/include/plib) and see if if that works? I would love to make an installer package for Mac OS X which would install plib for other OSX users without having to compile it. On Wed, 10 Nov 2004 10:07:51 -0800, Adam Dershowitz <[EMAIL PROTECTED]> wrote: > OK, > I now have gotten plib to compile. No promises on the functionality. It > seems that jsMacOSX.cxx contained a LPVOID cast. I can't figure out what > this is. It seems to be a Windows thing. I removed that. I hate to remove > a cast without understanding it, but it does now compile. > So, again, here are the diffs of the two files that I changed from the > original to my own version. > > > > diff jsMacOSX.cxx jsMacOSX_org.cxx > > 17,19c17 > < //int jsJoystick::kNumDevices = 32 ; > < int jsJoystick::kNumDevices = JS_MAX_OSX_DEVICES ; > < > --- > > int jsJoystick::kNumDevices = 32 ; > 21,22c19 > < //io_object_t jsJoystick::ioDevices[kNumDevices]; > < io_object_t jsJoystick::ioDevices[JS_MAX_OSX_DEVICES] ; > --- > > io_object_t jsJoystick::ioDevices[kNumDevices]; > 132,133c129,130 > < HRESULT pluginResult = (*plugin)->QueryInterface(plugin, > < CFUUIDGetUUIDBytes(kIOHIDDeviceInterfaceID), &hidDev); > --- > > HRESULT pluginResult = (*plugin)->QueryInterface(plugin, > > CFUUIDGetUUIDBytes(kIOHIDDeviceInterfaceID), &(LPVOID) > > hidDev); > > > > > diff js.h js_org.h > 35,36d34 > < #define JS_MAX_OSX_DEVICES 32 > < > 97c95 > < static int kNumDevices; > --- > > static const int kNumDevices; > 99,100c97 > < // static io_object_t ioDevices[kNumDevices]; > < static io_object_t jsJoystick::ioDevices[JS_MAX_OSX_DEVICES] ; > --- > > static io_object_t ioDevices[kNumDevices]; > > > So my build steps were 1)just to download with CVS. > 2) make the above edits. > 3) ./autogen.sh > 4)./configure --prefix=$BUILDDIR (or whatever) > 5) make install. > > Good luck, and let me know if it works for you. > > > > -- Adam > > > From: Arthur Wiebe <[EMAIL PROTECTED]> > > Reply-To: Arthur Wiebe <[EMAIL PROTECTED]> > > Date: Wed, 10 Nov 2004 08:45:01 -0500 > > To: <[EMAIL PROTECTED]> > > Subject: FlightGear on Mac OS X > > > > Hello, > > I just have a question. What did you do to get plib to compile? I > > tried some things but couldn't get it to work so I just got it from > > CVS which did work but simgear doesn't recognize it. > > And what version of plib did you build? > > > > Thanks. > > -- > > <Arthur/> > > -- <Arthur/> _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
