Hi,
I am working on porting an existing windows application to mac OS X and I am stuck. I am not able to install pyhdf on my mac. [OS X 10.5.8]. I have HDF4 installed through macports (Is this a problem?).
$sudo python setup.py install
running install
running build
running config_fc
running build_src
building extension "pyhdf._hdfext" sources
running build_py
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
building 'pyhdf._hdfext' extension
compiling C sources
C compiler: gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -arch i386 -arch ppc -pipe
compile options: '-I/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/numpy/core/include -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c'
gcc -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc build/temp.macosx-10.5-i386-2.5/pyhdf/hdfext_wrap.o -lmfhdf -ldf -lsz -ljpeg -lz -o build/lib.macosx-10.5-i386-2.5/pyhdf/_hdfext.so
ld: library not found for -lmfhdf
collect2: ld returned 1 exit status
ld: library not found for -lmfhdf
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//cciKbMuA.out (No such file or directory)
ld: library not found for -lmfhdf
collect2: ld returned 1 exit status
ld: library not found for -lmfhdf
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//cciKbMuA.out (No such file or directory)
error: Command "gcc -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc build/temp.macosx-10.5-i386-2.5/pyhdf/hdfext_wrap.o -lmfhdf -ldf -lsz -ljpeg -lz -o build/lib.macosx-10.5-i386-2.5/pyhdf/_hdfext.so " failed with exit status 1
How do I fix this error: "ld: library not found for -lmfhdf" ?
Tags : pyhdf, hdf4, mac, python
Thanks