Which version of Mac OS X for HDFview?

Had an older version running, but I can't get hdf-java 2.6.1 release
(March 5, 2010) to run on
Mac OS 10.5.8.

$ uname -a
Darwin <hostname> 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15
16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

$ /usr/bin/java -fullversion
java full version "1.6.0_17-b04-248"

The 64-bit version gave:

java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview64/lib/macosx/libjhdf5.jnilib: unknown
required load command 0x80000022
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: unknown required
load command 0x80000022

I think this indicates that the jnilib was build for Snow Leopard

The 32-bit version gave:

hdfview
java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture

···

--
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia

It seems that you have 32-bit java on your system. You should use the 32-bit hdfview.

A 64-bit java will look like this:
$ java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)

George N. White III wrote:

···

Had an older version running, but I can't get hdf-java 2.6.1 release
(March 5, 2010) to run on
Mac OS 10.5.8.

$ uname -a
Darwin <hostname> 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15
16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

$ /usr/bin/java -fullversion
java full version "1.6.0_17-b04-248"

The 64-bit version gave:

java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview64/lib/macosx/libjhdf5.jnilib: unknown
required load command 0x80000022
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: unknown required
load command 0x80000022

I think this indicates that the jnilib was build for Snow Leopard

The 32-bit version gave:

hdfview
java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture

try the following:

file /Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib

and report the output back to the list.

···

___________________________________________________________
Mike Jackson www.bluequartz.net
Principal Software Engineer mike.jackson@bluequartz.net
BlueQuartz Software Dayton, Ohio

On Apr 13, 2010, at 9:44 AM, Peter Cao wrote:

It seems that you have 32-bit java on your system. You should use the 32-bit hdfview.

A 64-bit java will look like this:
$ java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)

George N. White III wrote:

Had an older version running, but I can't get hdf-java 2.6.1 release
(March 5, 2010) to run on
Mac OS 10.5.8.

$ uname -a
Darwin <hostname> 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15
16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

$ /usr/bin/java -fullversion
java full version "1.6.0_17-b04-248"

The 64-bit version gave:

java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview64/lib/macosx/libjhdf5.jnilib: unknown
required load command 0x80000022
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: unknown required
load command 0x80000022

I think this indicates that the jnilib was build for Snow Leopard

The 32-bit version gave:

hdfview
java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

It seems that you have 32-bit java on your system. You should use the 32-bit
hdfview.

No. Leopard 1.6 is 64-bit only.

$ /usr/bin/java -version
Java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-9M3125)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)

···

On Tue, Apr 13, 2010 at 10:44 AM, Peter Cao <xcao@hdfgroup.org> wrote:

A 64-bit java will look like this:
$ java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)

George N. White III wrote:

Had an older version running, but I can't get hdf-java 2.6.1 release
(March 5, 2010) to run on
Mac OS 10.5.8.

$ uname -a
Darwin <hostname> 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15
16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

$ /usr/bin/java -fullversion
java full version "1.6.0_17-b04-248"

The 64-bit version gave:

java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview64/lib/macosx/libjhdf5.jnilib: unknown
required load command 0x80000022
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: unknown required
load command 0x80000022

I think this indicates that the jnilib was build for Snow Leopard

The 32-bit version gave:

hdfview
java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

--
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia

You are right. We use 10.3. We don't have mac os 9 anymore.
Darwin <host name> 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386

Michael Jackson wrote:

···

try the following:

file /Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib

and report the output back to the list.
___________________________________________________________
Mike Jackson www.bluequartz.net
Principal Software Engineer mike.jackson@bluequartz.net
BlueQuartz Software Dayton, Ohio

On Apr 13, 2010, at 9:44 AM, Peter Cao wrote:

It seems that you have 32-bit java on your system. You should use the 32-bit hdfview.

A 64-bit java will look like this:
$ java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)

George N. White III wrote:

Had an older version running, but I can't get hdf-java 2.6.1 release
(March 5, 2010) to run on
Mac OS 10.5.8.

$ uname -a
Darwin <hostname> 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15
16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

$ /usr/bin/java -fullversion
java full version "1.6.0_17-b04-248"

The 64-bit version gave:

java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview64/lib/macosx/libjhdf5.jnilib: unknown
required load command 0x80000022
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: unknown required
load command 0x80000022

I think this indicates that the jnilib was build for Snow Leopard

The 32-bit version gave:

hdfview
java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

The Darwin kernel versions are the following:

Darwin Kernel OS X Version
8.x 10.4.x
9.x 10.5.x
10.x 10.6.x

This has nothing to do with OS 9.

···

--
Mike Jackson <www.bluequartz.net>

On Apr 13, 2010, at 10:30 AM, Peter Cao wrote:

You are right. We use 10.3. We don't have mac os 9 anymore.
Darwin <host name> 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386

Michael Jackson wrote:

try the following:

file /Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib

and report the output back to the list.
___________________________________________________________
Mike Jackson www.bluequartz.net
Principal Software Engineer mike.jackson@bluequartz.net
BlueQuartz Software Dayton, Ohio

On Apr 13, 2010, at 9:44 AM, Peter Cao wrote:

It seems that you have 32-bit java on your system. You should use the 32-bit hdfview.

A 64-bit java will look like this:
$ java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)

George N. White III wrote:

Had an older version running, but I can't get hdf-java 2.6.1 release
(March 5, 2010) to run on
Mac OS 10.5.8.

$ uname -a
Darwin <hostname> 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15
16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

$ /usr/bin/java -fullversion
java full version "1.6.0_17-b04-248"

The 64-bit version gave:

java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview64/lib/macosx/libjhdf5.jnilib: unknown
required load command 0x80000022
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: unknown required
load command 0x80000022

I think this indicates that the jnilib was build for Snow Leopard

The 32-bit version gave:

hdfview
java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

You are right. We use 10.3. We don't have mac os 9 anymore.
Darwin <host name> 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26
11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386

Things can get confusing here... There's Mac OS X and there's Darwin.
The latter is the open source kernel of Mac OS X. They have separate
version numbers. You might find the 'sw_vers' command helpful also,
which will report for you:

ProductName: Mac OS X
ProductVersion: 10.6.3
BuildVersion: 10D573

···

On Tue, 13 Apr 2010 09:30:50 -0500, Peter Cao said:

On Tue, 13 Apr 2010 10:36:10 -0400, Michael Jackson said:

Ok, So you are using a 64 bit JVM with a 64 bit library so it _should_
work. At least the archs match. Maybe the hdfview libraries were built
on 10.6 and did not have the -mmacosx-version-min=10.5 set correctly?

That's my guess too. Or it could be a bug in the Xcode 3.2 tools that I
also hit the other day:
<http://lists.apple.com/archives/xcode-users/2009/Oct/msg00369.html>

--
____________________________________________________________
Sean McBride, B. Eng sean@rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada

try the following:

file /Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib

$ file /Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: Mach-O 64-bit
bundle x86_64

···

On Tue, Apr 13, 2010 at 11:18 AM, Michael Jackson <mike.jackson@bluequartz.net> wrote:

and report the output back to the list.
___________________________________________________________
Mike Jackson www.bluequartz.net
Principal Software Engineer mike.jackson@bluequartz.net
BlueQuartz Software Dayton, Ohio

On Apr 13, 2010, at 9:44 AM, Peter Cao wrote:

It seems that you have 32-bit java on your system. You should use the
32-bit hdfview.

A 64-bit java will look like this:
$ java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)

George N. White III wrote:

Had an older version running, but I can't get hdf-java 2.6.1 release
(March 5, 2010) to run on
Mac OS 10.5.8.

$ uname -a
Darwin <hostname> 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15
16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

$ /usr/bin/java -fullversion
java full version "1.6.0_17-b04-248"

The 64-bit version gave:

java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview64/lib/macosx/libjhdf5.jnilib: unknown
required load command 0x80000022
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: unknown required
load command 0x80000022

I think this indicates that the jnilib was build for Snow Leopard

The 32-bit version gave:

hdfview
java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

--
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia

We don't have 64-bit Mac OS 10.6 (Snow Leopard). We rebuilt hdf-java with the flag you gave.
Could you try it and let me know if it works for you?
ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/hdf-java/v2.6.1/hdfview/hdfview_install_macosx_intel64.zip

Thanks
--pc

Michael Jackson wrote:

···

Ok, So you are using a 64 bit JVM with a 64 bit library so it _should_ work. At least the archs match. Maybe the hdfview libraries were built on 10.6 and did not have the -mmacosx-version-min=10.5 set correctly?

Dunno.
--
Mike Jackson <www.bluequartz.net>

On Apr 13, 2010, at 10:21 AM, George N. White III wrote:

On Tue, Apr 13, 2010 at 11:18 AM, Michael Jackson >> <mike.jackson@bluequartz.net> wrote:

try the following:

file /Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib

$ file /Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: Mach-O 64-bit
bundle x86_64

