Re: XCODE 2.1 targeting Panther
Re: XCODE 2.1 targeting Panther
- Subject: Re: XCODE 2.1 targeting Panther
- From: Jeff Moore <email@hidden>
- Date: Wed, 17 Aug 2005 13:00:58 -0700
Hmm. I tried this with the new AudioReflectorDriver that's in our new
SDK, but I couldn't get it to build. I got errors about not finding
<IOKit/IOKit.h> and other standard system headers.
I'll ask around internally to see if I can come up with a more
definitive answer for you all.
On Aug 17, 2005, at 12:04 PM, B.J. Buchalter wrote:
Hi Philip,
Hello Jeff, thanks for your reply. I guess I was subconsciously
thinking
too much like a Windows driver developer, and so this did not
occur to me
(Windows DDK has several OS environments).
You can develop for both Panther and Tiger using the 10.3.9 SDK in
Xcode 2.1
running on Tiger. That is, you have to build the kext as if you were
building against the 10.3.9 target, but you can still do this on 10.4.
It is a bit tricky to get the project set up correctly though.
If I remember correctly:
Set the following properties at the Project level:
MACOSX_DEPLOYMENT_TARGET = 10.3
SDKROOT = /Developer/SDKs/MacOSX10.3.9.sdk
At the target level, in the Build tab:
HEADER_SEARCH_PATHS =
"$(SDKROOT)/System/Library/Frameworks/Kernel.framework/Headers"
FRAMEWORK_SEARCH_PATHS = "\"$(SDKROOT)/System/Library/Frameworks\""
GCC_VERSION = 3.3
KERNEL_MODULE = YES
MODULE_IOKIT = YES
I *think* that was the only magic required to get this to work.
BTW, I'm pretty sure you should be able to select the lines above
and just
drag them (maybe one at at time) in to the settings panel in Xcode
(except
maybe the HEADER_SEARCH_PATHS since mail is breaking the line in the
middle).
Unfortunately it is not as simple as just setting the SDK for the
project
for some reason.
Also, you may run into some issues with the Headers for 1394 in
SDK. If
worst comes to worst, you can download the IOFireWireFamily for
10.3.9 from
Darwin and manually install the 1394 headers in the right place in
the SDK
(I don't remember, but I might have had to do this).
One key issue is the 3.3 compiler. 4.0 won't work for Panther.
Good luck! It is a bit tweaky to get it right, but once you do, it
definitely works....
Best regards,
B.J. Buchalter
--
Jeff Moore
Core Audio
Apple
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden