Alex009988 Posted September 30, 2013 Share Posted September 30, 2013 Hi. I have some problem, I can't compile any 32-kext on the last Xcode. This is actual only for Lion and SL where it is needed. The problem with SDK is solving quite easy. Just to add SDK from previous version of Xcode. Seems that we should do something the same with compiler. But I don't know what and where to add. Here is an example when you're trying to make a kext with 32-bit Architecture. clang: error: the clang compiler does not support 'fapple-kext' for C++ on Darwin/i386 Command /Applications/Xcode5-DP.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1 I think replacing "clang" from previous version of Xcode won't be a good idea Seems we should add Apple LLVM 4.2 Where is Apple LLVM 5.0 located?. I couldn't find it here /Applications/Xcode5-DP.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library.... 1 Link to comment Share on other sites More sharing options...
TH3L4UGH1NGM4N Posted October 2, 2013 Share Posted October 2, 2013 Hey Alex, it should be as simple as adding the SDK in first Then proceeding to selecting your SDK of choice to build against Lastly to make sure it's universal and you should be good to go because I've tested it on apps that were built for 32 bit already though I haven't tried with a kext I could try it out if it doesn't workout for you. Of course this depends on how you've coded it because things get depreciated with next generation LLVM compilers and future SDKs so previous coding can make or break a build but I'm certain you know that. 1 Link to comment Share on other sites More sharing options...
lshoell Posted October 24, 2013 Share Posted October 24, 2013 I'm having the same issue building a kext. I do not understand the comment "adding the SDK in first". Can you elaborate on where I do this? Link to comment Share on other sites More sharing options...
Alex009988 Posted November 18, 2013 Author Share Posted November 18, 2013 Lastly to make sure it's universal Hello. Thank you for your answer and sorry for a delay. With ML It worked perfect even though I had small warnings working with SDKs from Snow Leopard. And universal kext had double size because it fitted both x32 and x64. Moreover, I was be able to compile only for x32 as well. But that's another story for Mavericks. The "universal" equals x64. And it has stop-mistake for x32 architecture. Link to comment Share on other sites More sharing options...
Recommended Posts