and report the output back to the list.
___________________________________________________________
Mike Jackson www.bluequartz.net
Principal Software Engineer mike.jackson@bluequartz.net
BlueQuartz Software Dayton, Ohio

On Apr 13, 2010, at 9:44 AM, Peter Cao wrote:

It seems that you have 32-bit java on your system. You should use the
32-bit hdfview.

A 64-bit java will look like this:
$ java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)

George N. White III wrote:

Had an older version running, but I can't get hdf-java 2.6.1 release
(March 5, 2010) to run on
Mac OS 10.5.8.

$ uname -a
Darwin <hostname> 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15
16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

$ /usr/bin/java -fullversion
java full version "1.6.0_17-b04-248"

The 64-bit version gave:

java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview64/lib/macosx/libjhdf5.jnilib: unknown
required load command 0x80000022
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: unknown required
load command 0x80000022

I think this indicates that the jnilib was build for Snow Leopard

The 32-bit version gave:

hdfview
java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

--
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Ok, So you are using a 64 bit JVM with a 64 bit library so it _should_ work. At least the archs match. Maybe the hdfview libraries were built on 10.6 and did not have the -mmacosx-version-min=10.5 set correctly?

Dunno.

···

--
Mike Jackson <www.bluequartz.net>

On Apr 13, 2010, at 10:21 AM, George N. White III wrote:

On Tue, Apr 13, 2010 at 11:18 AM, Michael Jackson > <mike.jackson@bluequartz.net> wrote:

try the following:

file /Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib

$ file /Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: Mach-O 64-bit
bundle x86_64

and report the output back to the list.
___________________________________________________________
Mike Jackson www.bluequartz.net
Principal Software Engineer mike.jackson@bluequartz.net
BlueQuartz Software Dayton, Ohio

On Apr 13, 2010, at 9:44 AM, Peter Cao wrote:

It seems that you have 32-bit java on your system. You should use the
32-bit hdfview.

A 64-bit java will look like this:
$ java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)

George N. White III wrote:

Had an older version running, but I can't get hdf-java 2.6.1 release
(March 5, 2010) to run on
Mac OS 10.5.8.

$ uname -a
Darwin <hostname> 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15
16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

$ /usr/bin/java -fullversion
java full version "1.6.0_17-b04-248"

The 64-bit version gave:

java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview64/lib/macosx/libjhdf5.jnilib: unknown
required load command 0x80000022
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: unknown required
load command 0x80000022

I think this indicates that the jnilib was build for Snow Leopard

The 32-bit version gave:

hdfview
java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

--
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Um. OS X 10.6 _IS_ 64 bit by default. Without supplying any arguments to GCC, the default arch will be x86_64. So if you want this to be able to run on OS X 10.5 you _may_ need to also add the -arch i386 to the GCC invocation.

···

--
Mike Jackson <www.bluequartz.net>

On Apr 13, 2010, at 11:27 AM, Peter Cao wrote:

We don't have 64-bit Mac OS 10.6 (Snow Leopard). We rebuilt hdf-java with the flag you gave.
Could you try it and let me know if it works for you?
ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/hdf-java/v2.6.1/hdfview/hdfview_install_macosx_intel64.zip

Thanks
--pc

Michael Jackson wrote:

Ok, So you are using a 64 bit JVM with a 64 bit library so it _should_ work. At least the archs match. Maybe the hdfview libraries were built on 10.6 and did not have the -mmacosx-version-min=10.5 set correctly?

Dunno.
--
Mike Jackson <www.bluequartz.net>

On Apr 13, 2010, at 10:21 AM, George N. White III wrote:

On Tue, Apr 13, 2010 at 11:18 AM, Michael Jackson >>> <mike.jackson@bluequartz.net> wrote:

try the following:

file /Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib

$ file /Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: Mach-O 64-bit
bundle x86_64

and report the output back to the list.
___________________________________________________________
Mike Jackson www.bluequartz.net
Principal Software Engineer mike.jackson@bluequartz.net
BlueQuartz Software Dayton, Ohio

On Apr 13, 2010, at 9:44 AM, Peter Cao wrote:

It seems that you have 32-bit java on your system. You should use the
32-bit hdfview.

A 64-bit java will look like this:
$ java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)

George N. White III wrote:

Had an older version running, but I can't get hdf-java 2.6.1 release
(March 5, 2010) to run on
Mac OS 10.5.8.

$ uname -a
Darwin <hostname> 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15
16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

$ /usr/bin/java -fullversion
java full version "1.6.0_17-b04-248"

The 64-bit version gave:

