HDF4 jpeg library installation

I am having some trouble installing HDF4 due to the jpeg library.

When I am in the HDF4 directory and type:

./configure --prefix=/usr/local/hdf4/ --with-jpeg=~/Documents/hdf-4.2.11/jpeg-6b/

I get the following error:

checking for jpeglib.h... no
configure: error: couldn't find jpeg library

but jpeglib.h is definitely located in jpeg-6b/:

Joshuas-MacBook-Pro:jpeg-6b joshuajd$ ls
#install.doc# jcmainct.o jdhuff.h jmemnobs.o rdjpgcom
#libjpeg.doc# jcmarker.c jdhuff.o jmemsys.h rdjpgcom.1
Makefile jcmarker.o jdinput.c jmorecfg.h rdjpgcom.c
README jcmaster.c jdinput.o jpegint.h rdjpgcom.o
ansi2knr.1 jcmaster.o jdmainct.c jpeglib.h rdppm.c

This is only showing a portion of the directory jpeg-6b/, but yu can definitely see jpeglib.h in the bottom row.

Admittedly, this is not the directory (I think) that I installed the jpeg library. After following the prompts and finally doing

make install

this was what I received in the terminal:

/usr/bin/install -c cjpeg /usr/local/bin/cjpeg
/usr/bin/install -c djpeg /usr/local/bin/djpeg
/usr/bin/install -c jpegtran /usr/local/bin/jpegtran
/usr/bin/install -c rdjpgcom /usr/local/bin/rdjpgcom
/usr/bin/install -c wrjpgcom /usr/local/bin/wrjpgcom
/usr/bin/install -c -m 644 ./cjpeg.1 /usr/local/man/man1/cjpeg.1
/usr/bin/install -c -m 644 ./djpeg.1 /usr/local/man/man1/djpeg.1
/usr/bin/install -c -m 644 ./jpegtran.1 /usr/local/man/man1/jpegtran.1
/usr/bin/install -c -m 644 ./rdjpgcom.1 /usr/local/man/man1/rdjpgcom.1
/usr/bin/install -c -m 644 ./wrjpgcom.1 /usr/local/man/man1/wrjpgcom.1

So I know none of these contain jpeglib.h, but this was where it installed whatever it is that it was installing... but when the configure code for hdf4 is looking for jpeglib.h, well I'm giving it the proper directory and it still can't find it.

Does anyone know how to solve this?

···

-----
Joshua J. D'Agostino
PhD student
Research School of Astronomy and Astrophysics
The Australian National University
Ph: +61 (0)422 673 081

Hi Joshua,

Could you please send the config.log file (or just check a section where configure tries to link with the jpeg library and see what the error is)?

Thank you!

Elena

···

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Elena Pourmal The HDF Group http://hdfgroup.org
1800 So. Oak St., Suite 203, Champaign IL 61820
217.531.6112
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

On Apr 5, 2016, at 6:22 PM, Joshua D'Agostino <u5696810@anu.edu.au<mailto:u5696810@anu.edu.au>> wrote:

I am having some trouble installing HDF4 due to the jpeg library.

When I am in the HDF4 directory and type:

./configure --prefix=/usr/local/hdf4/ --with-jpeg=~/Documents/hdf-4.2.11/jpeg-6b/

I get the following error:

checking for jpeglib.h... no
configure: error: couldn't find jpeg library

but jpeglib.h is definitely located in jpeg-6b/:

Joshuas-MacBook-Pro:jpeg-6b joshuajd$ ls
#install.doc# jcmainct.o jdhuff.h jmemnobs.o rdjpgcom
#libjpeg.doc# jcmarker.c jdhuff.o jmemsys.h rdjpgcom.1
Makefile jcmarker.o jdinput.c jmorecfg.h rdjpgcom.c
README jcmaster.c jdinput.o jpegint.h rdjpgcom.o
ansi2knr.1 jcmaster.o jdmainct.c jpeglib.h rdppm.c

This is only showing a portion of the directory jpeg-6b/, but yu can definitely see jpeglib.h in the bottom row.

Admittedly, this is not the directory (I think) that I installed the jpeg library. After following the prompts and finally doing

make install

