# trying to build h4toh5 tools

**URL:** <https://forum.hdfgroup.org/t/trying-to-build-h4toh5-tools/1729>\
**Category:** Hdf-forum archives\
**Created:** [May 13, 2010, 8:11pm UTC](https://forum.hdfgroup.org/t/trying-to-build-h4toh5-tools/1729 "2010-05-13T20:11:34Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Funk](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@Matt\_Funk](https://forum.hdfgroup.org/u/Matt_Funk)\
**Post date:** [May 13, 2010, 8:11pm UTC](https://forum.hdfgroup.org/t/trying-to-build-h4toh5-tools/1729/1 "2010-05-13T20:11:34Z")

</div>

Hi,

i am having problem building the h4toh5 tools on a machine. I tried the  
binaries first but that gave me a a core dump.  
Anyway, i build the hdf5-1.8.4-patch1 libs and then configured h4h5tools  
(and pointed the hdf5 build).  
The h4h5tools configures alright.

However, when i issue: make i get the following:  
gcc -DPACKAGE\_NAME=\"H4H5Tools\" -DPACKAGE\_TARNAME=\"h4h5tools\"  
-DPACKAGE\_VERSION=\"2.1.1\" -DPACKAGE\_STRING=\"H4H5Tools\ 2.1.1\"  
-DPACKAGE\_BUGREPORT=\"help@hdfgroup.org\" -DPACKAGE\_URL=\"\"  
-DPACKAGE=\"h4h5tools\" -DVERSION=\"2.1.1\" -DSTDC\_HEADERS=1  
-DHAVE\_HDF5\_H=1 -DHAVE\_LIBHDF5=1 -I.  
-I/home/mafunk/CODE/RSET/externalPackages/src/hdf5-1.8.4-patch1/hdf5/include  
-m64 -MT h4toh5anno.o -MD -MP -MF .deps/h4toh5anno.Tpo -c -o  
h4toh5anno.o h4toh5anno.c  
In file included from h4toh5main.h:43,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:  
h4toh5util.h:45:17: error: hdf.h: No such file or directory  
h4toh5util.h:46:19: error: mfhdf.h: No such file or directory  
In file included from h4toh5util.h:49,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5main.h:43,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:  
h4toh5.h:25:19: error: hfile.h: No such file or directory  
In file included from h4toh5util.h:49,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5main.h:43,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:

what am i missing?

thanks  
matt

---

<div class="post-metadata">

**Author:** ![hyoklee](https://forum.hdfgroup.org/user_avatar/forum.hdfgroup.org/hyoklee/32/1528_2.png) [@hyoklee](https://forum.hdfgroup.org/u/hyoklee)\
**Post date:** [May 13, 2010, 8:20pm UTC](https://forum.hdfgroup.org/t/trying-to-build-h4toh5-tools/1729/2 "2010-05-13T20:20:31Z")

</div>

Hi, Matt!

You may want to try '%make CC=/path/to/hdf4\_install\_dir/bin/h4cc' and see if  
it works.

> **···**
>
> --  
> +1(217)265-7710  
> [http://hdfeos.org](http://hdfeos.org)
> 
> -----Original Message-----  
> From: [hdf-forum-bounces@hdfgroup.org](mailto:hdf-forum-bounces@hdfgroup.org) [[mailto:hdf-forum-bounces@hdfgroup.org](mailto:hdf-forum-bounces@hdfgroup.org)]  
> On Behalf Of Matt Funk  
> Sent: Thursday, May 13, 2010 3:12 PM  
> To: HDF Users Discussion List  
> Subject: [Hdf-forum] trying to build h4toh5 tools
> 
> Hi,
> 
> i am having problem building the h4toh5 tools on a machine. I tried the  
> binaries first but that gave me a a core dump.  
> Anyway, i build the hdf5-1.8.4-patch1 libs and then configured h4h5tools  
> (and pointed the hdf5 build).  
> The h4h5tools configures alright.
> 
> However, when i issue: make i get the following:  
> gcc -DPACKAGE\_NAME=\"H4H5Tools\" -DPACKAGE\_TARNAME=\"h4h5tools\"  
> -DPACKAGE\_VERSION=\"2.1.1\" -DPACKAGE\_STRING=\"H4H5Tools\ 2.1.1\"  
> -DPACKAGE\_BUGREPORT=\"help@hdfgroup.org\" -DPACKAGE\_URL=\"\"  
> -DPACKAGE=\"h4h5tools\" -DVERSION=\"2.1.1\" -DSTDC\_HEADERS=1  
> -DHAVE\_HDF5\_H=1 -DHAVE\_LIBHDF5=1 -I.  
> -I/home/mafunk/CODE/RSET/externalPackages/src/hdf5-1.8.4-patch1/hdf5/include
> 
> -m64 -MT h4toh5anno.o -MD -MP -MF .deps/h4toh5anno.Tpo -c -o  
> h4toh5anno.o h4toh5anno.c  
> In file included from h4toh5main.h:43,  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:  
> h4toh5util.h:45:17: error: hdf.h: No such file or directory  
> h4toh5util.h:46:19: error: mfhdf.h: No such file or directory  
> In file included from h4toh5util.h:49,  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5main.h:43,  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:  
> h4toh5.h:25:19: error: hfile.h: No such file or directory  
> In file included from h4toh5util.h:49,  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5main.h:43,  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:
> 
> what am i missing?
> 
> thanks  
> matt
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> Hdf-forum is for HDF software users discussion.  
> [Hdf-forum@hdfgroup.org](mailto:Hdf-forum@hdfgroup.org)  
> [http://mail.hdfgroup.org/mailman/listinfo/hdf-forum\_hdfgroup.org](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)

---

<div class="post-metadata">

**Author:** ![Matt\_Funk](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@Matt\_Funk](https://forum.hdfgroup.org/u/Matt_Funk)\
**Post date:** [May 13, 2010, 8:35pm UTC](https://forum.hdfgroup.org/t/trying-to-build-h4toh5-tools/1729/3 "2010-05-13T20:35:18Z")

</div>

Thanks for the reply.

so wait though, do i need to point the configure to the hdf4 or hdf5  
library?  
Currently i am pointing it to the hdf5 library (in fact i haven't even  
build the hdf4 library)

thanks  
matt

> **···**
>
> On 5/13/2010 2:20 PM, H. Joe Lee wrote:
> 
> > Hi, Matt!
> > 
> > You may want to try '%make CC=/path/to/hdf4\_install\_dir/bin/h4cc' and see if  
> > it works.
> > 
> > --  
> > +1(217)265-7710  
> > [http://hdfeos.org](http://hdfeos.org)
> > 
> > -----Original Message-----  
> > From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org]  
> > On Behalf Of Matt Funk  
> > Sent: Thursday, May 13, 2010 3:12 PM  
> > To: HDF Users Discussion List  
> > Subject: [Hdf-forum] trying to build h4toh5 tools
> > 
> > Hi,
> > 
> > i am having problem building the h4toh5 tools on a machine. I tried the  
> > binaries first but that gave me a a core dump.  
> > Anyway, i build the hdf5-1.8.4-patch1 libs and then configured h4h5tools  
> > (and pointed the hdf5 build).  
> > The h4h5tools configures alright.
> > 
> > However, when i issue: make i get the following:  
> > gcc -DPACKAGE\_NAME=\"H4H5Tools\" -DPACKAGE\_TARNAME=\"h4h5tools\"  
> > -DPACKAGE\_VERSION=\"2.1.1\" -DPACKAGE\_STRING=\"H4H5Tools\ 2.1.1\"  
> > -DPACKAGE\_BUGREPORT=\"help@hdfgroup.org\" -DPACKAGE\_URL=\"\"  
> > -DPACKAGE=\"h4h5tools\" -DVERSION=\"2.1.1\" -DSTDC\_HEADERS=1  
> > -DHAVE\_HDF5\_H=1 -DHAVE\_LIBHDF5=1 -I.  
> > -I/home/mafunk/CODE/RSET/externalPackages/src/hdf5-1.8.4-patch1/hdf5/include
> > 
> > -m64 -MT h4toh5anno.o -MD -MP -MF .deps/h4toh5anno.Tpo -c -o  
> > h4toh5anno.o h4toh5anno.c  
> > In file included from h4toh5main.h:43,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:  
> > h4toh5util.h:45:17: error: hdf.h: No such file or directory  
> > h4toh5util.h:46:19: error: mfhdf.h: No such file or directory  
> > In file included from h4toh5util.h:49,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5main.h:43,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:  
> > h4toh5.h:25:19: error: hfile.h: No such file or directory  
> > In file included from h4toh5util.h:49,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5main.h:43,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:
> > 
> > what am i missing?
> > 
> > thanks  
> > matt
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Hdf-forum is for HDF software users discussion.  
> > Hdf-forum@hdfgroup.org  
> > [http://mail.hdfgroup.org/mailman/listinfo/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](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)

---

<div class="post-metadata">

**Author:** ![hyoklee](https://forum.hdfgroup.org/user_avatar/forum.hdfgroup.org/hyoklee/32/1528_2.png) [@hyoklee](https://forum.hdfgroup.org/u/hyoklee)\
**Post date:** [May 13, 2010, 8:52pm UTC](https://forum.hdfgroup.org/t/trying-to-build-h4toh5-tools/1729/4 "2010-05-13T20:52:12Z")

</div>

Hi, Matt!

You need to point the configure to both hdf4 and hdf5 libraries.

Typing

&nbsp;&nbsp;&nbsp;&nbsp;%configure --help

will give

&nbsp;&nbsp;&nbsp;--with-hdfeos2=DIR Specify path to external hdfeos2 library.

option to specify the location of hdfeos2 library and the hdfeos2 library is  
built on top of the hdf4 library.

Please refer to this document for building hdfeos2 library.

[http://hdfeos.org/software/hdfeos.php#ref\_sec:hdf-eos2](http://hdfeos.org/software/hdfeos.php#ref_sec:hdf-eos2)

Regards,

> **···**
>
> -----Original Message-----  
> From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org]  
> On Behalf Of Matt Funk  
> Sent: Thursday, May 13, 2010 3:35 PM  
> To: HDF Users Discussion List  
> Subject: Re: [Hdf-forum] trying to build h4toh5 tools
> 
> Thanks for the reply.
> 
> so wait though, do i need to point the configure to the hdf4 or hdf5  
> library?  
> Currently i am pointing it to the hdf5 library (in fact i haven't even  
> build the hdf4 library)
> 
> thanks  
> matt
> 
> On 5/13/2010 2:20 PM, H. Joe Lee wrote:
> 
> > Hi, Matt!
> > 
> > You may want to try '%make CC=/path/to/hdf4\_install\_dir/bin/h4cc' and see
> 
> if
> 
> > it works.
> > 
> > --  
> > +1(217)265-7710  
> > [http://hdfeos.org](http://hdfeos.org)
> > 
> > -----Original Message-----  
> > From: hdf-forum-bounces@hdfgroup.org
> 
> [mailto:hdf-forum-bounces@hdfgroup.org]
> 
> > On Behalf Of Matt Funk  
> > Sent: Thursday, May 13, 2010 3:12 PM  
> > To: HDF Users Discussion List  
> > Subject: [Hdf-forum] trying to build h4toh5 tools
> > 
> > Hi,
> > 
> > i am having problem building the h4toh5 tools on a machine. I tried the  
> > binaries first but that gave me a a core dump.  
> > Anyway, i build the hdf5-1.8.4-patch1 libs and then configured h4h5tools  
> > (and pointed the hdf5 build).  
> > The h4h5tools configures alright.
> > 
> > However, when i issue: make i get the following:  
> > gcc -DPACKAGE\_NAME=\"H4H5Tools\" -DPACKAGE\_TARNAME=\"h4h5tools\"  
> > -DPACKAGE\_VERSION=\"2.1.1\" -DPACKAGE\_STRING=\"H4H5Tools\ 2.1.1\"  
> > -DPACKAGE\_BUGREPORT=\"help@hdfgroup.org\" -DPACKAGE\_URL=\"\"  
> > -DPACKAGE=\"h4h5tools\" -DVERSION=\"2.1.1\" -DSTDC\_HEADERS=1  
> > -DHAVE\_HDF5\_H=1 -DHAVE\_LIBHDF5=1 -I.
> 
> -I/home/mafunk/CODE/RSET/externalPackages/src/hdf5-1.8.4-patch1/hdf5/include
> 
> > -m64 -MT h4toh5anno.o -MD -MP -MF .deps/h4toh5anno.Tpo -c -o  
> > h4toh5anno.o h4toh5anno.c  
> > In file included from h4toh5main.h:43,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:  
> > h4toh5util.h:45:17: error: hdf.h: No such file or directory  
> > h4toh5util.h:46:19: error: mfhdf.h: No such file or directory  
> > In file included from h4toh5util.h:49,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5main.h:43,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:  
> > h4toh5.h:25:19: error: hfile.h: No such file or directory  
> > In file included from h4toh5util.h:49,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5main.h:43,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:
> > 
> > what am i missing?
> > 
> > thanks  
> > matt
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Hdf-forum is for HDF software users discussion.  
> > Hdf-forum@hdfgroup.org  
> > [http://mail.hdfgroup.org/mailman/listinfo/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](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)  
> > &nbsp;&nbsp;  
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Hdf-forum is for HDF software users discussion.  
> > Hdf-forum@hdfgroup.org  
> > [http://mail.hdfgroup.org/mailman/listinfo/hdf-forum\_hdfgroup.org](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)

---

<div class="post-metadata">

**Author:** ![Matt\_Funk](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@Matt\_Funk](https://forum.hdfgroup.org/u/Matt_Funk)\
**Post date:** [May 13, 2010, 9:26pm UTC](https://forum.hdfgroup.org/t/trying-to-build-h4toh5-tools/1729/5 "2010-05-13T21:26:11Z")

</div>

Hi,

how come it have to build the hdf-eos2 libraries.  
All i want to do is convert a regular hdf4 to hdf5 library

matt

> **···**
>
> On 5/13/2010 2:52 PM, H. Joe Lee wrote:
> 
> > Hi, Matt!
> > 
> > You need to point the configure to both hdf4 and hdf5 libraries.
> > 
> > Typing
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;%configure --help
> > 
> > will give
> > 
> > &nbsp;&nbsp;&nbsp;--with-hdfeos2=DIR Specify path to external hdfeos2 library.
> > 
> > option to specify the location of hdfeos2 library and the hdfeos2 library is  
> > built on top of the hdf4 library.
> > 
> > Please refer to this document for building hdfeos2 library.
> > 
> > [How to build HDF-EOS](http://hdfeos.org/software/hdfeos.php#ref_sec:hdf-eos2)
> > 
> > Regards,
> > 
> > -----Original Message-----  
> > From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org]  
> > On Behalf Of Matt Funk  
> > Sent: Thursday, May 13, 2010 3:35 PM  
> > To: HDF Users Discussion List  
> > Subject: Re: [Hdf-forum] trying to build h4toh5 tools
> > 
> > Thanks for the reply.
> > 
> > so wait though, do i need to point the configure to the hdf4 or hdf5  
> > library?  
> > Currently i am pointing it to the hdf5 library (in fact i haven't even  
> > build the hdf4 library)
> > 
> > thanks  
> > matt
> > 
> > On 5/13/2010 2:20 PM, H. Joe Lee wrote:  
> > &nbsp;&nbsp;
> > 
> > > Hi, Matt!
> > > 
> > > You may want to try '%make CC=/path/to/hdf4\_install\_dir/bin/h4cc' and see  
> > > &nbsp;&nbsp;&nbsp;&nbsp;
> > 
> > if  
> > &nbsp;&nbsp;
> > 
> > > it works.
> > > 
> > > --  
> > > +1(217)265-7710  
> > > [http://hdfeos.org](http://hdfeos.org)
> > > 
> > > -----Original Message-----  
> > > From: hdf-forum-bounces@hdfgroup.org  
> > > &nbsp;&nbsp;&nbsp;&nbsp;
> > 
> > [mailto:hdf-forum-bounces@hdfgroup.org]  
> > &nbsp;&nbsp;
> > 
> > > On Behalf Of Matt Funk  
> > > Sent: Thursday, May 13, 2010 3:12 PM  
> > > To: HDF Users Discussion List  
> > > Subject: [Hdf-forum] trying to build h4toh5 tools
> > > 
> > > Hi,
> > > 
> > > i am having problem building the h4toh5 tools on a machine. I tried the  
> > > binaries first but that gave me a a core dump.  
> > > Anyway, i build the hdf5-1.8.4-patch1 libs and then configured h4h5tools  
> > > (and pointed the hdf5 build).  
> > > The h4h5tools configures alright.
> > > 
> > > However, when i issue: make i get the following:  
> > > gcc -DPACKAGE\_NAME=\"H4H5Tools\" -DPACKAGE\_TARNAME=\"h4h5tools\"  
> > > -DPACKAGE\_VERSION=\"2.1.1\" -DPACKAGE\_STRING=\"H4H5Tools\ 2.1.1\"  
> > > -DPACKAGE\_BUGREPORT=\"help@hdfgroup.org\" -DPACKAGE\_URL=\"\"  
> > > -DPACKAGE=\"h4h5tools\" -DVERSION=\"2.1.1\" -DSTDC\_HEADERS=1  
> > > -DHAVE\_HDF5\_H=1 -DHAVE\_LIBHDF5=1 -I.
> > 
> > -I/home/mafunk/CODE/RSET/externalPackages/src/hdf5-1.8.4-patch1/hdf5/include  
> > &nbsp;&nbsp;
> > 
> > > -m64 -MT h4toh5anno.o -MD -MP -MF .deps/h4toh5anno.Tpo -c -o  
> > > h4toh5anno.o h4toh5anno.c  
> > > In file included from h4toh5main.h:43,  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:  
> > > h4toh5util.h:45:17: error: hdf.h: No such file or directory  
> > > h4toh5util.h:46:19: error: mfhdf.h: No such file or directory  
> > > In file included from h4toh5util.h:49,  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5main.h:43,  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:  
> > > h4toh5.h:25:19: error: hfile.h: No such file or directory  
> > > In file included from h4toh5util.h:49,  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5main.h:43,  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:
> > > 
> > > what am i missing?
> > > 
> > > thanks  
> > > matt
> > > 
> > > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > > Hdf-forum is for HDF software users discussion.  
> > > Hdf-forum@hdfgroup.org  
> > > [http://mail.hdfgroup.org/mailman/listinfo/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](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)  
> > > &nbsp;&nbsp;  
> > > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > > Hdf-forum is for HDF software users discussion.  
> > > Hdf-forum@hdfgroup.org  
> > > [http://mail.hdfgroup.org/mailman/listinfo/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](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)

---

<div class="post-metadata">

**Author:** ![hyoklee](https://forum.hdfgroup.org/user_avatar/forum.hdfgroup.org/hyoklee/32/1528_2.png) [@hyoklee](https://forum.hdfgroup.org/u/hyoklee)\
**Post date:** [May 13, 2010, 11:53pm UTC](https://forum.hdfgroup.org/t/trying-to-build-h4toh5-tools/1729/6 "2010-05-13T23:53:53Z")

</div>

Hi, Matt!

&nbsp;&nbsp;Building HDF-EOS2 is an option, not a requirement. However, having HDF4  
library is a must.

&nbsp;&nbsp;Here's the simplest way to configure and build h4toh5 tool if you want to  
skip building HDF-EOS2.

&nbsp;&nbsp;%./configure --with-hdf5=/path/to/hdf5\_library\_install\_prefix  
CC=/path/to/hdf4\_library\_install\_prefix/bin/h4cc  
&nbsp;&nbsp;%make

> **···**
>
> -----Original Message-----  
> From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org]  
> On Behalf Of Matt Funk  
> Sent: Thursday, May 13, 2010 4:26 PM  
> To: hdf-forum@hdfgroup.org  
> Subject: Re: [Hdf-forum] trying to build h4toh5 tools
> 
> Hi,
> 
> how come it have to build the hdf-eos2 libraries.  
> All i want to do is convert a regular hdf4 to hdf5 library
> 
> matt
> 
> On 5/13/2010 2:52 PM, H. Joe Lee wrote:
> 
> > Hi, Matt!
> > 
> > You need to point the configure to both hdf4 and hdf5 libraries.
> > 
> > Typing
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;%configure --help
> > 
> > will give
> > 
> > &nbsp;&nbsp;&nbsp;--with-hdfeos2=DIR Specify path to external hdfeos2 library.
> > 
> > option to specify the location of hdfeos2 library and the hdfeos2 library
> 
> is
> 
> > built on top of the hdf4 library.
> > 
> > Please refer to this document for building hdfeos2 library.
> > 
> > [How to build HDF-EOS](http://hdfeos.org/software/hdfeos.php#ref_sec:hdf-eos2)
> > 
> > Regards,
> > 
> > -----Original Message-----  
> > From: hdf-forum-bounces@hdfgroup.org
> 
> [mailto:hdf-forum-bounces@hdfgroup.org]
> 
> > On Behalf Of Matt Funk  
> > Sent: Thursday, May 13, 2010 3:35 PM  
> > To: HDF Users Discussion List  
> > Subject: Re: [Hdf-forum] trying to build h4toh5 tools
> > 
> > Thanks for the reply.
> > 
> > so wait though, do i need to point the configure to the hdf4 or hdf5  
> > library?  
> > Currently i am pointing it to the hdf5 library (in fact i haven't even  
> > build the hdf4 library)
> > 
> > thanks  
> > matt
> > 
> > On 5/13/2010 2:20 PM, H. Joe Lee wrote:  
> > &nbsp;&nbsp;
> > 
> > > Hi, Matt!
> > > 
> > > You may want to try '%make CC=/path/to/hdf4\_install\_dir/bin/h4cc' and see  
> > > &nbsp;&nbsp;&nbsp;&nbsp;
> > 
> > if  
> > &nbsp;&nbsp;
> > 
> > > it works.
> > > 
> > > --  
> > > +1(217)265-7710  
> > > [http://hdfeos.org](http://hdfeos.org)
> > > 
> > > -----Original Message-----  
> > > From: hdf-forum-bounces@hdfgroup.org  
> > > &nbsp;&nbsp;&nbsp;&nbsp;
> > 
> > [mailto:hdf-forum-bounces@hdfgroup.org]  
> > &nbsp;&nbsp;
> > 
> > > On Behalf Of Matt Funk  
> > > Sent: Thursday, May 13, 2010 3:12 PM  
> > > To: HDF Users Discussion List  
> > > Subject: [Hdf-forum] trying to build h4toh5 tools
> > > 
> > > Hi,
> > > 
> > > i am having problem building the h4toh5 tools on a machine. I tried the  
> > > binaries first but that gave me a a core dump.  
> > > Anyway, i build the hdf5-1.8.4-patch1 libs and then configured h4h5tools  
> > > (and pointed the hdf5 build).  
> > > The h4h5tools configures alright.
> > > 
> > > However, when i issue: make i get the following:  
> > > gcc -DPACKAGE\_NAME=\"H4H5Tools\" -DPACKAGE\_TARNAME=\"h4h5tools\"  
> > > -DPACKAGE\_VERSION=\"2.1.1\" -DPACKAGE\_STRING=\"H4H5Tools\ 2.1.1\"  
> > > -DPACKAGE\_BUGREPORT=\"help@hdfgroup.org\" -DPACKAGE\_URL=\"\"  
> > > -DPACKAGE=\"h4h5tools\" -DVERSION=\"2.1.1\" -DSTDC\_HEADERS=1  
> > > -DHAVE\_HDF5\_H=1 -DHAVE\_LIBHDF5=1 -I.
> 
> -I/home/mafunk/CODE/RSET/externalPackages/src/hdf5-1.8.4-patch1/hdf5/include
> 
> > &nbsp;&nbsp;
> > 
> > > -m64 -MT h4toh5anno.o -MD -MP -MF .deps/h4toh5anno.Tpo -c -o  
> > > h4toh5anno.o h4toh5anno.c  
> > > In file included from h4toh5main.h:43,  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:  
> > > h4toh5util.h:45:17: error: hdf.h: No such file or directory  
> > > h4toh5util.h:46:19: error: mfhdf.h: No such file or directory  
> > > In file included from h4toh5util.h:49,  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5main.h:43,  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:  
> > > h4toh5.h:25:19: error: hfile.h: No such file or directory  
> > > In file included from h4toh5util.h:49,  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5main.h:43,  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:
> > > 
> > > what am i missing?
> > > 
> > > thanks  
> > > matt
> > > 
> > > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > > Hdf-forum is for HDF software users discussion.  
> > > Hdf-forum@hdfgroup.org  
> > > [http://mail.hdfgroup.org/mailman/listinfo/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](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)  
> > > &nbsp;&nbsp;  
> > > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > > Hdf-forum is for HDF software users discussion.  
> > > Hdf-forum@hdfgroup.org  
> > > [http://mail.hdfgroup.org/mailman/listinfo/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](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)  
> > &nbsp;&nbsp;  
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Hdf-forum is for HDF software users discussion.  
> > Hdf-forum@hdfgroup.org  
> > [http://mail.hdfgroup.org/mailman/listinfo/hdf-forum\_hdfgroup.org](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)

---

<div class="post-metadata">

**Author:** ![Matt\_Funk](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@Matt\_Funk](https://forum.hdfgroup.org/u/Matt_Funk)\
**Post date:** [May 14, 2010, 2:33pm UTC](https://forum.hdfgroup.org/t/trying-to-build-h4toh5-tools/1729/7 "2010-05-14T14:33:49Z")

</div>

Hi ,

well, the configure command below is exactly what i am using (i also  
tried passing CPPFLAGS=-DH5\_USE\_16\_AP since i link against  
hdf5-1.8.4-patch1, but it makes no difference).  
However, the configure always fails with this:  
checking how make searches directories... VPATH=DIR1 DIR2 ...  
checking hdf5.h usability... yes  
checking hdf5.h presence... yes  
checking for hdf5.h... yes  
checking for H5open in -lhdf5... no  
configure: error: cannot find HDF5 library.

I guess i build the hdf5 library somehow wrong? What do i need to pass  
to it for linker to find H5open?

thanks  
matt

> **···**
>
> On 5/13/2010 5:53 PM, H. Joe Lee wrote:
> 
> > Hi, Matt!
> > 
> > &nbsp;&nbsp;Building HDF-EOS2 is an option, not a requirement. However, having HDF4  
> > library is a must.
> > 
> > &nbsp;&nbsp;Here's the simplest way to configure and build h4toh5 tool if you want to  
> > skip building HDF-EOS2.
> > 
> > &nbsp;&nbsp;%./configure --with-hdf5=/path/to/hdf5\_library\_install\_prefix  
> > CC=/path/to/hdf4\_library\_install\_prefix/bin/h4cc  
> > &nbsp;&nbsp;%make
> > 
> > -----Original Message-----  
> > From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org]  
> > On Behalf Of Matt Funk  
> > Sent: Thursday, May 13, 2010 4:26 PM  
> > To: hdf-forum@hdfgroup.org  
> > Subject: Re: [Hdf-forum] trying to build h4toh5 tools
> > 
> > Hi,
> > 
> > how come it have to build the hdf-eos2 libraries.  
> > All i want to do is convert a regular hdf4 to hdf5 library
> > 
> > matt
> > 
> > On 5/13/2010 2:52 PM, H. Joe Lee wrote:  
> > &nbsp;&nbsp;
> > 
> > > Hi, Matt!
> > > 
> > > You need to point the configure to both hdf4 and hdf5 libraries.
> > > 
> > > Typing
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;%configure --help
> > > 
> > > will give
> > > 
> > > &nbsp;&nbsp;&nbsp;--with-hdfeos2=DIR Specify path to external hdfeos2 library.
> > > 
> > > option to specify the location of hdfeos2 library and the hdfeos2 library  
> > > &nbsp;&nbsp;&nbsp;&nbsp;
> > 
> > is  
> > &nbsp;&nbsp;
> > 
> > > built on top of the hdf4 library.
> > > 
> > > Please refer to this document for building hdfeos2 library.
> > > 
> > > [How to build HDF-EOS](http://hdfeos.org/software/hdfeos.php#ref_sec:hdf-eos2)
> > > 
> > > Regards,
> > > 
> > > -----Original Message-----  
> > > From: hdf-forum-bounces@hdfgroup.org  
> > > &nbsp;&nbsp;&nbsp;&nbsp;
> > 
> > [mailto:hdf-forum-bounces@hdfgroup.org]  
> > &nbsp;&nbsp;
> > 
> > > On Behalf Of Matt Funk  
> > > Sent: Thursday, May 13, 2010 3:35 PM  
> > > To: HDF Users Discussion List  
> > > Subject: Re: [Hdf-forum] trying to build h4toh5 tools
> > > 
> > > Thanks for the reply.
> > > 
> > > so wait though, do i need to point the configure to the hdf4 or hdf5  
> > > library?  
> > > Currently i am pointing it to the hdf5 library (in fact i haven't even  
> > > build the hdf4 library)
> > > 
> > > thanks  
> > > matt
> > > 
> > > On 5/13/2010 2:20 PM, H. Joe Lee wrote:  
> > > &nbsp;&nbsp;
> > > 
> > > > Hi, Matt!
> > > > 
> > > > You may want to try '%make CC=/path/to/hdf4\_install\_dir/bin/h4cc' and see  
> > > > &nbsp;&nbsp;&nbsp;&nbsp;
> > > 
> > > if  
> > > &nbsp;&nbsp;
> > > 
> > > > it works.
> > > > 
> > > > --  
> > > > +1(217)265-7710  
> > > > [http://hdfeos.org](http://hdfeos.org)
> > > > 
> > > > -----Original Message-----  
> > > > From: hdf-forum-bounces@hdfgroup.org  
> > > > &nbsp;&nbsp;&nbsp;&nbsp;
> > > 
> > > [mailto:hdf-forum-bounces@hdfgroup.org]  
> > > &nbsp;&nbsp;
> > > 
> > > > On Behalf Of Matt Funk  
> > > > Sent: Thursday, May 13, 2010 3:12 PM  
> > > > To: HDF Users Discussion List  
> > > > Subject: [Hdf-forum] trying to build h4toh5 tools
> > > > 
> > > > Hi,
> > > > 
> > > > i am having problem building the h4toh5 tools on a machine. I tried the  
> > > > binaries first but that gave me a a core dump.  
> > > > Anyway, i build the hdf5-1.8.4-patch1 libs and then configured h4h5tools  
> > > > (and pointed the hdf5 build).  
> > > > The h4h5tools configures alright.
> > > > 
> > > > However, when i issue: make i get the following:  
> > > > gcc -DPACKAGE\_NAME=\"H4H5Tools\" -DPACKAGE\_TARNAME=\"h4h5tools\"  
> > > > -DPACKAGE\_VERSION=\"2.1.1\" -DPACKAGE\_STRING=\"H4H5Tools\ 2.1.1\"  
> > > > -DPACKAGE\_BUGREPORT=\"help@hdfgroup.org\" -DPACKAGE\_URL=\"\"  
> > > > -DPACKAGE=\"h4h5tools\" -DVERSION=\"2.1.1\" -DSTDC\_HEADERS=1  
> > > > -DHAVE\_HDF5\_H=1 -DHAVE\_LIBHDF5=1 -I.
> > 
> > -I/home/mafunk/CODE/RSET/externalPackages/src/hdf5-1.8.4-patch1/hdf5/include  
> > &nbsp;&nbsp;
> > 
> > > > -m64 -MT h4toh5anno.o -MD -MP -MF .deps/h4toh5anno.Tpo -c -o  
> > > > h4toh5anno.o h4toh5anno.c  
> > > > In file included from h4toh5main.h:43,  
> > > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:  
> > > > h4toh5util.h:45:17: error: hdf.h: No such file or directory  
> > > > h4toh5util.h:46:19: error: mfhdf.h: No such file or directory  
> > > > In file included from h4toh5util.h:49,  
> > > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5main.h:43,  
> > > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:  
> > > > h4toh5.h:25:19: error: hfile.h: No such file or directory  
> > > > In file included from h4toh5util.h:49,  
> > > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5main.h:43,  
> > > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:
> > > > 
> > > > what am i missing?
> > > > 
> > > > thanks  
> > > > matt
> > > > 
> > > > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > > > Hdf-forum is for HDF software users discussion.  
> > > > Hdf-forum@hdfgroup.org  
> > > > [http://mail.hdfgroup.org/mailman/listinfo/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](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)  
> > > > &nbsp;&nbsp;
> > > 
> > > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > > Hdf-forum is for HDF software users discussion.  
> > > Hdf-forum@hdfgroup.org  
> > > [http://mail.hdfgroup.org/mailman/listinfo/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](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)  
> > > &nbsp;&nbsp;  
> > > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > > Hdf-forum is for HDF software users discussion.  
> > > Hdf-forum@hdfgroup.org  
> > > [http://mail.hdfgroup.org/mailman/listinfo/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](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)

---

<div class="post-metadata">

**Author:** ![hyoklee](https://forum.hdfgroup.org/user_avatar/forum.hdfgroup.org/hyoklee/32/1528_2.png) [@hyoklee](https://forum.hdfgroup.org/u/hyoklee)\
**Post date:** [May 14, 2010, 3:09pm UTC](https://forum.hdfgroup.org/t/trying-to-build-h4toh5-tools/1729/8 "2010-05-14T15:09:59Z")

</div>

Hi, Matt!

I can see an 'I' is missing in your flag.

&nbsp;&nbsp;CPPFLAGS=-DH5\_USE\_16\_API

If you specified it correctly and still have no luck, please try this when  
you build the HDF5 library:

&nbsp;&nbsp;&nbsp;%./configure --prefix=/path/to/hdf5\_install\_dir  
--with-default-api-version=v16

Then, go back to h4toh5tool and try

&nbsp;&nbsp;%./configure --with-hdf5=/path/to/hdf5\_library\_install\_prefix  
CC=/path/to/hdf4\_library\_install\_prefix/bin/h4cc  
&nbsp;&nbsp;%make

> **···**
>
> -----Original Message-----  
> From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org]  
> On Behalf Of Matt Funk  
> Sent: Friday, May 14, 2010 9:34 AM  
> To: hdf-forum@hdfgroup.org  
> Subject: Re: [Hdf-forum] trying to build h4toh5 tools
> 
> Hi ,
> 
> well, the configure command below is exactly what i am using (i also  
> tried passing CPPFLAGS=-DH5\_USE\_16\_AP since i link against  
> hdf5-1.8.4-patch1, but it makes no difference).  
> However, the configure always fails with this:  
> checking how make searches directories... VPATH=DIR1 DIR2 ...  
> checking hdf5.h usability... yes  
> checking hdf5.h presence... yes  
> checking for hdf5.h... yes  
> checking for H5open in -lhdf5... no  
> configure: error: cannot find HDF5 library.
> 
> I guess i build the hdf5 library somehow wrong? What do i need to pass  
> to it for linker to find H5open?
> 
> thanks  
> matt
> 
> On 5/13/2010 5:53 PM, H. Joe Lee wrote:
> 
> > Hi, Matt!
> > 
> > &nbsp;&nbsp;Building HDF-EOS2 is an option, not a requirement. However, having HDF4  
> > library is a must.
> > 
> > &nbsp;&nbsp;Here's the simplest way to configure and build h4toh5 tool if you want
> 
> to
> 
> > skip building HDF-EOS2.
> > 
> > &nbsp;&nbsp;%./configure --with-hdf5=/path/to/hdf5\_library\_install\_prefix  
> > CC=/path/to/hdf4\_library\_install\_prefix/bin/h4cc  
> > &nbsp;&nbsp;%make
> > 
> > -----Original Message-----  
> > From: hdf-forum-bounces@hdfgroup.org
> 
> [mailto:hdf-forum-bounces@hdfgroup.org]
> 
> > On Behalf Of Matt Funk  
> > Sent: Thursday, May 13, 2010 4:26 PM  
> > To: hdf-forum@hdfgroup.org  
> > Subject: Re: [Hdf-forum] trying to build h4toh5 tools
> > 
> > Hi,
> > 
> > how come it have to build the hdf-eos2 libraries.  
> > All i want to do is convert a regular hdf4 to hdf5 library
> > 
> > matt
> > 
> > On 5/13/2010 2:52 PM, H. Joe Lee wrote:  
> > &nbsp;&nbsp;
> > 
> > > Hi, Matt!
> > > 
> > > You need to point the configure to both hdf4 and hdf5 libraries.
> > > 
> > > Typing
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;%configure --help
> > > 
> > > will give
> > > 
> > > &nbsp;&nbsp;&nbsp;--with-hdfeos2=DIR Specify path to external hdfeos2 library.
> > > 
> > > option to specify the location of hdfeos2 library and the hdfeos2 library  
> > > &nbsp;&nbsp;&nbsp;&nbsp;
> > 
> > is  
> > &nbsp;&nbsp;
> > 
> > > built on top of the hdf4 library.
> > > 
> > > Please refer to this document for building hdfeos2 library.
> > > 
> > > [How to build HDF-EOS](http://hdfeos.org/software/hdfeos.php#ref_sec:hdf-eos2)
> > > 
> > > Regards,
> > > 
> > > -----Original Message-----  
> > > From: hdf-forum-bounces@hdfgroup.org  
> > > &nbsp;&nbsp;&nbsp;&nbsp;
> > 
> > [mailto:hdf-forum-bounces@hdfgroup.org]  
> > &nbsp;&nbsp;
> > 
> > > On Behalf Of Matt Funk  
> > > Sent: Thursday, May 13, 2010 3:35 PM  
> > > To: HDF Users Discussion List  
> > > Subject: Re: [Hdf-forum] trying to build h4toh5 tools
> > > 
> > > Thanks for the reply.
> > > 
> > > so wait though, do i need to point the configure to the hdf4 or hdf5  
> > > library?  
> > > Currently i am pointing it to the hdf5 library (in fact i haven't even  
> > > build the hdf4 library)
> > > 
> > > thanks  
> > > matt
> > > 
> > > On 5/13/2010 2:20 PM, H. Joe Lee wrote:  
> > > &nbsp;&nbsp;
> > > 
> > > > Hi, Matt!
> > > > 
> > > > You may want to try '%make CC=/path/to/hdf4\_install\_dir/bin/h4cc' and
> 
> see
> 
> > > > &nbsp;&nbsp;&nbsp;&nbsp;
> > > 
> > > if  
> > > &nbsp;&nbsp;
> > > 
> > > > it works.
> > > > 
> > > > --  
> > > > +1(217)265-7710  
> > > > [http://hdfeos.org](http://hdfeos.org)
> > > > 
> > > > -----Original Message-----  
> > > > From: hdf-forum-bounces@hdfgroup.org  
> > > > &nbsp;&nbsp;&nbsp;&nbsp;
> > > 
> > > [mailto:hdf-forum-bounces@hdfgroup.org]  
> > > &nbsp;&nbsp;
> > > 
> > > > On Behalf Of Matt Funk  
> > > > Sent: Thursday, May 13, 2010 3:12 PM  
> > > > To: HDF Users Discussion List  
> > > > Subject: [Hdf-forum] trying to build h4toh5 tools
> > > > 
> > > > Hi,
> > > > 
> > > > i am having problem building the h4toh5 tools on a machine. I tried the  
> > > > binaries first but that gave me a a core dump.  
> > > > Anyway, i build the hdf5-1.8.4-patch1 libs and then configured h4h5tools  
> > > > (and pointed the hdf5 build).  
> > > > The h4h5tools configures alright.
> > > > 
> > > > However, when i issue: make i get the following:  
> > > > gcc -DPACKAGE\_NAME=\"H4H5Tools\" -DPACKAGE\_TARNAME=\"h4h5tools\"  
> > > > -DPACKAGE\_VERSION=\"2.1.1\" -DPACKAGE\_STRING=\"H4H5Tools\ 2.1.1\"  
> > > > -DPACKAGE\_BUGREPORT=\"help@hdfgroup.org\" -DPACKAGE\_URL=\"\"  
> > > > -DPACKAGE=\"h4h5tools\" -DVERSION=\"2.1.1\" -DSTDC\_HEADERS=1  
> > > > -DHAVE\_HDF5\_H=1 -DHAVE\_LIBHDF5=1 -I.
> 
> -I/home/mafunk/CODE/RSET/externalPackages/src/hdf5-1.8.4-patch1/hdf5/include
> 
> > &nbsp;&nbsp;
> > 
> > > > -m64 -MT h4toh5anno.o -MD -MP -MF .deps/h4toh5anno.Tpo -c -o  
> > > > h4toh5anno.o h4toh5anno.c  
> > > > In file included from h4toh5main.h:43,  
> > > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:  
> > > > h4toh5util.h:45:17: error: hdf.h: No such file or directory  
> > > > h4toh5util.h:46:19: error: mfhdf.h: No such file or directory  
> > > > In file included from h4toh5util.h:49,  
> > > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5main.h:43,  
> > > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:  
> > > > h4toh5.h:25:19: error: hfile.h: No such file or directory  
> > > > In file included from h4toh5util.h:49,  
> > > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5main.h:43,  
> > > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:
> > > > 
> > > > what am i missing?
> > > > 
> > > > thanks  
> > > > matt
> > > > 
> > > > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > > > Hdf-forum is for HDF software users discussion.  
> > > > Hdf-forum@hdfgroup.org  
> > > > [http://mail.hdfgroup.org/mailman/listinfo/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](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)  
> > > > &nbsp;&nbsp;
> > > 
> > > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > > Hdf-forum is for HDF software users discussion.  
> > > Hdf-forum@hdfgroup.org  
> > > [http://mail.hdfgroup.org/mailman/listinfo/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](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)  
> > > &nbsp;&nbsp;  
> > > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > > Hdf-forum is for HDF software users discussion.  
> > > Hdf-forum@hdfgroup.org  
> > > [http://mail.hdfgroup.org/mailman/listinfo/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](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)  
> > &nbsp;&nbsp;  
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Hdf-forum is for HDF software users discussion.  
> > Hdf-forum@hdfgroup.org  
> > [http://mail.hdfgroup.org/mailman/listinfo/hdf-forum\_hdfgroup.org](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)

---

<div class="post-metadata">

**Author:** ![epourmal](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/e/c67d28/32.png) [@epourmal](https://forum.hdfgroup.org/u/epourmal)\
**Post date:** [May 15, 2010, 3:25am UTC](https://forum.hdfgroup.org/t/trying-to-build-h4toh5-tools/1729/9 "2010-05-15T03:25:02Z")

</div>

Matt,

The error indicates that configure for h4toh5 cannot find hdf5 library. I think if you set your LD\_LIBRARY\_PATH to point to the directory where libhdf5.so is installed, the error will go away. You may also try the following

1.) use --disable-shared flag to build HDF5 library. If you need HDF5 just for purpose of h4toh5, then also use --with-default-api-version=v16 flag, i.e.,  
&nbsp;&nbsp;&nbsp;&nbsp;./configure --disable-shared --with-default-api-version=v16  
&nbsp;&nbsp;&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;Then run  
&nbsp;&nbsp;&nbsp;&nbsp;make  
&nbsp;&nbsp;&nbsp;&nbsp;make check  
&nbsp;&nbsp;&nbsp;&nbsp;make install  
&nbsp;&nbsp;&nbsp;&nbsp;to make sure HDF5 builds fine on your system

2) build HDF4  
&nbsp;&nbsp;./configure --with-zlib=/.... --with-jpeg=/....  
&nbsp;&nbsp;&nbsp;make  
&nbsp;&nbsp;&nbsp;make check  
&nbsp;&nbsp;&nbsp;make install

3) Use h4cc to configure h4toh5 as you did before. Use -DH5\_USE\_16\_API with h4cc if you DID NOT use --with-default-api-version=v16.

Elena

> **···**
>
> On May 14, 2010, at 9:33 AM, Matt Funk wrote:
> 
> > Hi ,
> > 
> > well, the configure command below is exactly what i am using (i also  
> > tried passing CPPFLAGS=-DH5\_USE\_16\_AP since i link against  
> > hdf5-1.8.4-patch1, but it makes no difference).  
> > However, the configure always fails with this:  
> > checking how make searches directories... VPATH=DIR1 DIR2 ...  
> > checking hdf5.h usability... yes  
> > checking hdf5.h presence... yes  
> > checking for hdf5.h... yes  
> > checking for H5open in -lhdf5... no  
> > configure: error: cannot find HDF5 library.
> > 
> > I guess i build the hdf5 library somehow wrong? What do i need to pass  
> > to it for linker to find H5open?
> > 
> > thanks  
> > matt
> > 
> > On 5/13/2010 5:53 PM, H. Joe Lee wrote:
> > 
> > > Hi, Matt!
> > > 
> > > Building HDF-EOS2 is an option, not a requirement. However, having HDF4  
> > > library is a must.
> > > 
> > > Here's the simplest way to configure and build h4toh5 tool if you want to  
> > > skip building HDF-EOS2.
> > > 
> > > %./configure --with-hdf5=/path/to/hdf5\_library\_install\_prefix  
> > > CC=/path/to/hdf4\_library\_install\_prefix/bin/h4cc  
> > > %make
> > > 
> > > -----Original Message-----  
> > > From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org]  
> > > On Behalf Of Matt Funk  
> > > Sent: Thursday, May 13, 2010 4:26 PM  
> > > To: hdf-forum@hdfgroup.org  
> > > Subject: Re: [Hdf-forum] trying to build h4toh5 tools
> > > 
> > > Hi,
> > > 
> > > how come it have to build the hdf-eos2 libraries.  
> > > All i want to do is convert a regular hdf4 to hdf5 library
> > > 
> > > matt
> > > 
> > > On 5/13/2010 2:52 PM, H. Joe Lee wrote:
> > > 
> > > > Hi, Matt!
> > > > 
> > > > You need to point the configure to both hdf4 and hdf5 libraries.
> > > > 
> > > > Typing
> > > > 
> > > > &nbsp;&nbsp;&nbsp;%configure --help
> > > > 
> > > > will give
> > > > 
> > > > &nbsp;&nbsp;--with-hdfeos2=DIR Specify path to external hdfeos2 library.
> > > > 
> > > > option to specify the location of hdfeos2 library and the hdfeos2 library
> > > 
> > > is
> > > 
> > > > built on top of the hdf4 library.
> > > > 
> > > > Please refer to this document for building hdfeos2 library.
> > > > 
> > > > [How to build HDF-EOS](http://hdfeos.org/software/hdfeos.php#ref_sec:hdf-eos2)
> > > > 
> > > > Regards,
> > > > 
> > > > -----Original Message-----  
> > > > From: hdf-forum-bounces@hdfgroup.org
> > > 
> > > [mailto:hdf-forum-bounces@hdfgroup.org]
> > > 
> > > > On Behalf Of Matt Funk  
> > > > Sent: Thursday, May 13, 2010 3:35 PM  
> > > > To: HDF Users Discussion List  
> > > > Subject: Re: [Hdf-forum] trying to build h4toh5 tools
> > > > 
> > > > Thanks for the reply.
> > > > 
> > > > so wait though, do i need to point the configure to the hdf4 or hdf5  
> > > > library?  
> > > > Currently i am pointing it to the hdf5 library (in fact i haven't even  
> > > > build the hdf4 library)
> > > > 
> > > > thanks  
> > > > matt
> > > > 
> > > > On 5/13/2010 2:20 PM, H. Joe Lee wrote:
> > > > 
> > > > > Hi, Matt!
> > > > > 
> > > > > You may want to try '%make CC=/path/to/hdf4\_install\_dir/bin/h4cc' and see
> > > > 
> > > > if
> > > > 
> > > > > it works.
> > > > > 
> > > > > --  
> > > > > +1(217)265-7710  
> > > > > [http://hdfeos.org](http://hdfeos.org)
> > > > > 
> > > > > -----Original Message-----  
> > > > > From: hdf-forum-bounces@hdfgroup.org
> > > > 
> > > > [mailto:hdf-forum-bounces@hdfgroup.org]
> > > > 
> > > > > On Behalf Of Matt Funk  
> > > > > Sent: Thursday, May 13, 2010 3:12 PM  
> > > > > To: HDF Users Discussion List  
> > > > > Subject: [Hdf-forum] trying to build h4toh5 tools
> > > > > 
> > > > > Hi,
> > > > > 
> > > > > i am having problem building the h4toh5 tools on a machine. I tried the  
> > > > > binaries first but that gave me a a core dump.  
> > > > > Anyway, i build the hdf5-1.8.4-patch1 libs and then configured h4h5tools  
> > > > > (and pointed the hdf5 build).  
> > > > > The h4h5tools configures alright.
> > > > > 
> > > > > However, when i issue: make i get the following:  
> > > > > gcc -DPACKAGE\_NAME=\"H4H5Tools\" -DPACKAGE\_TARNAME=\"h4h5tools\"  
> > > > > -DPACKAGE\_VERSION=\"2.1.1\" -DPACKAGE\_STRING=\"H4H5Tools\ 2.1.1\"  
> > > > > -DPACKAGE\_BUGREPORT=\"help@hdfgroup.org\" -DPACKAGE\_URL=\"\"  
> > > > > -DPACKAGE=\"h4h5tools\" -DVERSION=\"2.1.1\" -DSTDC\_HEADERS=1  
> > > > > -DHAVE\_HDF5\_H=1 -DHAVE\_LIBHDF5=1 -I.
> > > 
> > > -I/home/mafunk/CODE/RSET/externalPackages/src/hdf5-1.8.4-patch1/hdf5/include
> > > 
> > > > > -m64 -MT h4toh5anno.o -MD -MP -MF .deps/h4toh5anno.Tpo -c -o  
> > > > > h4toh5anno.o h4toh5anno.c  
> > > > > In file included from h4toh5main.h:43,  
> > > > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:  
> > > > > h4toh5util.h:45:17: error: hdf.h: No such file or directory  
> > > > > h4toh5util.h:46:19: error: mfhdf.h: No such file or directory  
> > > > > In file included from h4toh5util.h:49,  
> > > > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5main.h:43,  
> > > > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:  
> > > > > h4toh5.h:25:19: error: hfile.h: No such file or directory  
> > > > > In file included from h4toh5util.h:49,  
> > > > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5main.h:43,  
> > > > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:
> > > > > 
> > > > > what am i missing?
> > > > > 
> > > > > thanks  
> > > > > matt
> > > > > 
> > > > > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > > > > Hdf-forum is for HDF software users discussion.  
> > > > > Hdf-forum@hdfgroup.org  
> > > > > [http://mail.hdfgroup.org/mailman/listinfo/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](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](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](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](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](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](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)

---

<div class="post-metadata">

**Author:** ![Matt\_Funk](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@Matt\_Funk](https://forum.hdfgroup.org/u/Matt_Funk)\
**Post date:** [May 14, 2010, 4:49pm UTC](https://forum.hdfgroup.org/t/trying-to-build-h4toh5-tools/1729/10 "2010-05-14T16:49:21Z")

</div>

Hi,

i tried it and same thing. No luck. I wonder if it is linker problem?  
The following is how i configured it and the results before making the  
hdf5 libs.

configure as:  
./configure --with-default-api-version=v16

...

Compiling Options:

> **···**
>
> ------------------  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compilation Mode: production  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;C Compiler: /usr/bin/gcc (gcc-4.1.2)  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CFLAGS:  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;H5\_CFLAGS: -std=c99 -pedantic -Wall -Wextra  
> -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual  
> -Wcast-align -Wwrite-strings -Wconversion -Waggregate-return  
> -Wstrict-prototy  
> pes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls  
> -Wnested-externs -Winline -Wno-long-long -Wfloat-equal  
> -Wmissing-format-attribute -Wmissing-noreturn -Wpacked  
> -Wdisabled-optimization -Wformat  
> =2 -Wunreachable-code -Wendif-labels -Wdeclaration-after-statement  
> -Wold-style-definition -Winvalid-pch -Wvariadic-macros -Wnonnull  
> -Winit-self -Wmissing-include-dirs -Wswitch-default -Wswitch-enum -Wunused-m  
> acros -Wunsafe-loop-optimizations -Wc++-compat -Wvolatile-register-var  
> -O -fomit-frame-pointer -finline-functions  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AM\_CFLAGS:  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CPPFLAGS:  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;H5\_CPPFLAGS: -D\_POSIX\_SOURCE -DNDEBUG -UH5\_DEBUG\_API  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AM\_CPPFLAGS: -D\_LARGEFILE\_SOURCE  
> -D\_LARGEFILE64\_SOURCE -D\_FILE\_OFFSET\_BITS=64 -D\_BSD\_SOURCE  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Shared Libraries: yes  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Static Libraries: yes  
> &nbsp;&nbsp;Statically Linked Executables: no  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LDFLAGS:  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AM\_LDFLAGS:  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Extra libraries: -lz -lm  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Archiver: ar  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ranlib: ranlib  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Debugged Packages:  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;API Tracing: no
> 
> Languages:  
> ----------  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fortran: no  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;C++: no
> 
> Features:  
> ---------  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parallel HDF5: no  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;High Level library: yes  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Threadsafety: no  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default API Mapping: v16  
> With Deprecated Public Symbols: yes  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I/O filters (external): deflate(zlib)  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I/O filters (internal): shuffle,fletcher32,nbit,scaleoffset  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MPE: no  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Direct VFD: no  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dmalloc: no  
> Clear file buffers before write: yes  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Using memory checker: no  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Function Stack Tracing: no  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GPFS: no  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Strict File Format Checks: no  
> &nbsp;&nbsp;&nbsp;Optimization Instrumentation: no  
> Linux Large File Support (LFS): yes
> 
> if anyone spots anything please let me know.  
> thanks  
> matt
> 
> On 5/14/2010 9:09 AM, H. Joe Lee wrote:
> 
> > Hi, Matt!
> > 
> > I can see an 'I' is missing in your flag.
> > 
> > &nbsp;&nbsp;CPPFLAGS=-DH5\_USE\_16\_API
> > 
> > If you specified it correctly and still have no luck, please try this when  
> > you build the HDF5 library:
> > 
> > &nbsp;&nbsp;&nbsp;%./configure --prefix=/path/to/hdf5\_install\_dir  
> > --with-default-api-version=v16
> > 
> > Then, go back to h4toh5tool and try
> > 
> > &nbsp;&nbsp;%./configure --with-hdf5=/path/to/hdf5\_library\_install\_prefix  
> > CC=/path/to/hdf4\_library\_install\_prefix/bin/h4cc  
> > &nbsp;&nbsp;%make
> > 
> > -----Original Message-----  
> > From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org]  
> > On Behalf Of Matt Funk  
> > Sent: Friday, May 14, 2010 9:34 AM  
> > To: hdf-forum@hdfgroup.org  
> > Subject: Re: [Hdf-forum] trying to build h4toh5 tools
> > 
> > Hi ,
> > 
> > well, the configure command below is exactly what i am using (i also  
> > tried passing CPPFLAGS=-DH5\_USE\_16\_AP since i link against  
> > hdf5-1.8.4-patch1, but it makes no difference).  
> > However, the configure always fails with this:  
> > checking how make searches directories... VPATH=DIR1 DIR2 ...  
> > checking hdf5.h usability... yes  
> > checking hdf5.h presence... yes  
> > checking for hdf5.h... yes  
> > checking for H5open in -lhdf5... no  
> > configure: error: cannot find HDF5 library.
> > 
> > I guess i build the hdf5 library somehow wrong? What do i need to pass  
> > to it for linker to find H5open?
> > 
> > thanks  
> > matt
> > 
> > On 5/13/2010 5:53 PM, H. Joe Lee wrote:  
> > &nbsp;&nbsp;
> > 
> > > Hi, Matt!
> > > 
> > > &nbsp;&nbsp;Building HDF-EOS2 is an option, not a requirement. However, having HDF4  
> > > library is a must.
> > > 
> > > &nbsp;&nbsp;Here's the simplest way to configure and build h4toh5 tool if you want  
> > > &nbsp;&nbsp;&nbsp;&nbsp;
> > 
> > to  
> > &nbsp;&nbsp;
> > 
> > > skip building HDF-EOS2.
> > > 
> > > &nbsp;&nbsp;%./configure --with-hdf5=/path/to/hdf5\_library\_install\_prefix  
> > > CC=/path/to/hdf4\_library\_install\_prefix/bin/h4cc  
> > > &nbsp;&nbsp;%make
> > > 
> > > -----Original Message-----  
> > > From: hdf-forum-bounces@hdfgroup.org  
> > > &nbsp;&nbsp;&nbsp;&nbsp;
> > 
> > [mailto:hdf-forum-bounces@hdfgroup.org]  
> > &nbsp;&nbsp;
> > 
> > > On Behalf Of Matt Funk  
> > > Sent: Thursday, May 13, 2010 4:26 PM  
> > > To: hdf-forum@hdfgroup.org  
> > > Subject: Re: [Hdf-forum] trying to build h4toh5 tools
> > > 
> > > Hi,
> > > 
> > > how come it have to build the hdf-eos2 libraries.  
> > > All i want to do is convert a regular hdf4 to hdf5 library
> > > 
> > > matt
> > > 
> > > On 5/13/2010 2:52 PM, H. Joe Lee wrote:  
> > > &nbsp;&nbsp;
> > > 
> > > > Hi, Matt!
> > > > 
> > > > You need to point the configure to both hdf4 and hdf5 libraries.
> > > > 
> > > > Typing
> > > > 
> > > > &nbsp;&nbsp;&nbsp;&nbsp;%configure --help
> > > > 
> > > > will give
> > > > 
> > > > &nbsp;&nbsp;&nbsp;--with-hdfeos2=DIR Specify path to external hdfeos2 library.
> > > > 
> > > > option to specify the location of hdfeos2 library and the hdfeos2 library  
> > > > &nbsp;&nbsp;&nbsp;&nbsp;
> > > 
> > > is  
> > > &nbsp;&nbsp;
> > > 
> > > > built on top of the hdf4 library.
> > > > 
> > > > Please refer to this document for building hdfeos2 library.
> > > > 
> > > > [How to build HDF-EOS](http://hdfeos.org/software/hdfeos.php#ref_sec:hdf-eos2)
> > > > 
> > > > Regards,
> > > > 
> > > > -----Original Message-----  
> > > > From: hdf-forum-bounces@hdfgroup.org  
> > > > &nbsp;&nbsp;&nbsp;&nbsp;
> > > 
> > > [mailto:hdf-forum-bounces@hdfgroup.org]  
> > > &nbsp;&nbsp;
> > > 
> > > > On Behalf Of Matt Funk  
> > > > Sent: Thursday, May 13, 2010 3:35 PM  
> > > > To: HDF Users Discussion List  
> > > > Subject: Re: [Hdf-forum] trying to build h4toh5 tools
> > > > 
> > > > Thanks for the reply.
> > > > 
> > > > so wait though, do i need to point the configure to the hdf4 or hdf5  
> > > > library?  
> > > > Currently i am pointing it to the hdf5 library (in fact i haven't even  
> > > > build the hdf4 library)
> > > > 
> > > > thanks  
> > > > matt
> > > > 
> > > > On 5/13/2010 2:20 PM, H. Joe Lee wrote:  
> > > > &nbsp;&nbsp;
> > > > 
> > > > > Hi, Matt!
> > > > > 
> > > > > You may want to try '%make CC=/path/to/hdf4\_install\_dir/bin/h4cc' and  
> > > > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > 
> > see  
> > &nbsp;&nbsp;
> > 
> > > > if  
> > > > &nbsp;&nbsp;
> > > > 
> > > > > it works.
> > > > > 
> > > > > --  
> > > > > +1(217)265-7710  
> > > > > [http://hdfeos.org](http://hdfeos.org)
> > > > > 
> > > > > -----Original Message-----  
> > > > > From: hdf-forum-bounces@hdfgroup.org  
> > > > > &nbsp;&nbsp;&nbsp;&nbsp;
> > > > 
> > > > [mailto:hdf-forum-bounces@hdfgroup.org]  
> > > > &nbsp;&nbsp;
> > > > 
> > > > > On Behalf Of Matt Funk  
> > > > > Sent: Thursday, May 13, 2010 3:12 PM  
> > > > > To: HDF Users Discussion List  
> > > > > Subject: [Hdf-forum] trying to build h4toh5 tools
> > > > > 
> > > > > Hi,
> > > > > 
> > > > > i am having problem building the h4toh5 tools on a machine. I tried the  
> > > > > binaries first but that gave me a a core dump.  
> > > > > Anyway, i build the hdf5-1.8.4-patch1 libs and then configured h4h5tools  
> > > > > (and pointed the hdf5 build).  
> > > > > The h4h5tools configures alright.
> > > > > 
> > > > > However, when i issue: make i get the following:  
> > > > > gcc -DPACKAGE\_NAME=\"H4H5Tools\" -DPACKAGE\_TARNAME=\"h4h5tools\"  
> > > > > -DPACKAGE\_VERSION=\"2.1.1\" -DPACKAGE\_STRING=\"H4H5Tools\ 2.1.1\"  
> > > > > -DPACKAGE\_BUGREPORT=\"help@hdfgroup.org\" -DPACKAGE\_URL=\"\"  
> > > > > -DPACKAGE=\"h4h5tools\" -DVERSION=\"2.1.1\" -DSTDC\_HEADERS=1  
> > > > > -DHAVE\_HDF5\_H=1 -DHAVE\_LIBHDF5=1 -I.
> > 
> > -I/home/mafunk/CODE/RSET/externalPackages/src/hdf5-1.8.4-patch1/hdf5/include  
> > &nbsp;&nbsp;
> > 
> > > > > -m64 -MT h4toh5anno.o -MD -MP -MF .deps/h4toh5anno.Tpo -c -o  
> > > > > h4toh5anno.o h4toh5anno.c  
> > > > > In file included from h4toh5main.h:43,  
> > > > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:  
> > > > > h4toh5util.h:45:17: error: hdf.h: No such file or directory  
> > > > > h4toh5util.h:46:19: error: mfhdf.h: No such file or directory  
> > > > > In file included from h4toh5util.h:49,  
> > > > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5main.h:43,  
> > > > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:  
> > > > > h4toh5.h:25:19: error: hfile.h: No such file or directory  
> > > > > In file included from h4toh5util.h:49,  
> > > > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5main.h:43,  
> > > > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from h4toh5anno.c:77:
> > > > > 
> > > > > what am i missing?
> > > > > 
> > > > > thanks  
> > > > > matt
> > > > > 
> > > > > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > > > > Hdf-forum is for HDF software users discussion.  
> > > > > Hdf-forum@hdfgroup.org  
> > > > > [http://mail.hdfgroup.org/mailman/listinfo/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](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)  
> > > > > &nbsp;&nbsp;
> > > > 
> > > > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > > > Hdf-forum is for HDF software users discussion.  
> > > > Hdf-forum@hdfgroup.org  
> > > > [http://mail.hdfgroup.org/mailman/listinfo/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](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)  
> > > > &nbsp;&nbsp;
> > > 
> > > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > > Hdf-forum is for HDF software users discussion.  
> > > Hdf-forum@hdfgroup.org  
> > > [http://mail.hdfgroup.org/mailman/listinfo/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](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)  
> > > &nbsp;&nbsp;  
> > > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > > Hdf-forum is for HDF software users discussion.  
> > > Hdf-forum@hdfgroup.org  
> > > [http://mail.hdfgroup.org/mailman/listinfo/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](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)

---

<div class="post-metadata">

**Author:** ![Matt\_Funk](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@Matt\_Funk](https://forum.hdfgroup.org/u/Matt_Funk)\
**Post date:** [May 17, 2010, 3:18pm UTC](https://forum.hdfgroup.org/t/trying-to-build-h4toh5-tools/1729/11 "2010-05-17T15:18:05Z")

</div>

I finally worked

What happen was the following though. I had installed the jpeg library into a  
directory in which i had an hdf5 build with mpi support. My guess is that this  
directory was somehow hardwired into the configuration for the h4cc compiler.  
So, when it came to building the h4toh5tools it tried to link that hdf5-mpi  
build in even though i pointed to my other hdf5 build via --with-hdf5.

Anyway, sorry for all the issues and thanks  
matt

> **···**
>
> On Friday 14 May 2010, Elena Pourmal wrote:
> 
> > Matt,
> > 
> > The error indicates that configure for h4toh5 cannot find hdf5 library. I  
> > think if you set your LD\_LIBRARY\_PATH to point to the directory where  
> > libhdf5.so is installed, the error will go away. You may also try the  
> > following
> > 
> > 1.) use --disable-shared flag to build HDF5 library. If you need HDF5 just  
> > for purpose of h4toh5, then also use --with-default-api-version=v16 flag,  
> > i.e., ./configure --disable-shared --with-default-api-version=v16
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Then run  
> > &nbsp;&nbsp;&nbsp;&nbsp;make  
> > &nbsp;&nbsp;&nbsp;&nbsp;make check  
> > &nbsp;&nbsp;&nbsp;&nbsp;make install  
> > &nbsp;&nbsp;&nbsp;&nbsp;to make sure HDF5 builds fine on your system
> > 
> > 2) build HDF4  
> > &nbsp;&nbsp;./configure --with-zlib=/.... --with-jpeg=/....  
> > &nbsp;&nbsp;&nbsp;make  
> > &nbsp;&nbsp;&nbsp;make check  
> > &nbsp;&nbsp;&nbsp;make install
> > 
> > 3) Use h4cc to configure h4toh5 as you did before. Use -DH5\_USE\_16\_API with  
> > h4cc if you DID NOT use --with-default-api-version=v16.
> > 
> > Elena
> > 
> > On May 14, 2010, at 9:33 AM, Matt Funk wrote:  
> > \> Hi ,  
> > \>  
> > \> well, the configure command below is exactly what i am using (i also  
> > \> tried passing CPPFLAGS=-DH5\_USE\_16\_AP since i link against  
> > \> hdf5-1.8.4-patch1, but it makes no difference).  
> > \> However, the configure always fails with this:  
> > \> checking how make searches directories... VPATH=DIR1 DIR2 ...  
> > \> checking hdf5.h usability... yes  
> > \> checking hdf5.h presence... yes  
> > \> checking for hdf5.h... yes  
> > \> checking for H5open in -lhdf5... no  
> > \> configure: error: cannot find HDF5 library.  
> > \>  
> > \> I guess i build the hdf5 library somehow wrong? What do i need to pass  
> > \> to it for linker to find H5open?  
> > \>  
> > \> thanks  
> > \> matt  
> > \>  
> > \> On 5/13/2010 5:53 PM, H. Joe Lee wrote:  
> > \>\> Hi, Matt!  
> > \>\>  
> > \>\> Building HDF-EOS2 is an option, not a requirement. However, having HDF4  
> > \>\>  
> > \>\> library is a must.  
> > \>\>  
> > \>\> Here's the simplest way to configure and build h4toh5 tool if you want  
> > \>\> to  
> > \>\>  
> > \>\> skip building HDF-EOS2.  
> > \>\>  
> > \>\> %./configure --with-hdf5=/path/to/hdf5\_library\_install\_prefix  
> > \>\>  
> > \>\> CC=/path/to/hdf4\_library\_install\_prefix/bin/h4cc  
> > \>\>  
> > \>\> %make  
> > \>\>  
> > \>\> -----Original Message-----  
> > \>\> From: hdf-forum-bounces@hdfgroup.org  
> > \>\> [mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Matt Funk  
> > \>\> Sent: Thursday, May 13, 2010 4:26 PM  
> > \>\> To: hdf-forum@hdfgroup.org  
> > \>\> Subject: Re: [Hdf-forum] trying to build h4toh5 tools  
> > \>\>  
> > \>\> Hi,  
> > \>\>  
> > \>\> how come it have to build the hdf-eos2 libraries.  
> > \>\> All i want to do is convert a regular hdf4 to hdf5 library  
> > \>\>  
> > \>\>  
> > \>\> matt  
> > \>\>  
> > \>\> On 5/13/2010 2:52 PM, H. Joe Lee wrote:  
> > \>\>\> Hi, Matt!  
> > \>\>\>  
> > \>\>\> You need to point the configure to both hdf4 and hdf5 libraries.  
> > \>\>\>  
> > \>\>\> Typing  
> > \>\>\>  
> > \>\>\> %configure --help  
> > \>\>\>  
> > \>\>\> will give  
> > \>\>\>  
> > \>\>\> --with-hdfeos2=DIR Specify path to external hdfeos2 library.  
> > \>\>\>  
> > \>\>\> option to specify the location of hdfeos2 library and the hdfeos2  
> > \>\>\> library  
> > \>\>  
> > \>\> is  
> > \>\>  
> > \>\>\> built on top of the hdf4 library.  
> > \>\>\>  
> > \>\>\> Please refer to this document for building hdfeos2 library.  
> > \>\>\>  
> > \>\>\> [How to build HDF-EOS](http://hdfeos.org/software/hdfeos.php#ref_sec:hdf-eos2)  
> > \>\>\>  
> > \>\>\> Regards,  
> > \>\>\>  
> > \>\>\>  
> > \>\>\> -----Original Message-----  
> > \>\>\> From: hdf-forum-bounces@hdfgroup.org  
> > \>\>  
> > \>\> [mailto:hdf-forum-bounces@hdfgroup.org]  
> > \>\>  
> > \>\>\> On Behalf Of Matt Funk  
> > \>\>\> Sent: Thursday, May 13, 2010 3:35 PM  
> > \>\>\> To: HDF Users Discussion List  
> > \>\>\> Subject: Re: [Hdf-forum] trying to build h4toh5 tools  
> > \>\>\>  
> > \>\>\> Thanks for the reply.  
> > \>\>\>  
> > \>\>\> so wait though, do i need to point the configure to the hdf4 or hdf5  
> > \>\>\> library?  
> > \>\>\> Currently i am pointing it to the hdf5 library (in fact i haven't even  
> > \>\>\> build the hdf4 library)  
> > \>\>\>  
> > \>\>\> thanks  
> > \>\>\> matt  
> > \>\>\>  
> > \>\>\> On 5/13/2010 2:20 PM, H. Joe Lee wrote:  
> > \>\>\>\> Hi, Matt!  
> > \>\>\>\>  
> > \>\>\>\> You may want to try '%make CC=/path/to/hdf4\_install\_dir/bin/h4cc' and  
> > \>\>\>\> see  
> > \>\>\>  
> > \>\>\> if  
> > \>\>\>  
> > \>\>\>\> it works.  
> > \>\>\>\>  
> > \>\>\>\> --  
> > \>\>\>\> +1(217)265-7710  
> > \>\>\>\> [http://hdfeos.org](http://hdfeos.org)  
> > \>\>\>\>  
> > \>\>\>\> -----Original Message-----  
> > \>\>\>\> From: hdf-forum-bounces@hdfgroup.org  
> > \>\>\>  
> > \>\>\> [mailto:hdf-forum-bounces@hdfgroup.org]  
> > \>\>\>  
> > \>\>\>\> On Behalf Of Matt Funk  
> > \>\>\>\> Sent: Thursday, May 13, 2010 3:12 PM  
> > \>\>\>\> To: HDF Users Discussion List  
> > \>\>\>\> Subject: [Hdf-forum] trying to build h4toh5 tools  
> > \>\>\>\>  
> > \>\>\>\> Hi,  
> > \>\>\>\>  
> > \>\>\>\> i am having problem building the h4toh5 tools on a machine. I tried  
> > \>\>\>\> the binaries first but that gave me a a core dump.  
> > \>\>\>\> Anyway, i build the hdf5-1.8.4-patch1 libs and then configured  
> > \>\>\>\> h4h5tools (and pointed the hdf5 build).  
> > \>\>\>\> The h4h5tools configures alright.  
> > \>\>\>\>  
> > \>\>\>\> However, when i issue: make i get the following:  
> > \>\>\>\> gcc -DPACKAGE\_NAME=\"H4H5Tools\" -DPACKAGE\_TARNAME=\"h4h5tools\"  
> > \>\>\>\> -DPACKAGE\_VERSION=\"2.1.1\" -DPACKAGE\_STRING=\"H4H5Tools\ 2.1.1\"  
> > \>\>\>\> -DPACKAGE\_BUGREPORT=\"help@hdfgroup.org\" -DPACKAGE\_URL=\"\"  
> > \>\>\>\> -DPACKAGE=\"h4h5tools\" -DVERSION=\"2.1.1\" -DSTDC\_HEADERS=1  
> > \>\>\>\> -DHAVE\_HDF5\_H=1 -DHAVE\_LIBHDF5=1 -I.  
> > \>\>  
> > \>\> -I/home/mafunk/CODE/RSET/externalPackages/src/hdf5-1.8.4-patch1/hdf5/inc  
> > \>\> lude  
> > \>\>  
> > \>\>\>\> -m64 -MT h4toh5anno.o -MD -MP -MF .deps/h4toh5anno.Tpo -c -o  
> > \>\>\>\> h4toh5anno.o h4toh5anno.c  
> > \>\>\>\> In file included from h4toh5main.h:43,  
> > \>\>\>\>  
> > \>\>\>\> from h4toh5anno.c:77:  
> > \>\>\>\> h4toh5util.h:45:17: error: hdf.h: No such file or directory  
> > \>\>\>\> h4toh5util.h:46:19: error: mfhdf.h: No such file or directory  
> > \>\>\>\> In file included from h4toh5util.h:49,  
> > \>\>\>\>  
> > \>\>\>\> from h4toh5main.h:43,  
> > \>\>\>\>  
> > \>\>\>\> from h4toh5anno.c:77:  
> > \>\>\>\> h4toh5.h:25:19: error: hfile.h: No such file or directory  
> > \>\>\>\> In file included from h4toh5util.h:49,  
> > \>\>\>\>  
> > \>\>\>\> from h4toh5main.h:43,  
> > \>\>\>\>  
> > \>\>\>\> from h4toh5anno.c:77:  
> > \>\>\>\> what am i missing?  
> > \>\>\>\>  
> > \>\>\>\> thanks  
> > \>\>\>\> matt  
> > \>\>\>\>  
> > \>\>\>\> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > \>\>\>\> Hdf-forum is for HDF software users discussion.  
> > \>\>\>\> Hdf-forum@hdfgroup.org  
> > \>\>\>\> [http://mail.hdfgroup.org/mailman/listinfo/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](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](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](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](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](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](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](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)

---

<div class="post-metadata">

**Author:** ![gnwiii](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/g/e5b9ba/32.png) [@gnwiii](https://forum.hdfgroup.org/u/gnwiii)\
**Post date:** [May 14, 2010, 6:47pm UTC](https://forum.hdfgroup.org/t/trying-to-build-h4toh5-tools/1729/12 "2010-05-14T18:47:11Z")

</div>

If your h4cc still doesn't find the hdf(4) headers, you should check  
that the paths in h4cc are correct.

> **···**
>
> On Fri, May 14, 2010 at 1:49 PM, Matt Funk \<mafunk@nmsu.edu\> wrote:
> 
> > Hi,
> > 
> > i tried it and same thing. No luck. I wonder if it is linker problem?  
> > The following is how i configured it and the results before making the  
> > hdf5 libs.
> > 
> > configure as:  
> > ./configure --with-default-api-version=v16
> > 
> > ...
> > 
> > > > > > -m64 -MT h4toh5anno.o -MD -MP -MF .deps/h4toh5anno.Tpo -c -o  
> > > > > > h4toh5anno.o h4toh5anno.c  
> > > > > > In file included from h4toh5main.h:43,  
> > > > > > from h4toh5anno.c:77:  
> > > > > > h4toh5util.h:45:17: error: hdf.h: No such file or directory  
> > > > > > h4toh5util.h:46:19: error: mfhdf.h: No such file or directory  
> > > > > > In file included from h4toh5util.h:49,  
> > > > > > from h4toh5main.h:43,  
> > > > > > from h4toh5anno.c:77:  
> > > > > > h4toh5.h:25:19: error: hfile.h: No such file or directory  
> > > > > > In file included from h4toh5util.h:49,  
> > > > > > from h4toh5main.h:43,  
> > > > > > from h4toh5anno.c:77:
> 
> --  
> George N. White III \<aa056@chebucto.ns.ca\>  
> Head of St. Margarets Bay, Nova Scotia