java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview64/lib/macosx/libjhdf5.jnilib: unknown
required load command 0x80000022
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: unknown required
load command 0x80000022

I think this indicates that the jnilib was build for Snow Leopard

The 32-bit version gave:

hdfview
java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

--
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

You are right. We use 10.3. We don't have mac os 9 anymore.
Darwin <host name> 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26
11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386

Things can get confusing here... There's Mac OS X and there's Darwin.
The latter is the open source kernel of Mac OS X. They have separate
version numbers. You might find the 'sw_vers' command helpful also,
which will report for you:

ProductName: Mac OS X
ProductVersion: 10.6.3
BuildVersion: 10D573

Ok, So you are using a 64 bit JVM with a 64 bit library so it _should_
work. At least the archs match. Maybe the hdfview libraries were built
on 10.6 and did not have the -mmacosx-version-min=10.5 set correctly?

That's my guess too. Or it could be a bug in the Xcode 3.2 tools that I
also hit the other day:
<http://lists.apple.com/archives/xcode-users/2009/Oct/msg00369.html>

The error I got:

/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: unknown required
load command 0x80000022

is mentioned in

which refers to:

The LC_DYLD_INFO[_ONLY] commands

These load commands are numerically 0x22 and 0x80000022. The only
difference between them are LC_DYLD_INFO_ONLY will abort loading when
dyld doesn't understand the new format.

"My problem was frameworks with LC_DYLD_INFO set, because they were
built on 10.6, which I needed to link with an app being built on 10.5.
Checking "Deployment Post Processing" stripped it out of the
generated binary in my case."

···

On Tue, Apr 13, 2010 at 11:42 AM, Sean McBride <sean@rogue-research.com> wrote:

On Tue, 13 Apr 2010 09:30:50 -0500, Peter Cao said:
On Tue, 13 Apr 2010 10:36:10 -0400, Michael Jackson said:

--
____________________________________________________________
Sean McBride, B. Eng sean@rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

--
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia

All,

We will need to rebuild HDF4, HDF5 and JNI for i386 and 10.5.

Please disregard Peter's previous email; Peter only built JNI using the right flag, but it is not enough.

Please give us some time to work it out; we will ask some of you to test the new binaries before we post them on our Web site and we will announce on this list when they are available.

Thank you for your help!

Elena

···

On Apr 13, 2010, at 10:33 AM, Michael Jackson wrote:

Um. OS X 10.6 _IS_ 64 bit by default. Without supplying any arguments to GCC, the default arch will be x86_64. So if you want this to be able to run on OS X 10.5 you _may_ need to also add the -arch i386 to the GCC invocation.

--
Mike Jackson <www.bluequartz.net>

On Apr 13, 2010, at 11:27 AM, Peter Cao wrote:

We don't have 64-bit Mac OS 10.6 (Snow Leopard). We rebuilt hdf-java with the flag you gave.
Could you try it and let me know if it works for you?
ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/hdf-java/v2.6.1/hdfview/hdfview_install_macosx_intel64.zip

Thanks
--pc

Michael Jackson wrote:

Ok, So you are using a 64 bit JVM with a 64 bit library so it _should_ work. At least the archs match. Maybe the hdfview libraries were built on 10.6 and did not have the -mmacosx-version-min=10.5 set correctly?

Dunno.
--
Mike Jackson <www.bluequartz.net>

On Apr 13, 2010, at 10:21 AM, George N. White III wrote:

On Tue, Apr 13, 2010 at 11:18 AM, Michael Jackson >>>> <mike.jackson@bluequartz.net> wrote:

try the following:

file /Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib

$ file /Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: Mach-O 64-bit
bundle x86_64

and report the output back to the list.
___________________________________________________________
Mike Jackson www.bluequartz.net
Principal Software Engineer mike.jackson@bluequartz.net
BlueQuartz Software Dayton, Ohio

On Apr 13, 2010, at 9:44 AM, Peter Cao wrote:

It seems that you have 32-bit java on your system. You should use the
32-bit hdfview.

A 64-bit java will look like this:
$ java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)

George N. White III wrote:

Had an older version running, but I can't get hdf-java 2.6.1 release
(March 5, 2010) to run on
Mac OS 10.5.8.

$ uname -a
Darwin <hostname> 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15
16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

$ /usr/bin/java -fullversion
java full version "1.6.0_17-b04-248"

The 64-bit version gave:

java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview64/lib/macosx/libjhdf5.jnilib: unknown
required load command 0x80000022
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: unknown required
load command 0x80000022

I think this indicates that the jnilib was build for Snow Leopard

