On Saturday, February 8, 2003, at 03:23  am, Jonathan Polley wrote:

Hmm, that's odd. Out of the box, the version of the Mac joystick code that is in CVS does not compile. As I reported to the plib group, if I incorporate the non-CVS versions of jsMacOSX.cxx and js.h, I get the following errors in the FlightGear joystick code:

ld: Undefined symbols:
jsJoystick::read(int*, float*)
_CFArrayApplyFunction
<snipped lots of CoreFoundatioon / IOKit symbols >
_kCFAllocatorDefault

I've been trying to help David Drum get his FlightGear to build and he discovered that adding -framework Carbon to the Makefile reduces the link errors down to

ld: /Users/david/FlightGear/FlightGear-CVS/lib/libplibjs.a(jsMacOSX.o) illegal reference to symbol: _IOCreatePlugInInterfaceForService defined in indirectly referenced dynamic library /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
Sorry, I thought I'd covered this : you need to add '-framework IOKit -framework CoreFoundation' to configure.ac, around link 168. I've attached my version of configure.ac, let me know if you have any other problems.

H&H
James



Attachment: configure.ac
Description: Binary data


--
The lack of planning on your part does not constitute to an emergency on mine

Reply via email to