• 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: Desperate for Xcode Help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Desperate for Xcode Help


  • Subject: Re: Desperate for Xcode Help
  • From: "William C. McCain" <email@hidden>
  • Date: Fri, 13 Jan 2006 22:08:27 -0800

Alexander von Below wrote:
As I have no clue about Java on JNI, I can not tell you what to do in Xcode. And while I work with Xcode daily, and like it a lot, given your history you might be better off the terminal way...

But if I think "C":

- gcc 4.0 supports the -arch flag to compile binaries for ppc or i386. You can compile seperate binaries that way

- the lipo tool will allow you to combine the seperate binaries into one universal library.

Java isn't really an issue here -- a "jnilib" is just an ordinary "dylib" with a different suffix (or "extension"). Java plays a role in how you write the code, using Java-specific header files, but once it is compiled (which I can do successfully), linking the object into a dynamic library is just like linking any other dynamic library.


Yes, I would have preferred "the terminal way" -- and I may well go back to that, after I see how Xcode "does the (universal) job". I did find out, last summer, that you compile & link twice (once for each architecture) and then use lipo to combine the results -- just as you said, above.

I am trying to use Xcode because Apple's documentation on producing universal binaries from a command prompt is virtually non-existent. They say that you "must" use Xcode to produce universal binaries -- and they mean it. But of course, once I get Xcode working, I can look in the "build log" and see exactly what commands and flags are really needed.

Also, I am TRYING to overcome my resistance to "newfangled ideas"! While I will never really be a "convert" to the "IDE way", I do believe that I should at least learn enough to use one if I need to. (For one thing, I use an obscure source code editor that nobody else uses and which isn't supported as a "plug-in" in ANYBODY's IDE.)

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


  • Follow-Ups:
    • Re: Desperate for Xcode Help
      • From: Eric Albert <email@hidden>
    • Re: Desperate for Xcode Help
      • From: David Fang <email@hidden>
References: 
 >Desperate for Xcode Help (From: "William C. McCain" <email@hidden>)
 >Re: Desperate for Xcode Help (From: Alexander von Below <email@hidden>)

  • Prev by Date: Undefined symbol __error()
  • Next by Date: Re: Universal Binaries for an app built with different SDK versions
  • Previous by thread: Re: Desperate for Xcode Help
  • Next by thread: Re: Desperate for Xcode Help
  • Index(es):
    • Date
    • Thread