Re: Building a kext both for 10.5 and 10.6 possible with Xcode 3.2.6?
Re: Building a kext both for 10.5 and 10.6 possible with Xcode 3.2.6?
- Subject: Re: Building a kext both for 10.5 and 10.6 possible with Xcode 3.2.6?
- From: Michael Dautermann <email@hidden>
- Date: Wed, 20 Apr 2011 15:27:56 -0400
On Apr 20, 2011, at 3:07 PM, Laurent Daudelin wrote:
> I need to update an older project that builds a kernel extension for a USB device. The kernel extension has to load both under 10.5 and 10.6.
>
> When I opened the project in Xcode 3.2.6, Xcode was reporting that the format of the project (was 2.4), so I had to update it to 3.0.
>
> Then, the target was set to build using GCC 4.0 but I'm getting an error when linking the x86_64 binary that "in /Developer/usr/lib/gcc/i686-apple-darwin10/4.0.1/libcc_kext.a, file was built for unsupported file format which is not the architecture being linked (x86_64)". So, it seems that 4.0 is no good to build the 64bits version of the kernel extension.
>
> So, my question is, basically, is it possible to build a kernel extension for both 10.5 and 10.6, ppc, i386 and x86_64 using Xcode 3.2.6 and I guess switching the compiler to GCC 4.2?
Could you build targeting all the architectures in your kext entirely using GCC 4.2 ? One can't build x86_64 binaries using GCC 4.0.
The only alternative is to set GCC version settings for specific architectures, e.g: GCC_VERSION_ppc = 4.0; GCC_VERSION_x86_64 = 4.2; GCC_VERSION_i386=4.2, etc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden