Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread Display Modes
Old Sep 17, 2008, 11:17 AM   #1
macrumors newbie
Join Date: Sep 2008
Compiling Universal Binary library on Leopard, make/cc problems

I'm trying to compile the freetype library on Leopard for use as a Universal Binary library, however I'm having some make trouble.

I'm trying to pass options to the CC environment variable, but that always seems to result in a "libtool: link: `/Users/matt/Workspace/freetype/freetype-2.3.7/objs/ftsystem.lo' is not a valid libtool object" error, after which make fails.

This is the result of doing a simple:

make "CC=cc"


make "CC=cc -arch i386"

Just doing a configure and make works ok (without CC) but I can only ever compile an i386 library this way. Configuring the the ppc build/host system options, and then doing make "CC=cc -arch ppc" results in the exact same error. Why doesn't it like cc?
ukdmbfan is offline   0 Reply With Quote
Old Sep 18, 2008, 12:41 PM   #2
Moderator emeritus
kainjow's Avatar
Join Date: Jun 2000
Have you looked at this?

Some projects don't even compile for PPC on an Intel Mac, for whatever reasons. I've had to just build them on a PPC machine and manually create the universal binary using lipo.
kainjow is offline   0 Reply With Quote
Old Sep 19, 2008, 03:20 AM   #3
Thread Starter
macrumors newbie
Join Date: Sep 2008
I was starting to get that feeling considering other things were compiling fine with the exact same process. I had a feeling that I'd cross-compiled freetype before, but I might not have done. Might have to dig up a G4 Mini from eBay then, as I don't have a (working) PPC machine

Thanks for your help.
ukdmbfan is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Universal Binaries vmachiel Mac Basics and Help 5 Jul 6, 2011 01:38 PM
iTunes Library on external HD won't work bristleworm Mac Basics and Help 1 May 25, 2011 06:02 AM
Apple TV 2 & iTunes library on Time Capsule bmorris Apple TV and Home Theater 11 Mar 18, 2011 03:02 PM
Itunes won't sync my selected songs? only entire library on my macbook? cootersgarage6 OS X 0 Jan 15, 2011 08:16 PM
Compiling Universal Binaries... anyone try it yet? DavidLeblond Mac Programming 2 Jun 12, 2005 12:07 PM

All times are GMT -5. The time now is 11:41 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013,, LLC