Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

compiling IOUSBFamily -- what build environment needed?



I tried to build IOUSBFamily-220.4.10, from darwin sources, on an 10.4.2 machine, using XCode 2.0 and later 2.1.

I'm getting some compile errors about uint64_t/AbsolutTime mismatches and a missing casting macro (see below). I've been able to change the source to get it to compile, but do have a question:

How do I build IOUSBFamily? Is a special build environment needed? Do I need to build the kernel (headers) from xnu sources and somehow get the PrivateHeaders installed too (that's where the macro is defined)? Do I need to build against an older version of xnu? Use jam instead of XCode?

thanks for any pointers,
Martijn


AppleUSBOHCI/Classes/AppleUSBOHCI.cpp: In member function 'virtual bool AppleUSBOHCI::start(IOService*)':
AppleUSBOHCI/Classes/AppleUSBOHCI.cpp:105: error: cannot convert 'AbsoluteTime*' to 'uint64_t*' for argument '1' to 'void clock_get_uptime(uint64_t*)'
AppleUSBOHCI/Classes/AppleUSBOHCI.cpp: In member function 'void AppleUSBOHCI::ProcessCompletedITD (AppleOHCIIsochTransferDescriptorStruct*, IOReturn)':
AppleUSBOHCI/Classes/AppleUSBOHCI.cpp:1137: error: cannot convert 'AbsoluteTime*' to 'uint64_t*' for argument '1' to 'void clock_get_uptime(uint64_t*)'
AppleUSBOHCI/Classes/AppleUSBOHCI.cpp:1139: error: 'SUB_ABSOLUTETIME' was not declared in this scope
AppleUSBOHCI/Classes/AppleUSBOHCI.cpp:1140: error: cannot convert 'AbsoluteTime' to 'uint64_t' for argument '1' to 'void absolutetime_to_nanoseconds(uint64_t, uint64_t*)'
...failed CompileCplusplus /Users/plak/Projects/USBTracer/ IOUSBFamily-220.4.10/build/IOUSBFamily.build/Development/ AppleUSBOHCI.build/Objects-normal/ppc/AppleUSBOHCI.o ...


and the same errors and similar errors in other files

--
Martijn Plak <email@hidden>



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.