• 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: How to convert project from PPC to Universal Binary?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to convert project from PPC to Universal Binary?


  • Subject: Re: How to convert project from PPC to Universal Binary?
  • From: Jason Stephenson <email@hidden>
  • Date: Fri, 30 Oct 2009 18:51:22 -0400

Alan Snyder wrote:
[Snip]
I've tried to recompile these files on my OS-X 10.5 iMac(intel) from
the source, but have several issues. (i.e. It is K&R C and needs gcc
3.3)  So, instead want to ask if there is a way to transcode the
original *.a file (ppc assembly) into something that the XCode project
can accept.

You might be able to get those files to compile with gcc 4.0 by adding -traditional to the per file compiler flags. See the appropriate section of the Xcode Project Management Guide:


file:///Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.DeveloperTools.docset/Contents/Resources/Documents/documentation/DeveloperTools/Conceptual/XcodeProjectManagement/070-Building_Products/building.html

if you have the documentation installed.

If you have tried to compile them with gcc 4.0 and it fails, the error messages generated by the compiler would be useful for suggesting a possible route to take in finding a solution.

Another option is to modify the source files so that they are c89 or c99 compatible. This is usually relatively easy to do and I've seen macros for GNU Emacs floating around the 'net that will do this for the most part.

Without actually seeing the files and error messages, though, one can only guess. The files could contain asm sections with code that only works on PPC or could be assuming things only work on PPC processors.

Jason
_______________________________________________
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


References: 
 >How to convert project from PPC to Universal Binary? (From: Alan Snyder <email@hidden>)

  • Prev by Date: Re: LLVM 2.6 Released / Can it be used with Xcode?
  • Next by Date: Re: How to convert project from PPC to Universal Binary?
  • Previous by thread: Re: How to convert project from PPC to Universal Binary?
  • Next by thread: Re: How to convert project from PPC to Universal Binary?
  • Index(es):
    • Date
    • Thread