this was what I received in the terminal:

/usr/bin/install -c cjpeg /usr/local/bin/cjpeg
/usr/bin/install -c djpeg /usr/local/bin/djpeg
/usr/bin/install -c jpegtran /usr/local/bin/jpegtran
/usr/bin/install -c rdjpgcom /usr/local/bin/rdjpgcom
/usr/bin/install -c wrjpgcom /usr/local/bin/wrjpgcom
/usr/bin/install -c -m 644 ./cjpeg.1 /usr/local/man/man1/cjpeg.1
/usr/bin/install -c -m 644 ./djpeg.1 /usr/local/man/man1/djpeg.1
/usr/bin/install -c -m 644 ./jpegtran.1 /usr/local/man/man1/jpegtran.1
/usr/bin/install -c -m 644 ./rdjpgcom.1 /usr/local/man/man1/rdjpgcom.1
/usr/bin/install -c -m 644 ./wrjpgcom.1 /usr/local/man/man1/wrjpgcom.1

So I know none of these contain jpeglib.h, but this was where it installed whatever it is that it was installing... but when the configure code for hdf4 is looking for jpeglib.h, well I'm giving it the proper directory and it still can't find it.

Does anyone know how to solve this?

-----
Joshua J. D'Agostino
PhD student
Research School of Astronomy and Astrophysics
The Australian National University
Ph: +61 (0)422 673 081

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org<mailto:Hdf-forum@lists.hdfgroup.org>
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

I am having some trouble installing HDF4 due to the jpeg library.

When I am in the HDF4 directory and type:

./configure --prefix=/usr/local/hdf4/
--with-jpeg=~/Documents/hdf-4.2.11/jpeg-6b/

I get the following error:

checking for jpeglib.h... no
configure: error: couldn't find jpeg library

but jpeglib.h is definitely located in jpeg-6b/:

Joshuas-MacBook-Pro:jpeg-6b joshuajd$ ls
#install.doc# jcmainct.o jdhuff.h jmemnobs.o rdjpgcom
#libjpeg.doc# jcmarker.c jdhuff.o jmemsys.h rdjpgcom.1
Makefile jcmarker.o jdinput.c jmorecfg.h rdjpgcom.c
README jcmaster.c jdinput.o jpegint.h rdjpgcom.o
ansi2knr.1 jcmaster.o jdmainct.c jpeglib.h rdppm.c

This is only showing a portion of the directory jpeg-6b/, but yu can
definitely see jpeglib.h in the bottom row.

Admittedly, this is not the directory (I think) that I installed the jpeg
library. After following the prompts and finally doing

make install

Did you run "make install-headers" and "make install-lib? In the generated
Makefile:

install-lib: libjpeg.$(A) install-headers
        $(INSTALL_LIB) libjpeg.$(A) $(libdir)/$(binprefix)libjpeg.$(A)

install-headers: jconfig.h
        $(INSTALL_DATA) jconfig.h $(includedir)/jconfig.h
        $(INSTALL_DATA) $(srcdir)/jpeglib.h $(includedir)/jpeglib.h
        $(INSTALL_DATA) $(srcdir)/jmorecfg.h $(includedir)/jmorecfg.h
        $(INSTALL_DATA) $(srcdir)/jerror.h $(includedir)/jerror.h

···

On Tue, Apr 5, 2016 at 8:22 PM, Joshua D'Agostino <u5696810@anu.edu.au> wrote:

this was what I received in the terminal:

/usr/bin/install -c cjpeg /usr/local/bin/cjpeg
/usr/bin/install -c djpeg /usr/local/bin/djpeg
/usr/bin/install -c jpegtran /usr/local/bin/jpegtran
/usr/bin/install -c rdjpgcom /usr/local/bin/rdjpgcom
/usr/bin/install -c wrjpgcom /usr/local/bin/wrjpgcom
/usr/bin/install -c -m 644 ./cjpeg.1 /usr/local/man/man1/cjpeg.1
/usr/bin/install -c -m 644 ./djpeg.1 /usr/local/man/man1/djpeg.1
/usr/bin/install -c -m 644 ./jpegtran.1 /usr/local/man/man1/jpegtran.1
/usr/bin/install -c -m 644 ./rdjpgcom.1 /usr/local/man/man1/rdjpgcom.1
/usr/bin/install -c -m 644 ./wrjpgcom.1 /usr/local/man/man1/wrjpgcom.1

