[hdf-forum] Compiling C++ library under OS X 10.5 (version 1.6.9)

Mike Jackson mike.jackson at bluequartz.net
Thu Jun 11 21:59:35 EDT 2009


I just downloaded the 1.6.9 sources and I have been trying to compile
the C++ library in addition to the regular libraries. This is the
configure line that I am using:

./configure --prefix=/Users/Shared/Toolkits/hdf5 --enable-cxx==yes
--enable-shared=yes --enable-static=yes --enable-hl=yes
--enable-filters=no

and then make, make install. But the C++ library is not getting built.
Is anyone else having this problem? I was also trying to build a 64
bit version of the library by exporting CPPFLAGS="-arch x86_64" but
when I start that compiling I get the following error:

587:[mjackson at Shepard:hdf5-169]$ make
make lib
rm -f .libs/H5.lo
gcc -arch x86_64 -std=c99 -Wno-long-long -O -fomit-frame-pointer
-finline-functions -I. -I. -UH5_DEBUG_API -DNDEBUG x86_64 -arch -c
H5.c  -fno-common -DPIC -o .libs/H5.lo
gcc-4.0: Invalid arch name : -c
i686-apple-darwin9-gcc-4.0.1: make[2]: *** [H5.lo] Error 1
x86_64: No such file or directory
make[1]: *** [lib] Error 1
make: *** [all] Error 2


This is the output at the end of the configure stage:

               Compilation Mode:  Production
                     C Compiler:  gcc
                         CFLAGS:   -arch x86_64 -std=c99
-Wno-long-long -O -fomit-frame-pointer -finline-functions
                       CPPFLAGS:  -UH5_DEBUG_API -DNDEBUG x86_64 -arch
                        LDFLAGS:
                     Debug Mode:  None
               Shared Libraries:  Yes
               Static Libraries:  Yes
  Statically Linked Executables:  No
                        Tracing:  No
   Optimization Instrumentation:  No



I exported the following before configuring:

export CFLAGS="-arch x86_64"
export CPPFLAGS="-arch x86_64"

Note the reversal of the CPPFLAGS in the configure output?

Any help on this would be greatly appreciated.

Mike Jackson

----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe at hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe at hdfgroup.org.





More information about the Hdf-forum mailing list