Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Building a native library for both Java 6 and 10.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building a native library for both Java 6 and 10.4



Hi

Or you can compile two separate libs and decide which one to load at runtime.

Bob
--
On 24 Mar 2009, at 10:49, Erik Larsson wrote:

If you compile i386, x86_64 and ppc code into the library (combine them into a fat binary using 'lipo', or whatever method suits you best), I guess it would work on all current platforms. Make sure to compile it for 10.4 by using the 10.4u SDK (Leopard compiled binaries tend to include references to UNIX 2003-functions that don't exist in Tiger).

You may have to use the 10.5 SDK for the x86_64 version of the library if you're using libraries that weren't available to 64-bit programs in Tiger. In that case you won't be able to run the app on 64-bit Java in 10.4 (I don't even remember if Tiger has 64-bit Java 5 or not...).

- Erik

Ulrich Kortenkamp wrote:
Hi,

I just tried to re-compile a jni library to work with Java 6, but then it won't work with Tiger (Mac OS X 10.4). However, the Java code we are using is 1.5, so it can run with 10.4 (and does so). Of course, Java 1.5 is available for 10.5, but I really would like the code to work as well on Java 6.

Any idea how to do that?

Thanks,

Ulli_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
@gmail.com


This email sent to email@hidden

_______________________________________________ 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


This incoming email to UWE has been independently scanned for viruses by McAfee anti-virus software and none were detected



This email was independently scanned for viruses by McAfee anti-virus software and none were found _______________________________________________ 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: 
 >Building a native library for both Java 6 and 10.4 (From: Ulrich Kortenkamp <email@hidden>)
 >Re: Building a native library for both Java 6 and 10.4 (From: Erik Larsson <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.