The 32-bit version gave:

hdfview
java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

--
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

All,

We will need to rebuild HDF4, HDF5 and JNI for i386 and 10.5.

On 10.5 the "Java Preferences.app" on my iMac has only 64-bit option
for Java SE 6. J2SE5 is
available in both 64 and 32 bit versions.

$ /usr/bin/java -version -d32
Cannot run Java in 32 bit mode. Continuing in 64 bit mode.
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-9M3125)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)

Please rebuild HDF4, HDF5 and JNI for x86_64 and 10.5.

$ otool -l libjhdf.jnilib
[...]
Load command 4
      cmd ?(0x80000022) Unknown load command
  cmdsize 48
000d2000 000000e8 000d20e8 00000098 00000000 00000000 000d2180 000003e0
000d2560 00006710

···

On Tue, Apr 13, 2010 at 12:40 PM, Elena Pourmal <epourmal@hdfgroup.org> wrote:

Please disregard Peter's previous email; Peter only built JNI using the right flag, but it is not enough.

Please give us some time to work it out; we will ask some of you to test the new binaries before we post them on our Web site and we will announce on this list when they are available.

Thank you for your help!

Elena
On Apr 13, 2010, at 10:33 AM, Michael Jackson wrote:

Um. OS X 10.6 _IS_ 64 bit by default. Without supplying any arguments to GCC, the default arch will be x86_64. So if you want this to be able to run on OS X 10.5 you _may_ need to also add the -arch i386 to the GCC invocation.

--
Mike Jackson <www.bluequartz.net>

On Apr 13, 2010, at 11:27 AM, Peter Cao wrote:

We don't have 64-bit Mac OS 10.6 (Snow Leopard). We rebuilt hdf-java with the flag you gave.
Could you try it and let me know if it works for you?
ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/hdf-java/v2.6.1/hdfview/hdfview_install_macosx_intel64.zip

Thanks
--pc

Michael Jackson wrote:

Ok, So you are using a 64 bit JVM with a 64 bit library so it _should_ work. At least the archs match. Maybe the hdfview libraries were built on 10.6 and did not have the -mmacosx-version-min=10.5 set correctly?

Dunno.
--
Mike Jackson <www.bluequartz.net>

On Apr 13, 2010, at 10:21 AM, George N. White III wrote:

On Tue, Apr 13, 2010 at 11:18 AM, Michael Jackson >>>>> <mike.jackson@bluequartz.net> wrote:

try the following:

file /Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib

$ file /Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: Mach-O 64-bit
bundle x86_64

and report the output back to the list.
___________________________________________________________
Mike Jackson www.bluequartz.net
Principal Software Engineer mike.jackson@bluequartz.net
BlueQuartz Software Dayton, Ohio

On Apr 13, 2010, at 9:44 AM, Peter Cao wrote:

It seems that you have 32-bit java on your system. You should use the
32-bit hdfview.

A 64-bit java will look like this:
$ java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)

George N. White III wrote:

Had an older version running, but I can't get hdf-java 2.6.1 release
(March 5, 2010) to run on
Mac OS 10.5.8.

$ uname -a
Darwin <hostname> 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15
16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

$ /usr/bin/java -fullversion
java full version "1.6.0_17-b04-248"

The 64-bit version gave:

java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview64/lib/macosx/libjhdf5.jnilib: unknown
required load command 0x80000022
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: unknown required
load command 0x80000022

I think this indicates that the jnilib was build for Snow Leopard

The 32-bit version gave:

hdfview
java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

--
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

--
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia

Ok, we will rebuild 64-bit binaries for Mac to work on 10.5 and 10.6

We will test HDF4 and 5 libraries on 10.5, but we will need help with testing HDFView on 64-bit 10.5.

Thank you!

Elena

···

On Apr 13, 2010, at 12:33 PM, George N. White III wrote:

On Tue, Apr 13, 2010 at 12:40 PM, Elena Pourmal <epourmal@hdfgroup.org> wrote:

All,

We will need to rebuild HDF4, HDF5 and JNI for i386 and 10.5.

On 10.5 the "Java Preferences.app" on my iMac has only 64-bit option
for Java SE 6. J2SE5 is
available in both 64 and 32 bit versions.

$ /usr/bin/java -version -d32
Cannot run Java in 32 bit mode. Continuing in 64 bit mode.
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-9M3125)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)

Please rebuild HDF4, HDF5 and JNI for x86_64 and 10.5.

$ otool -l libjhdf.jnilib
[...]
Load command 4
     cmd ?(0x80000022) Unknown load command
