Re: How to convert project from PPC to Universal Binary?
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