I’m having an issue configuring HDF5 1.8.19 and 1.8.20. My configuration
environment is:
+ Visual Studio 14 2015 Win64
+ Intel Visual Fortran 17
+ CMake 3.8.x
+ NMake Makefiles
When I try the install the install script will complain that it cannot find a
few files. After some debugging through the CMake code I have determined that
the issue is in places like the hl/fortran/src/CMakeLists.txt
if (WIN32)
set (MODSH_BUILD_DIR
${CMAKE_Fortran_MODULE_DIRECTORY}/shared/${CMAKE_BUILD_TYPE})
else ()
set (MODSH_BUILD_DIR ${CMAKE_Fortran_MODULE_DIRECTORY}/shared)
endif ()
That “WIN32” logic assumes a Visual Studio build. When using NMake (or most
likely anything OTHER than Visual Studio) the trailing /${CMAKE_BUILD_TYPE}
folder will NOT be present. The fix is to do:
if (MSVC_IDE)
set (MODSH_BUILD_DIR
${CMAKE_Fortran_MODULE_DIRECTORY}/shared/${CMAKE_BUILD_TYPE})
else ()
set (MODSH_BUILD_DIR ${CMAKE_Fortran_MODULE_DIRECTORY}/shared)
endif ()
Which will ONLY use that subfolder logic for Visual Studio builds. Where is the
Git repository for HDF5? I can get a patch together and submit a pull request
with the full fixes. I have not had the time to try out the 1.10.x sources so I
do NOT know if this was found and fixed for those releases.
Thanks
--
Michael A. Jackson 400 S. Pioneer Blvd
Owner, President Springboro, Ohio 45066
BlueQuartz Software, LLC EMail: [email protected]
Voice: 937-790-1601 Web: http://www.bluequartz.net
Fax: 937-746-0783
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5