cmdsize 48
000d2000 000000e8 000d20e8 00000098 00000000 00000000 000d2180 000003e0
000d2560 00006710

Please disregard Peter's previous email; Peter only built JNI using the right flag, but it is not enough.

Please give us some time to work it out; we will ask some of you to test the new binaries before we post them on our Web site and we will announce on this list when they are available.

Thank you for your help!

Elena
On Apr 13, 2010, at 10:33 AM, Michael Jackson wrote:

Um. OS X 10.6 _IS_ 64 bit by default. Without supplying any arguments to GCC, the default arch will be x86_64. So if you want this to be able to run on OS X 10.5 you _may_ need to also add the -arch i386 to the GCC invocation.

--
Mike Jackson <www.bluequartz.net>

On Apr 13, 2010, at 11:27 AM, Peter Cao wrote:

We don't have 64-bit Mac OS 10.6 (Snow Leopard). We rebuilt hdf-java with the flag you gave.
Could you try it and let me know if it works for you?
ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/hdf-java/v2.6.1/hdfview/hdfview_install_macosx_intel64.zip

Thanks
--pc

Michael Jackson wrote:

Ok, So you are using a 64 bit JVM with a 64 bit library so it _should_ work. At least the archs match. Maybe the hdfview libraries were built on 10.6 and did not have the -mmacosx-version-min=10.5 set correctly?

Dunno.
--
Mike Jackson <www.bluequartz.net>

On Apr 13, 2010, at 10:21 AM, George N. White III wrote:

On Tue, Apr 13, 2010 at 11:18 AM, Michael Jackson >>>>>> <mike.jackson@bluequartz.net> wrote:

try the following:

file /Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib

$ file /Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: Mach-O 64-bit
bundle x86_64

and report the output back to the list.
___________________________________________________________
Mike Jackson www.bluequartz.net
Principal Software Engineer mike.jackson@bluequartz.net
BlueQuartz Software Dayton, Ohio

On Apr 13, 2010, at 9:44 AM, Peter Cao wrote:

It seems that you have 32-bit java on your system. You should use the
32-bit hdfview.

A 64-bit java will look like this:
$ java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)

George N. White III wrote:

Had an older version running, but I can't get hdf-java 2.6.1 release
(March 5, 2010) to run on
Mac OS 10.5.8.

$ uname -a
Darwin <hostname> 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15
16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

$ /usr/bin/java -fullversion
java full version "1.6.0_17-b04-248"

The 64-bit version gave:

java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview64/lib/macosx/libjhdf5.jnilib: unknown
required load command 0x80000022
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: unknown required
load command 0x80000022

I think this indicates that the jnilib was build for Snow Leopard

The 32-bit version gave:

hdfview
java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

--
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

--
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Ok, we will rebuild 64-bit binaries for Mac to work on 10.5 and 10.6

We will test HDF4 and 5 libraries on 10.5, but we will need help with testing HDFView on 64-bit 10.5.

Thanks. I just remembered the following remarks about problems with
JNI and dylib's on Mac OS X:

"Oh no, Ralf invited me to read the HDF JNI page
(http://www.hdfgroup.org/hdf-java-html/JNI/) more carefully. It still
says:

"On Macosx, HDF5 is supported but not HDF4. On the macosx, JNI will
only link to '.dylib' libraries. Unfortunately, dynamic libraries are
not supported for HDF4, so the JNI interface to HDF4 is not available.
The HDF5 library does build a 'dylib', and the Java native interface
for HDF5 can be built. The Java linker does not resolve all the
symbols, e.g. to the libz.dylib. Also, the linker include full paths
to the dependent library, i.e., the path on the system where the
library is built. Care must be taken to make sure that all the
dependent libraries are installed when the HDF native library is
installed on a system."

Shit. Lets move to NetCDF 4.0!" --------
<http://www.brockmann-consult.de/beam-jira/browse/BEAM-1009>

This discussion predates Mac OS X 10.6 (Snow Leopard). We are
planning to upgrade the older machines to SL "real soon now", but the
upgrade might come sooner if we can't get hdfjava on 10.5.

···

On Tue, Apr 13, 2010 at 3:30 PM, Elena Pourmal <epourmal@hdfgroup.org> wrote:

Thank you!

Elena
On Apr 13, 2010, at 12:33 PM, George N. White III wrote:

On Tue, Apr 13, 2010 at 12:40 PM, Elena Pourmal <epourmal@hdfgroup.org> wrote:

All,

We will need to rebuild HDF4, HDF5 and JNI for i386 and 10.5.

On 10.5 the "Java Preferences.app" on my iMac has only 64-bit option
for Java SE 6. J2SE5 is
available in both 64 and 32 bit versions.

$ /usr/bin/java -version -d32
Cannot run Java in 32 bit mode. Continuing in 64 bit mode.
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-9M3125)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)

