USING_HDF5_VS.txt 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. ***********************************************************************
  2. * HDF5 Build and Install Suggestions for Windows and Visual Studio *
  3. * (Full Version) *
  4. ***********************************************************************
  5. These suggestions are for Visual Studio users.
  6. Instructions for building and testing HDF5 applications using CMake can
  7. be found in the USING_HDF5_CMake.txt file found in this folder.
  8. NOTE: Building applications with the dynamic/shared hdf5 libraries requires
  9. that the "H5_BUILT_AS_DYNAMIC_LIB" compile definition be used.
  10. The following two sections are helpful if you do not use CMake to build
  11. your applications.
  12. ==============================================================================================
  13. Using Visual Studio 2010 and above with HDF5 Libraries built with Visual Studio 2010 and above
  14. ==============================================================================================
  15. 1. Set up path for external libraries and headers
  16. The path settings will need to be in the project property sheets per project.
  17. Go to "Project" and select "Properties", find "Configuration Properties",
  18. and then "VC++ Directories".
  19. 1.1 If you are building on 64-bit Windows, find the "Platform" dropdown
  20. and select "x64".
  21. 1.2 Add the header path to the "Include Directories" setting.
  22. 1.3 Add the library path to the "Library Directories" setting.
  23. 1.4 Select Linker->Input and beginning with the
  24. "Additional Dependencies" line, enter the library names. The
  25. external libraries should be listed first, followed by the HDF5
  26. library, and then optionally the HDF5 High Level, Fortran or C++
  27. libraries. For example, to compile a C++ application, enter:
  28. szip.lib zlib.lib hdf5.lib hdf5_cpp.lib
  29. ==========================================================================
  30. Using Visual Studio 2008 with HDF5 Libraries built with Visual Studio 2008
  31. ==========================================================================
  32. 2. Set up the path for external libraries and headers
  33. Invoke Microsoft Visual Studio and go to "Tools" and select "Options",
  34. find "Projects", and then "VC++ Directories".
  35. 2.1 If you are building on 64-bit Windows, find the "Platform" dropdown
  36. and select "x64".
  37. 2.2 Find the box "Show directories for", choose "Include files", add the
  38. header path (i.e. c:\Program Files\HDF_Group\HDF5\1.13.x\include)
  39. to the included directories.
  40. 2.3 Find the box "Show directories for", choose "Library files", add the
  41. library path (i.e. c:\Program Files\HDF_Group\HDF5\1.13.x\lib)
  42. to the library directories.
  43. 2.4 If using Fortran libraries, you will also need to setup the path
  44. for the Intel Fortran compiler.
  45. 2.5 Select Project->Properties->Linker->Input and beginning with the
  46. "Additional Dependencies" line, enter the library names. The
  47. external libraries should be listed first, followed by the HDF5
  48. library, and then optionally the HDF5 High Level, Fortran or C++
  49. libraries. For example, to compile a C++ application, enter:
  50. szip.lib zlib.lib hdf5.lib hdf5_cpp.lib
  51. ========================================================================
  52. 3. Helpful Pointers
  53. ========================================================================
  54. 3.1 FAQ
  55. Many other common questions and hints are located online and being updated
  56. in the HDF Knowledge Base, please see:
  57. https://portal.hdfgroup.org/display/knowledge/HDF+Knowledge+Base
  58. ************************************************************************
  59. Please send email to help@hdfgroup.org for further assistance.