So I know none of these contain jpeglib.h, but this was where it installed
whatever it is that it was installing... but when the configure code for
hdf4 is looking for jpeglib.h, well I'm giving it the proper directory and
it still can't find it.

Does anyone know how to solve this?

-----
Joshua J. D'Agostino
PhD student
Research School of Astronomy and Astrophysics
The Australian National University
Ph: +61 (0)422 673 081

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

--
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia

I see that you have "Documents" in your jpeg library path. Are you building on Windows via Cygwin or MinGW where the ~ expands into a path that contains spaces? Moving the jpeg library to a location where the path has no spaces might be something to try.

Dana Robinson
Software Engineer
The HDF Group

···

From: Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org] On Behalf Of George N. White III
Sent: Sunday, April 10, 2016 7:18 AM
To: HDF Users Discussion List <hdf-forum@lists.hdfgroup.org>
Subject: Re: [Hdf-forum] HDF4 jpeg library installation

On Tue, Apr 5, 2016 at 8:22 PM, Joshua D'Agostino <u5696810@anu.edu.au<mailto:u5696810@anu.edu.au>> wrote:
I am having some trouble installing HDF4 due to the jpeg library.

When I am in the HDF4 directory and type:

./configure --prefix=/usr/local/hdf4/ --with-jpeg=~/Documents/hdf-4.2.11/jpeg-6b/

I get the following error:

checking for jpeglib.h... no
configure: error: couldn't find jpeg library

but jpeglib.h is definitely located in jpeg-6b/:

Joshuas-MacBook-Pro:jpeg-6b joshuajd$ ls
#install.doc# jcmainct.o jdhuff.h jmemnobs.o rdjpgcom
#libjpeg.doc# jcmarker.c jdhuff.o jmemsys.h rdjpgcom.1
Makefile jcmarker.o jdinput.c jmorecfg.h rdjpgcom.c
README jcmaster.c jdinput.o jpegint.h rdjpgcom.o
ansi2knr.1 jcmaster.o jdmainct.c jpeglib.h rdppm.c

This is only showing a portion of the directory jpeg-6b/, but yu can definitely see jpeglib.h in the bottom row.

Admittedly, this is not the directory (I think) that I installed the jpeg library. After following the prompts and finally doing

make install

Did you run "make install-headers" and "make install-lib? In the generated Makefile:

install-lib: libjpeg.$(A) install-headers
        $(INSTALL_LIB) libjpeg.$(A) $(libdir)/$(binprefix)libjpeg.$(A)

install-headers: jconfig.h
        $(INSTALL_DATA) jconfig.h $(includedir)/jconfig.h
        $(INSTALL_DATA) $(srcdir)/jpeglib.h $(includedir)/jpeglib.h
        $(INSTALL_DATA) $(srcdir)/jmorecfg.h $(includedir)/jmorecfg.h
        $(INSTALL_DATA) $(srcdir)/jerror.h $(includedir)/jerror.h

this was what I received in the terminal:

/usr/bin/install -c cjpeg /usr/local/bin/cjpeg
/usr/bin/install -c djpeg /usr/local/bin/djpeg
/usr/bin/install -c jpegtran /usr/local/bin/jpegtran
/usr/bin/install -c rdjpgcom /usr/local/bin/rdjpgcom
/usr/bin/install -c wrjpgcom /usr/local/bin/wrjpgcom
/usr/bin/install -c -m 644 ./cjpeg.1 /usr/local/man/man1/cjpeg.1
/usr/bin/install -c -m 644 ./djpeg.1 /usr/local/man/man1/djpeg.1
/usr/bin/install -c -m 644 ./jpegtran.1 /usr/local/man/man1/jpegtran.1
/usr/bin/install -c -m 644 ./rdjpgcom.1 /usr/local/man/man1/rdjpgcom.1
/usr/bin/install -c -m 644 ./wrjpgcom.1 /usr/local/man/man1/wrjpgcom.1