Please rebuild HDF4, HDF5 and JNI for x86_64 and 10.5.

$ otool -l libjhdf.jnilib
[...]
Load command 4
cmd ?(0x80000022) Unknown load command
cmdsize 48
000d2000 000000e8 000d20e8 00000098 00000000 00000000 000d2180 000003e0
000d2560 00006710

Please disregard Peter's previous email; Peter only built JNI using the right flag, but it is not enough.

Please give us some time to work it out; we will ask some of you to test the new binaries before we post them on our Web site and we will announce on this list when they are available.

Thank you for your help!

Elena
On Apr 13, 2010, at 10:33 AM, Michael Jackson wrote:

Um. OS X 10.6 _IS_ 64 bit by default. Without supplying any arguments to GCC, the default arch will be x86_64. So if you want this to be able to run on OS X 10.5 you _may_ need to also add the -arch i386 to the GCC invocation.

--
Mike Jackson <www.bluequartz.net>

On Apr 13, 2010, at 11:27 AM, Peter Cao wrote:

We don't have 64-bit Mac OS 10.6 (Snow Leopard). We rebuilt hdf-java with the flag you gave.
Could you try it and let me know if it works for you?
ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/hdf-java/v2.6.1/hdfview/hdfview_install_macosx_intel64.zip

Thanks
--pc

Michael Jackson wrote:

Ok, So you are using a 64 bit JVM with a 64 bit library so it _should_ work. At least the archs match. Maybe the hdfview libraries were built on 10.6 and did not have the -mmacosx-version-min=10.5 set correctly?

Dunno.
--
Mike Jackson <www.bluequartz.net>

On Apr 13, 2010, at 10:21 AM, George N. White III wrote:

On Tue, Apr 13, 2010 at 11:18 AM, Michael Jackson >>>>>>> <mike.jackson@bluequartz.net> wrote:

try the following:

file /Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib

$ file /Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: Mach-O 64-bit
bundle x86_64

and report the output back to the list.
___________________________________________________________
Mike Jackson www.bluequartz.net
Principal Software Engineer mike.jackson@bluequartz.net
BlueQuartz Software Dayton, Ohio

On Apr 13, 2010, at 9:44 AM, Peter Cao wrote:

It seems that you have 32-bit java on your system. You should use the
32-bit hdfview.

A 64-bit java will look like this:
$ java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)

George N. White III wrote:

Had an older version running, but I can't get hdf-java 2.6.1 release
(March 5, 2010) to run on
Mac OS 10.5.8.

$ uname -a
Darwin <hostname> 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15
16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

$ /usr/bin/java -fullversion
java full version "1.6.0_17-b04-248"

The 64-bit version gave:

java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview64/lib/macosx/libjhdf5.jnilib: unknown
required load command 0x80000022
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: unknown required
load command 0x80000022

I think this indicates that the jnilib was build for Snow Leopard

The 32-bit version gave:

hdfview
java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

--
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

--
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

--
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia

George,

Ok, we will rebuild 64-bit binaries for Mac to work on 10.5 and 10.6

We will test HDF4 and 5 libraries on 10.5, but we will need help with testing HDFView on 64-bit 10.5.

Thanks. I just remembered the following remarks about problems with
JNI and dylib's on Mac OS X:

"Oh no, Ralf invited me to read the HDF JNI page
(http://www.hdfgroup.org/hdf-java-html/JNI/) more carefully. It still
says:

"On Macosx, HDF5 is supported but not HDF4. On the macosx, JNI will
only link to '.dylib' libraries. Unfortunately, dynamic libraries are
not supported for HDF4, so the JNI interface to HDF4 is not available.
The HDF5 library does build a 'dylib', and the Java native interface
for HDF5 can be built. The Java linker does not resolve all the
symbols, e.g. to the libz.dylib. Also, the linker include full paths
to the dependent library, i.e., the path on the system where the
library is built. Care must be taken to make sure that all the
dependent libraries are installed when the HDF native library is
installed on a system."

It is probably a very old discussion. We ported HDF4 to Mac OSX and we do now support dynamic HDF4 C libraries.
To configure HDF4 with the shared support one needs to do
./configure --disable-fortran --enable-shared ....

HDFView doesn't use shared HDF, zlib, jpeg, szip libraries, but static built with the -fPIC flag (or similar)

Elena

P.S. We will provide HDFView for 64-bit Mac with 10.5.* :slight_smile: It should work!

···

On Apr 16, 2010, at 12:58 PM, George N. White III wrote:

On Tue, Apr 13, 2010 at 3:30 PM, Elena Pourmal <epourmal@hdfgroup.org> wrote:

Shit. Lets move to NetCDF 4.0!" --------
<http://www.brockmann-consult.de/beam-jira/browse/BEAM-1009>

This discussion predates Mac OS X 10.6 (Snow Leopard). We are
planning to upgrade the older machines to SL "real soon now", but the
upgrade might come sooner if we can't get hdfjava on 10.5.

Thank you!

Elena
On Apr 13, 2010, at 12:33 PM, George N. White III wrote:

On Tue, Apr 13, 2010 at 12:40 PM, Elena Pourmal <epourmal@hdfgroup.org> wrote:

All,

We will need to rebuild HDF4, HDF5 and JNI for i386 and 10.5.

On 10.5 the "Java Preferences.app" on my iMac has only 64-bit option
for Java SE 6. J2SE5 is
available in both 64 and 32 bit versions.

$ /usr/bin/java -version -d32
Cannot run Java in 32 bit mode. Continuing in 64 bit mode.
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-9M3125)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)

Please rebuild HDF4, HDF5 and JNI for x86_64 and 10.5.

$ otool -l libjhdf.jnilib
[...]
Load command 4
     cmd ?(0x80000022) Unknown load command
cmdsize 48
000d2000 000000e8 000d20e8 00000098 00000000 00000000 000d2180 000003e0
000d2560 00006710

Please disregard Peter's previous email; Peter only built JNI using the right flag, but it is not enough.

Please give us some time to work it out; we will ask some of you to test the new binaries before we post them on our Web site and we will announce on this list when they are available.

Thank you for your help!

Elena
On Apr 13, 2010, at 10:33 AM, Michael Jackson wrote:

Um. OS X 10.6 _IS_ 64 bit by default. Without supplying any arguments to GCC, the default arch will be x86_64. So if you want this to be able to run on OS X 10.5 you _may_ need to also add the -arch i386 to the GCC invocation.

--
Mike Jackson <www.bluequartz.net>

On Apr 13, 2010, at 11:27 AM, Peter Cao wrote:

We don't have 64-bit Mac OS 10.6 (Snow Leopard). We rebuilt hdf-java with the flag you gave.
Could you try it and let me know if it works for you?
ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/hdf-java/v2.6.1/hdfview/hdfview_install_macosx_intel64.zip

Thanks
--pc

Michael Jackson wrote:

Ok, So you are using a 64 bit JVM with a 64 bit library so it _should_ work. At least the archs match. Maybe the hdfview libraries were built on 10.6 and did not have the -mmacosx-version-min=10.5 set correctly?

Dunno.
--
Mike Jackson <www.bluequartz.net>

On Apr 13, 2010, at 10:21 AM, George N. White III wrote:

On Tue, Apr 13, 2010 at 11:18 AM, Michael Jackson >>>>>>>> <mike.jackson@bluequartz.net> wrote:

try the following:

file /Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib

$ file /Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: Mach-O 64-bit
bundle x86_64

and report the output back to the list.
___________________________________________________________
Mike Jackson www.bluequartz.net
Principal Software Engineer mike.jackson@bluequartz.net
BlueQuartz Software Dayton, Ohio

On Apr 13, 2010, at 9:44 AM, Peter Cao wrote:

It seems that you have 32-bit java on your system. You should use the
32-bit hdfview.

A 64-bit java will look like this:
$ java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)

George N. White III wrote:

Had an older version running, but I can't get hdf-java 2.6.1 release
(March 5, 2010) to run on
Mac OS 10.5.8.

$ uname -a
Darwin <hostname> 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15
16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

$ /usr/bin/java -fullversion
java full version "1.6.0_17-b04-248"

The 64-bit version gave:

java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview64/lib/macosx/libjhdf5.jnilib: unknown
required load command 0x80000022
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: unknown required
load command 0x80000022

I think this indicates that the jnilib was build for Snow Leopard

The 32-bit version gave:

hdfview
java.lang.UnsatisfiedLinkError:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: no suitable
image found. Did find:
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture
/Applications/thg/hdfview/lib/macosx/libjhdf5.jnilib: mach-o, but
wrong architecture

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

--
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

--
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

--
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org