Hi HDF Group

I am having some trouble using the Cmake build to build the latest HDF5 in Windows

What I did:

1) created a folder inside the root distribution
2) opened a command prompt
3) typed

T:\hdf5-1.8.10-patch1\build>cmake .. -D"SZIP_INCLUDE_DIR:PATH=T:\szip\src" -D"SZIP_LIBRARY:FILEPATH=T:\szip\all\lib\Debug\szlib.lib" -D"ZLIB_INCLUDE_DIR:PATH=T:\zlib-1.2.3" -D"ZLIB
_LIBRARY:FILEPATH=T:\zlib-1.2.3\projects\visualc6\Win32_LIB_Debug\zlibd.lib"


after some messages, these warnings


-- Building for: Visual Studio 10
etc
-- Configuring done
-- Generating done
CMake Warning:
 Manually-specified variables were not used by the project:
   SZIP_INCLUDE_DIR
   SZIP_LIBRARY
   ZLIB_INCLUDE_DIR
   ZLIB_LIBRARY
-- Build files have been written to: T:/hdf5-1.8.10-patch1/build

4) Opened the generated Visual Studio projects, that have a neat feature of all the HDF5 sublibraries (like H5A, H5D) having their own virtual folder (well done)
5) Build all
6) Compile errors because the zlib and szip headers were not found

2>..\..\src\H5Z.c(33): fatal error C1083: Cannot open include file: 'szlib.h': No such file or directory
2> H5Zdeflate.c
2>..\..\src\H5Zdeflate.c(35): fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory



I followed the instructions on the file /release_docs/Cmake.txt

that says

cmake -C <sourcepath>/config/cmake/cacheinit.cmake -G "<generator>" [-D<options>] <sourcepath>
       <options> is:
           * SZIP_INCLUDE_DIR:PATH=<path to szip includes directory>
           * SZIP_LIBRARY:FILEPATH=<path to szip/library file>
           * ZLIB_INCLUDE_DIR:PATH=<path to zlib includes directory>
           * ZLIB_LIBRARY:FILEPATH=<path to zlib/library file>
           * <HDF5OPTION>:BOOL=[ON | OFF]


when doing

T:\hdf5-1.8.10-patch1\build>cmake -C ../config/cmake/cacheinit.cmake
loading initial cache file ../config/cmake/cacheinit.cmake

there was this error message

CMake Error: The source directory "T:/hdf5-1.8.10-patch1/config/cmake/cacheinit.cmake" is a file, not a directory.
Specify --help for usage, or press the help button on the CMake GUI.



Thank you in advance for any help on this



------
Pedro Vicente, Earth System Science
University of California, Irvine
http://www.ess.uci.edu/

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

Reply via email to