• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Building a kext both for 10.5 and 10.6 possible with Xcode 3.2.6?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Building a kext both for 10.5 and 10.6 possible with Xcode 3.2.6?
      • From: Laurent Daudelin <email@hidden>
References: 
 >Building a kext both for 10.5 and 10.6 possible with Xcode 3.2.6? (From: Laurent Daudelin <email@hidden>)

  • Prev by Date: Building a kext both for 10.5 and 10.6 possible with Xcode 3.2.6?
  • Next by Date: Re: Xcode 4 excruciatingly unresponsive
  • Previous by thread: Building a kext both for 10.5 and 10.6 possible with Xcode 3.2.6?
  • Next by thread: Re: Building a kext both for 10.5 and 10.6 possible with Xcode 3.2.6?
  • Index(es):
    • Date
    • Thread