So I know none of these contain jpeglib.h, but this was where it installed whatever it is that it was installing... but when the configure code for hdf4 is looking for jpeglib.h, well I'm giving it the proper directory and it still can't find it.

Does anyone know how to solve this?

-----
Joshua J. D'Agostino
PhD student
Research School of Astronomy and Astrophysics
The Australian National University
Ph: +61 (0)422 673 081

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org<mailto:Hdf-forum@lists.hdfgroup.org>
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

--
George N. White III <aa056@chebucto.ns.ca<mailto:aa056@chebucto.ns.ca>>
Head of St. Margarets Bay, Nova Scotia

Dear HDF-Forum,

I encounter some troubles when trying to compile the hdf library as standalone application. When checking my program with depdendency walker, it will always depend on my HDF installation. In addition this creates path problems on Windows when using 32-bit and 64-bit simultaneously.

My environment:

- Windows 7
- MSVC 2010 (SDK7.1)
- HDF 1.8.12 (both versions for 32 and 64 bit)

My MSVC settings:

- Multi-threaded Debug (/MTd)
- libraries
        hdf5.lib
        hdf5_hl.lib
        szip.lib
        zlib.lib
        hdf5_cpp.lib
        hdf5_hl_cpp.lib

Dependency Walker output for 32-bit dll claims:

c:\program files\hdf_group\hdf5\1.8.12\bin\HDF5.DLL

This obviously cannot work!

Dependency Walker output for 64-bit dll claims the same:

c:\program files\hdf_group\hdf5\1.8.12\bin\HDF5.DLL

This is not intended, since I'd prefer distribution of my program, which does not require installation of HDF5.

Does someone know, if I am missing something in MSVC settings in order to link the program statically?

Thanks and best regards,

Daniel

It's probably nothing about msvc settings, but rather which libraries
you're linking to. Msvc is weird this way. Rather than two different
extensions for different kinds of libraries, at link time you have only
.lib files. These may be either static libraries or "import libraries" -
which tell the binary which DLL to look for and all that. You probably
have import libraries in the default build of hdf5, and maybe not static
libraries. Developers often include some "s" or "static" in filenames of
static libraries. Otherwise, you should generally assume that you have an
import library until you know otherwise.

There are many good links about this on stack overflow, and probably
sources of static builds of hdf5 if they are not in the default
distribution. I'm on my phone, and linking is a pain, so I'll leave that
to you. I hope this gives you the right search terms.

Hth,
Michael

···

On Mon, Apr 11, 2016, 05:51 Daniel Rimmelspacher <danervt@hotmail.com> wrote:

Dear HDF-Forum,

I encounter some troubles when trying to compile the hdf library as
standalone application. When checking my program with depdendency walker,
it will always depend on my HDF installation. In addition this creates path
problems on Windows when using 32-bit and 64-bit simultaneously.

My environment:

- Windows 7
- MSVC 2010 (SDK7.1)
- HDF 1.8.12 (both versions for 32 and 64 bit)

My MSVC settings:

- Multi-threaded Debug (/MTd)
- libraries
        hdf5.lib
        hdf5_hl.lib
        szip.lib
        zlib.lib
        hdf5_cpp.lib
        hdf5_hl_cpp.lib

Dependency Walker output for 32-bit dll claims:

c:\program files\hdf_group\hdf5\1.8.12\bin\HDF5.DLL

This obviously cannot work!

Dependency Walker output for 64-bit dll claims the same:

c:\program files\hdf_group\hdf5\1.8.12\bin\HDF5.DLL

This is not intended, since I'd prefer distribution of my program, which
does not require installation of HDF5.

Does someone know, if I am missing something in MSVC settings in order to
link the program statically?

Thanks and best regards,

Daniel
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

How are you building the libraries. The default batch files do static
builds I believe.

···

On Mon, Apr 11, 2016 at 5:07 AM, Michael Sarahan <msarahan@gmail.com> wrote:

It's probably nothing about msvc settings, but rather which libraries
you're linking to. Msvc is weird this way. Rather than two different
extensions for different kinds of libraries, at link time you have only
.lib files. These may be either static libraries or "import libraries" -
which tell the binary which DLL to look for and all that. You probably
have import libraries in the default build of hdf5, and maybe not static
libraries. Developers often include some "s" or "static" in filenames of
static libraries. Otherwise, you should generally assume that you have an
import library until you know otherwise.

There are many good links about this on stack overflow, and probably
sources of static builds of hdf5 if they are not in the default
distribution. I'm on my phone, and linking is a pain, so I'll leave that
to you. I hope this gives you the right search terms.

Hth,
Michael

On Mon, Apr 11, 2016, 05:51 Daniel Rimmelspacher <danervt@hotmail.com> > wrote:

Dear HDF-Forum,

I encounter some troubles when trying to compile the hdf library as
standalone application. When checking my program with depdendency walker,
it will always depend on my HDF installation. In addition this creates path
problems on Windows when using 32-bit and 64-bit simultaneously.

My environment:

- Windows 7
- MSVC 2010 (SDK7.1)
- HDF 1.8.12 (both versions for 32 and 64 bit)

My MSVC settings:

- Multi-threaded Debug (/MTd)
- libraries
        hdf5.lib
        hdf5_hl.lib
        szip.lib
        zlib.lib
        hdf5_cpp.lib
        hdf5_hl_cpp.lib

Dependency Walker output for 32-bit dll claims:

c:\program files\hdf_group\hdf5\1.8.12\bin\HDF5.DLL

This obviously cannot work!

Dependency Walker output for 64-bit dll claims the same:

c:\program files\hdf_group\hdf5\1.8.12\bin\HDF5.DLL

This is not intended, since I'd prefer distribution of my program, which
does not require installation of HDF5.

Does someone know, if I am missing something in MSVC settings in order to
link the program statically?

Thanks and best regards,

Daniel
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

I' am not building the hdf5 libs by myself, but include the pre-build binaries from this source https://www.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8.12/obtain51812.html which match with my MSVC 2010 version. I also followed the instructions here https://www.hdfgroup.org/windows/faq.html, which address this issue.

