I have downloaded and have already built szip and zlib in alternate
directories. They are built as static libraries. I then use the special -D
options to define the lib and include files. When using the following
command:
D:\Data\Projects\VC++\hdf5-1.9.168\build>cmake -C cacheinit.cmake -G "Visual
Studio 11 Win64" ..
-D"ZLIB_INCLUDE_DIR:PATH=D:\Data\Projects\VC++\zlib-1.2.8"
-D"ZLIB_LIBRARY:FILEPATH="D:\Data\Projects\VC++\zlib-1.2.8\contrib\vstudio\v
c11\x64\ZlibStatRelease\zlibstat.lib"
-D"SZIP_INCLUDE_DIR:PATH=D:\Data\Projects\VC++\szip-2.1\src"
-D"SZIP_LIBRARY:FILEPATH=D:\Data\Projects\VC++\szip-2.1\windows\static\lib\x
64\Release\libszip.lib"
When I execute the above command, Cmake does it environment evaluation, and
then ends up with the messages below.
I don't want the make build to do the szip/zlib builds, they are already
done, I want the libs to be used which I've already manually built. And I
want HDF5 C and C++ libraries built as statically linked libraries. What
changes do I require to make that happen?
After the messages below, I have included the content of my cacheinit.cmake
file.
···
===========================================================
<< a bunch of lines cut from the listing, followed by... >>
-- Checking IF your system generates wrong code for log2 routine... no
-- Checking IF alignment restrictions are strictly enforced... yes
CMake Warning at CMakeFilters.cmake:46 (FIND_PACKAGE):
Could not find a package configuration file provided by "ZLIB" with any of
the following names:
zlibConfig.cmake
zlib-config.cmake
Add the installation prefix of "ZLIB" to CMAKE_PREFIX_PATH or set
"ZLIB_DIR" to a directory containing one of the above files. If "ZLIB"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
CMakeLists.txt:692 (INCLUDE)
-- Found ZLIB:
D:/Data/Projects/VC++/zlib-1.2.8/contrib/vstudio/vc11/x64/ZlibStatRelease/zl
ibstat.lib -DSZIP_INCLUDE_DIR:PATH=D:/Data/Projects/VC
++/szip-2.1/src
-DSZIP_LIBRARY:FILEPATH=D:/Data/Projects/VC++/szip-2.1/windows/static/lib/x6
4/Release/libszip.lib (found version "1.2.8")
-- Filter ZLIB is ON
CMake Warning at CMakeFilters.cmake:90 (FIND_PACKAGE):
Could not find a package configuration file provided by "SZIP" with any of
the following names:
szipConfig.cmake
szip-config.cmake
Add the installation prefix of "SZIP" to CMAKE_PREFIX_PATH or set
"SZIP_DIR" to a directory containing one of the above files. If "SZIP"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
CMakeLists.txt:692 (INCLUDE)
-- SZip was not found. Make sure SZIP_LIBRARY and SZIP_INCLUDE_DIR are set
or set the SZIP_INSTALL environment variable.
CMake Error at CMakeFilters.cmake:109 (MESSAGE):
SZIP is Required for SZIP support in HDF5
Call Stack (most recent call first):
CMakeLists.txt:692 (INCLUDE)
-- Configuring incomplete, errors occurred!
See also
"D:/Data/Projects/VC++/hdf5-1.9.168/build/CMakeFiles/CMakeOutput.log".
See also
"D:/Data/Projects/VC++/hdf5-1.9.168/build/CMakeFiles/CMakeError.log".
=====================================================
# This is the CMakeCache file.
########################
# EXTERNAL cache entries
########################
SET (BUILD_SHARED_LIBS OFF CACHE BOOL "Build Shared Libraries" FORCE)
SET (BUILD_TESTING OFF CACHE BOOL "Build HDF5 Unit Testing" FORCE)
SET (HDF_PACKAGE_EXT "" CACHE STRING "Name of HDF package extension" FORCE)
SET (HDF5_BUILD_CPP_LIB ON CACHE BOOL "Build HDF5 C++ Library" FORCE)
SET (HDF5_BUILD_EXAMPLES OFF CACHE BOOL "Build HDF5 Library Examples" FORCE)
SET (HDF5_BUILD_FORTRAN OFF CACHE BOOL "Build FORTRAN support" FORCE)
SET (HDF5_ENABLE_F2003 OFF CACHE BOOL "Enable FORTRAN 2003 Standard" FORCE)
SET (HDF5_BUILD_HL_LIB OFF CACHE BOOL "Build HIGH Level HDF5 Library" FORCE)
SET (HDF5_BUILD_TOOLS ON CACHE BOOL "Build HDF5 Tools" FORCE)
SET (HDF5_BUILD_GENERATORS OFF CACHE BOOL "Build Test Generators" FORCE)
SET (HDF5_ENABLE_Z_LIB_SUPPORT ON CACHE BOOL "Enable Zlib Filters" FORCE)
SET (HDF5_ENABLE_SZIP_SUPPORT ON CACHE BOOL "Use SZip Filter" FORCE)
SET (HDF5_ENABLE_SZIP_ENCODING ON CACHE BOOL "Use SZip Encoding" FORCE)
SET (HDF5_ENABLE_HSIZET ON CACHE BOOL "Enable datasets larger than memory"
FORCE)
SET (HDF5_ENABLE_UNSUPPORTED OFF CACHE BOOL "Enable unsupported combinations
of configuration options" FORCE)
SET (HDF5_ENABLE_DEPRECATED_SYMBOLS OFF CACHE BOOL "Enable deprecated public
API symbols" FORCE)
SET (HDF5_ENABLE_DIRECT_VFD OFF CACHE BOOL "Build the Direct I/O Virtual
File Driver" FORCE)
SET (HDF5_ENABLE_PARALLEL OFF CACHE BOOL "Enable parallel build (requires
MPI)" FORCE)
SET (MPIEXEC_MAX_NUMPROCS "3" CACHE STRING "Minimum number of processes for
HDF parallel tests" FORCE)
SET (HDF5_BUILD_PARALLEL_ALL OFF CACHE BOOL "Build Parallel Programs" FORCE)
SET (HDF5_ENABLE_COVERAGE OFF CACHE BOOL "Enable code coverage for Libraries
and Programs" FORCE)
SET (HDF5_ENABLE_USING_MEMCHECKER OFF CACHE BOOL "Indicate that a memory
checker is used" FORCE)
SET (HDF5_DISABLE_COMPILER_WARNINGS OFF CACHE BOOL "Disable compiler
warnings" FORCE)
SET (HDF5_USE_FOLDERS ON CACHE BOOL "Enable folder grouping of projects in
IDEs." FORCE)
SET (HDF5_USE_16_API_DEFAULT OFF CACHE BOOL "Use the HDF5 1.6.x API by
default" FORCE)
SET (HDF5_USE_18_API_DEFAULT OFF CACHE BOOL "Use the HDF5 1.8.x API by
default" FORCE)
SET (HDF5_ENABLE_THREADSAFE OFF CACHE BOOL "(WINDOWS)Enable Threadsafety"
FORCE)
SET (HDF5_PACKAGE_EXTLIBS OFF CACHE BOOL "(WINDOWS)CPACK - include external
libraries" FORCE)
SET (HDF5_NO_PACKAGES ON CACHE BOOL "CPACK - Disable packaging" FORCE)
SET (HDF5_ALLOW_EXTERNAL_SUPPORT "NO" CACHE STRING "Allow External Library
Building (NO SVN TGZ)" FORCE)
SET_PROPERTY(CACHE HDF5_ALLOW_EXTERNAL_SUPPORT PROPERTY STRINGS NO SVN TGZ)
SET (ZLIB_SVN_URL "http://svn.hdfgroup.uiuc.edu/zlib/trunk" CACHE STRING
"Use ZLib from HDF repository" FORCE)
SET (SZIP_SVN_URL "http://svn.hdfgroup.uiuc.edu/szip/trunk" CACHE STRING
"Use SZip from HDF repository" FORCE)
SET (ZLIB_TGZ_NAME "ZLib.tar.gz" CACHE STRING "Use ZLib from compressed
file" FORCE)
SET (SZIP_TGZ_NAME "SZip.tar.gz" CACHE STRING "Use SZip from compressed
file" FORCE)
SET (ZLIB_PACKAGE_NAME "zlib" CACHE STRING "Name of ZLIB package" FORCE)
SET (SZIP_PACKAGE_NAME "szip" CACHE STRING "Name of SZIP package" FORCE)
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.