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,
                 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

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

-----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,
                 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

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

-----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,
                 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

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

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.

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

-----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,
                 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

_______________________________________________
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

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.

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

-----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,
                 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

_______________________________________________
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

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.

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

-----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,
                 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

_______________________________________________
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

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.

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

-----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,
                 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

_______________________________________________
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

Hi, Matt!

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

  CPPFLAGS=-DH5_USE_16_API

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

   %./configure --prefix=/path/to/hdf5_install_dir
--with-default-api-version=v16

Then, go back to h4toh5tool and try

  %./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: 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!

  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.

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

-----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,
                 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

_______________________________________________
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
  
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

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
    
    Then run
    make
    make check
    make install
    to make sure HDF5 builds fine on your system

2) build HDF4
  ./configure --with-zlib=/.... --with-jpeg=/....
   make
   make check
   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.

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

-----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,
                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

_______________________________________________
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

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

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:

···

------------------
               Compilation Mode: production
                     C Compiler: /usr/bin/gcc (gcc-4.1.2)
                         CFLAGS:
                      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
                      AM_CFLAGS:
                       CPPFLAGS:
                    H5_CPPFLAGS: -D_POSIX_SOURCE -DNDEBUG -UH5_DEBUG_API
                    AM_CPPFLAGS: -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_BSD_SOURCE
               Shared Libraries: yes
               Static Libraries: yes
  Statically Linked Executables: no
                        LDFLAGS:
                     AM_LDFLAGS:
                Extra libraries: -lz -lm
                       Archiver: ar
                         Ranlib: ranlib
              Debugged Packages:
                    API Tracing: no

Languages:
----------
                        Fortran: no
                            C++: no

Features:
---------
                  Parallel HDF5: no
             High Level library: yes
                   Threadsafety: no
            Default API Mapping: v16
With Deprecated Public Symbols: yes
         I/O filters (external): deflate(zlib)
         I/O filters (internal): shuffle,fletcher32,nbit,scaleoffset
                            MPE: no
                     Direct VFD: no
                        dmalloc: no
Clear file buffers before write: yes
           Using memory checker: no
         Function Stack Tracing: no
                           GPFS: no
      Strict File Format Checks: no
   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.

  CPPFLAGS=-DH5_USE_16_API

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

   %./configure --prefix=/path/to/hdf5_install_dir
--with-default-api-version=v16

Then, go back to h4toh5tool and try

  %./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: 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!

  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.

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

-----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,
                 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

_______________________________________________
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
  
_______________________________________________
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

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

    Then run
    make
    make check
    make install
    to make sure HDF5 builds fine on your system

2) build HDF4
  ./configure --with-zlib=/.... --with-jpeg=/....
   make
   make check
   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.
>>>
>>> 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
>>>>
>>>> -----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
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>
> _______________________________________________
> 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

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