[https://www.hdfgroup.org/images/hdf_logo.jpg]<https://www.hdfgroup.org/windows/faq.html>

HDF Group - HDF5<https://www.hdfgroup.org/windows/faq.html>
www.hdfgroup.org
The HDF Group is a not-for-profit corporation with the mission of sustaining the HDF technologies and supporting HDF user communities worldwide with production ...

···

________________________________
From: Hdf-forum <hdf-forum-bounces@lists.hdfgroup.org> on behalf of David <list@aue.org>
Sent: Monday, April 11, 2016 5:47 PM
To: HDF Users Discussion List
Subject: Re: [Hdf-forum] static linking with MSVC 2010

How are you building the libraries. The default batch files do static builds I believe.

On Mon, Apr 11, 2016 at 5:07 AM, Michael Sarahan <msarahan@gmail.com<mailto:msarahan@gmail.com>> wrote:

It's probably nothing about msvc settings, but rather which libraries you're linking to. Msvc is weird this way. Rather than two different extensions for different kinds of libraries, at link time you have only .lib files. These may be either static libraries or "import libraries" - which tell the binary which DLL to look for and all that. You probably have import libraries in the default build of hdf5, and maybe not static libraries. Developers often include some "s" or "static" in filenames of static libraries. Otherwise, you should generally assume that you have an import library until you know otherwise.

There are many good links about this on stack overflow, and probably sources of static builds of hdf5 if they are not in the default distribution. I'm on my phone, and linking is a pain, so I'll leave that to you. I hope this gives you the right search terms.

Hth,
Michael

On Mon, Apr 11, 2016, 05:51 Daniel Rimmelspacher <danervt@hotmail.com<mailto:danervt@hotmail.com>> wrote:

Dear HDF-Forum,

I encounter some troubles when trying to compile the hdf library as standalone application. When checking my program with depdendency walker, it will always depend on my HDF installation. In addition this creates path problems on Windows when using 32-bit and 64-bit simultaneously.

My environment:

- Windows 7
- MSVC 2010 (SDK7.1)
- HDF 1.8.12 (both versions for 32 and 64 bit)

My MSVC settings:

- Multi-threaded Debug (/MTd)
- libraries
        hdf5.lib
        hdf5_hl.lib
        szip.lib
        zlib.lib
        hdf5_cpp.lib
        hdf5_hl_cpp.lib

Dependency Walker output for 32-bit dll claims:

c:\program files\hdf_group\hdf5\1.8.12\bin\HDF5.DLL

This obviously cannot work!

Dependency Walker output for 64-bit dll claims the same:

c:\program files\hdf_group\hdf5\1.8.12\bin\HDF5.DLL

This is not intended, since I'd prefer distribution of my program, which does not require installation of HDF5.

Does someone know, if I am missing something in MSVC settings in order to link the program statically?

Thanks and best regards,

Daniel

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org<mailto:Hdf-forum@lists.hdfgroup.org>
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org<mailto:Hdf-forum@lists.hdfgroup.org>
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

I believe the download packages only include the DLL build. Hence the
"shared" label. You need to build it yourself to get static libraries.

···

On Mon, Apr 11, 2016 at 2:36 PM, Daniel Rimmelspacher <danervt@hotmail.com> wrote:

I' am not building the hdf5 libs by myself, but include the pre-build
binaries from this source
https://www.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8.12/obtain51812.html
which match with my MSVC 2010 version. I also followed the instructions
here https://www.hdfgroup.org/windows/faq.html, which address this
issue.
<https://www.hdfgroup.org/windows/faq.html>
HDF Group - HDF5 <https://www.hdfgroup.org/windows/faq.html>
www.hdfgroup.org
The HDF Group is a not-for-profit corporation with the mission of
sustaining the HDF technologies and supporting HDF user communities
worldwide with production ...

------------------------------
*From:* Hdf-forum <hdf-forum-bounces@lists.hdfgroup.org> on behalf of
David <list@aue.org>
*Sent:* Monday, April 11, 2016 5:47 PM
*To:* HDF Users Discussion List
*Subject:* Re: [Hdf-forum] static linking with MSVC 2010

How are you building the libraries. The default batch files do static
builds I believe.

On Mon, Apr 11, 2016 at 5:07 AM, Michael Sarahan <msarahan@gmail.com> > wrote:

It's probably nothing about msvc settings, but rather which libraries
you're linking to. Msvc is weird this way. Rather than two different
extensions for different kinds of libraries, at link time you have only
.lib files. These may be either static libraries or "import libraries" -
which tell the binary which DLL to look for and all that. You probably
have import libraries in the default build of hdf5, and maybe not static
libraries. Developers often include some "s" or "static" in filenames of
static libraries. Otherwise, you should generally assume that you have an
import library until you know otherwise.

There are many good links about this on stack overflow, and probably
sources of static builds of hdf5 if they are not in the default
distribution. I'm on my phone, and linking is a pain, so I'll leave that
to you. I hope this gives you the right search terms.

Hth,
Michael

On Mon, Apr 11, 2016, 05:51 Daniel Rimmelspacher <danervt@hotmail.com> >> wrote:

Dear HDF-Forum,

I encounter some troubles when trying to compile the hdf library as
standalone application. When checking my program with depdendency walker,
it will always depend on my HDF installation. In addition this creates path
problems on Windows when using 32-bit and 64-bit simultaneously.

My environment:

- Windows 7
- MSVC 2010 (SDK7.1)
- HDF 1.8.12 (both versions for 32 and 64 bit)

My MSVC settings:

- Multi-threaded Debug (/MTd)
- libraries
        hdf5.lib
        hdf5_hl.lib
        szip.lib
        zlib.lib
        hdf5_cpp.lib
        hdf5_hl_cpp.lib

Dependency Walker output for 32-bit dll claims:

c:\program files\hdf_group\hdf5\1.8.12\bin\HDF5.DLL

This obviously cannot work!

Dependency Walker output for 64-bit dll claims the same:

c:\program files\hdf_group\hdf5\1.8.12\bin\HDF5.DLL

This is not intended, since I'd prefer distribution of my program, which
does not require installation of HDF5.

Does someone know, if I am missing something in MSVC settings in order
to link the program statically?

Thanks and best regards,

Daniel
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5