nexusformat / code

NeXus API code and helper applications
GNU Lesser General Public License v2.1
12 stars 16 forks source link

Make failure on 4.2rc4 (Mac OS X) #163

Closed stuartcampbell closed 10 years ago

stuartcampbell commented 10 years ago

Original reporter: rayosborn

I'm attempting to do a compilation from source on Mac OS X 10.5.6 but the Make stage fails to find the SZIP library.

Building NeXus with: HDF4 4.2.4 installed in /usr/local, HDF5 1.6.4 in /sw, with SZ 2.1 in /usr/local (and /sw), I get

libtool: link: warning: library /usr/local/lib//libmfhdf.la' was moved. grep: /Users/epourmal/Working/lib/SZIP/lib/libsz.la: No such file or directory sed: /Users/epourmal/Working/lib/SZIP/lib/libsz.la: No such file or directory libtool: link:/Users/epourmal/Working/lib/SZIP/lib/libsz.la' is not a valid libtool archive

I'm enclosing piped text from the configure and make commands (though I didn't pipe the above error message).

stuartcampbell commented 10 years ago

Original reporter: mkoennecke

Ray,

nice to hear from you again. Can you run: find /usr/local -name "libsz*" ? I want to figure out if the sz library is at all installed on your system. Because, sz needs to be installed separatly and is required for hdf4. If that library is missing, does an install of libsz fix the problem?

Mark

stuartcampbell commented 10 years ago

Original reporter: rayosborn

The libraries are installed - here's the output from the find command:

/usr/local/lib/libsz.2.0.0.dylib /usr/local/lib/libsz.2.dylib /usr/local/lib/libsz.a /usr/local/lib/libsz.a~ /usr/local/lib/libsz.dylib /usr/local/lib/libsz.la /usr/local/lib/libsz.la~

The files with ~ added are ones that I had installed earlier from binaries supplied by HDF (of course now renamed), but I then reinstalled SZ from source because I was suspicious of the reference to "/Users/epourmal/Working/lib/SZIP/lib" in the libtool error. This is presumably some hangover from Elena's build of the library at UIUC, but I don't know where the reference is embedded.

stuartcampbell commented 10 years ago

Original reporter: FreddieAkeroyd

(In [1239]) Fixes for static library build on mac.

Refs #163.

stuartcampbell commented 10 years ago

Original reporter: FreddieAkeroyd

Ray, if you download

http://download.nexusformat.org/kits/nexus-trunk-i686-apple-darwin9.6.0.tar.gz

and untar it from the root directory, it should create

/usr/local/{bin,lib,include} directories with nexus libraries /Library/Python/2.5/site-packages/nxs directory with the nexus python interface

The nexus libraries are statically linked with hdf4, hdf5 and mxml – there should be no need for you to have hdf4, hdf5 or mxml installed on your computer for everything to operate

If that seems to work OK, I'll set about putting it into a proper MAC installer and doing a PowerPC version too

Regards,

Freddie

stuartcampbell commented 10 years ago

Original reporter: mkoennecke

I failed to reproduce this problem on my Mac OS X machine. I think it is a problem of Rays setup.