Mailing Lists: Apple Mailing Lists

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

Re: kext compile for 10.1



On Nov 9, 2003, at 7:01 PM, Amanda Walker wrote:

On Nov 7, 2003, at 8:40 AM, Dotremont Jo wrote:
Apparently I have to build my driver kext in 10.1.x if I want to work on
10.1. That's really silly because both OS X and the developer tools have
pretty evolved since 10.1.

I agree. I have an entire 10.1.5 partition just for building kexts.

Has anyone else tried to set up a 10.1-capable build environment on 10.2 (or
10.3)? Is there any hope?

The XCode docs imply it can be done in some spots, and that it can't in other spots. I have not so far gotten it to actually work.

Heck, I wouldn't even mind using the 10.1 toolchain if I could just use it under 10.3. But no, they require a live 10.1 system.

Just mirror the 10.1 Kernel.framework headers to someplace within your source base and set up the system header search paths to point to it. Make sure you build with gcc 2.95.2. Kexts don't link against anything (yet), so you don't have to worry about library or framework binaries. [*]

If you want to build 10.2 kexts on 10.3, you'll need to do the same thing, but use GCC 3.1 instead.

Caveat: I've only tried this with IOKit kexts.

Chris


* Xcode has an SDK concept wherein Unix people learn that the development tools are distinguishable from operating systems, but this doesn't work for non-native targets (as kexts currently must be) _and_ doesn't seem to be changeable on a per-target basis, which would prevent you from targeting multiple OS versions in the same project.
_______________________________________________
darwin-drivers mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-drivers
Do not post admin requests to the list. They will be ignored.
References: 
 >kext compile for 10.1 (From: Dotremont Jo <email@hidden>)
 >Re: kext compile for 10.1 (From: Amanda Walker <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.