Re: Desperate for Xcode Help
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