To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 10806
10805  |  10807
Subject: 
Re: LPub 4 Status
Newsgroups: 
lugnet.cad.dev
Date: 
Wed, 23 Apr 2008 19:20:14 GMT
Viewed: 
13845 times
  
In lugnet.cad.dev, Don Heyse wrote:
   In lugnet.cad.dev, Travis Cobbs wrote:
   In lugnet.cad.dev, Don Heyse wrote:
   Err, I rushed it and sorta botched the build. So a few files got built with no PPC code. I rebuilt it, but didn’t get a chance to borrow an older machine to test it on yet.

Actually, I don’t have a PPC Mac, just the previous OS version.

That’s interesting. I built it on a new laptop with the version of XCode that comes with leopard. However I just added the arch targets to the old makefile (but missed one of the libraries). So I guess the default is to target leopard only. I suppose I should try to build from an XCode project and see if it’s easier to target older OS versions and CPUs with that.

   I believe that if you don’t get everything right for the “universal” stuff, it will give you an error at link time. I know that’s what it does to me if any of the libraries aren’t universal and I try to do a universal build.

It let me link in an X86 only lib without an error. Maybe there was a warning, I didn’t pay too much attention. I can imagine reasons why you *might* want a special lib that’s only called from the X86 code.

  
   Hey, maybe (probably) you know this. What’s involved in supporting a G3, or say OS 10.3? I don’t know my way around the compiler switches well enough yet to turn off altivec or use the older libraries.

No idea. I know how to set up the OS setting in XCode, but I don’t know off-hand even how to do that in a Makefile.

I found some documentation, but I printed it and don’t have it on hand right now. It sure looks easier to do from the XCode gui though.

Since I already lost this once, I’m gonna stash it here just in case. To compile something that runs on Tiger from a makefile on Leopard add this:

CFLAGS+= -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk

LDFLAGS+= -isysroot /Developer/SDKs/MacOSX10.4u.sdk

That should make it build and run with the older Tiger sdk and libs. Add -arch i386 -arch ppc and I should be able to make a universal binary for 10.4 and up. (I hope)

Don



Message has 1 Reply:
  Re: LPub 4 Status
 
(...) Good idea. (...) I'll be happy to be your Tiger test subject, but I can only test Intel. --Travis (16 years ago, 23-Apr-08, to lugnet.cad.dev, FTX)

Message is in Reply To:
  Re: LPub 4 Status
 
(...) That's interesting. I built it on a new laptop with the version of XCode that comes with leopard. However I just added the arch targets to the old makefile (but missed one of the libraries). So I guess the default is to target leopard only. I (...) (16 years ago, 21-Apr-08, to lugnet.cad.dev, FTX)

81 Messages in This Thread:




















Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR