Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: UnsatisfiedLinkError after building a JNI Library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UnsatisfiedLinkError after building a JNI Library




On Jun 16, 2009, at 5:45 PM, Greg Guerin wrote:

There are no ppc64 JVMs on any version of Mac OS X, and there never  
have been, AFAIK.

You're leaving out the most obvious 64-bit architecture:
   the one for the CPU you have.

That arch name is "x86_64", not "ppc64".

I was only going by what it said in the "man gcc" manual. It mentioned ppc64, but it didn't mention x86_64 at all. I tried it partly out of desperation, partly because the 64 made sense, even if the ppc didn't. (I didn't actually expect it to work. I was just trying every architecture mentioned in man gcc.)

Here's what "man gcc" says about the -arch option:

-arch arch
          Compile for the specified target architecture arch.  The allowable
          values are i386, ppc and ppc64.  Multiple options work, and direct
          the compiler to produce ``universal'' binaries including object
          code for each architecture specified with -arch.  This option only
          works if assembler and libraries are available for each
          architecture specified.  (APPLE ONLY)

(emphasis added)

Do you know who to contact about getting the man files updated? It might also make sense to revise gcc to produce x86_64 code by default on 64 bit machines.

Anyway, I've got it all sorted out now. It works on my machine, and I know how to make it work for any other machine I may need. So thanks for your help. 
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: UnsatisfiedLinkError after building a JNI Library (From: Miguel Muñoz <email@hidden>)
 >Re: UnsatisfiedLinkError after building a JNI Library (From: Pratik Solanki <email@hidden>)
 >Re: UnsatisfiedLinkError after building a JNI Library (From: Miguel Muñoz <email@hidden>)
 >Re: UnsatisfiedLinkError after building a JNI Library (From: Pratik Solanki <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.