Re: [netcdfgroup] [Hdf-forum] netCDF 4.3 Release Candidateavailable --- CMake build in Windows

I was able to build netCDF with CMake using

cmake -D"HDF5_INCLUDE_DIR=T:\hdf5-1.8.11-pre1\src" -D"HDF5_LIB=T:\hdf5-1.8.11-pre1\build\bin\Debug\libhdf5_D.lib" -D"HDF5_HL_LIB=T:\hdf5-1.8.11-pre1\build\bin\Debug\libhdf5_hl_D.lib" -D"ZLIB_INCLUDE_DIR:PATH=T:\zlib-1.2.5" -D"ZLIB_LIBRARY:FILEPATH=T:\zlib-1.2.5\build\bin\Debug\libzlib_D.lib" -D"SZIP_INCLUDE_DIR:PATH=T:\szip-2.1\src" -D"SZIP_LIBRARY:FILEPATH=T:\szip-2.1\build\bin\Debug\libszip_D.lib" -D"ENABLE_DAP=ON" -D"BUILD_SHARED_LIBS=OFF" -D"ENABLE_DLL=OFF" -D"CURL_LIBRARY=W:\curl-7.29.0\builds\libcurl-vc10-x86-debug-static-ipv6-sspi-spnego-winssl\lib\libcurl_a_debug.lib" -D"CURL_INCLUDE_DIR=W:\curl-7.29.0\builds\libcurl-vc10-x86-debug-static-ipv6-sspi-spnego-winssl\include"..I found the needed options in the fileCMakeLists.txt MESSAGE(STATUS "Found HDF5: ${HDF5_LIB}") MESSAGE(STATUS "Found HDF5_HL: ${HDF5_HL_LIB}") MESSAGE(STATUS "Found HDF5 Includes: ${HDF5_INCLUDE_DIR}")This should be explained in COMPILE_CMake.txtAlso, I got 2 compiling errors due to missing HDF5 header files15>..\..\h5_test\tst_h_vars2.c(13): fatal error C1083: Cannot open includefile: 'H5DSpublic.h': No such file or directorythis seems to be because this file is not located in theHDF5_INCLUDE_DIRI specified ,so I had to put it there to avoid the error------Pedro Vicente, Earth System ScienceUniversity of California, Irvinehttp://www.ess.uci.edu/----- Original Message -----From: "Pedro Vicente" <pvicente@xxxxxxx>To: "Allen D Byrne" <byrn@xxxxxxxxxxxx>; <hdf-forum@xxxxxxxxxxxx>Cc: <help@xxxxxxxxxxxx>; <netcdfgroup@xxxxxxxxxxxxxxxx>Sent: Thursday, April 18, 2013 8:47 PM!
Subject: Re: [netcdfgroup] [Hdf-forum] netCDF 4.3 ReleaseCandidateavailable --- CMake build in Windows> Hi Allen, Ward>>>> CMake provides two ways to find libraries:>> 1. CMake built HDF5 - use 
FIND_PACKAGE (HDF5 NAMES ${HDF5_PACKAGE_NAME})>>    where HDF5_PACKAGE_NAME:STRING="hdf5" and ENV{HDF5_DIR}="{path to>> hdf5library}/cmake/hdf5">>> Is it possible just to use the 
 command line to build netCDF using the*source* HDF5 Cmake distribution ?>> I was able to build netCDF only with the precompiled HDF5 Cmake made*binaries* , with these 2 options>> 
-D"CMAKE_PREFIX_PATH=T:\hdf5_install_1.8.10"  -D"HDF5_ROOT_DIR=T:\hdf5_install_1.8.10\cmake\hdf5">> Now I am trying the new HDF5 release with CMake, replacing the above with>> 
"T:\hdf5-1.8.11-pre1">> but I get this error>> CMake Error at CMakeLists.txt:391 (MESSAGE):>  netCDF-4 support specified, but hdf5 libraries not found.> -- Configuring incomplete, errors 
occurred!>> Unlike the HDF5 1.8.10 binaries, the source of hdf5-1.8.11-p!
re1 the doesnot include a "cmake/hdf5" folder>> Also, the hdf5-1.8.11-
pre1  Cmake build is missing the Dimension ScalesAPI, a must have for netCDF>> Thanks>> Pedro>>> ------> Pedro Vicente, Earth System Science> University of California, Irvine> http://www.ess.uci.edu/>>> ----- Original Message -----> From: "Allen D Byrne" 
<byrn@xxxxxxxxxxxx>> To: <hdf-forum@xxxxxxxxxxxx>> Cc: "Pedro Vicente" <pvicente@xxxxxxx>; "Ward Fisher"<wfisher@xxxxxxxxxxxxxxxx>; <help@xxxxxxxxxxxx>;<netcdfgroup@xxxxxxxxxxxxxxxx>> Sent: Friday, March 29, 2013 11:49 AM> Subject: Re: 
[Hdf-forum] [netcdfgroup] netCDF 4.3 Release Candidateavailable --- CMake build in Windows>>>> CMake provides two ways to find libraries:>> 1. CMake built HDF5 - use FIND_PACKAGE (HDF5 NAMES ${HDF5_PACKAGE_NAME})>>    where HDF5_PACKAGE_NAME:STRING="hdf5" and 
ENV{HDF5_DIR}="{path to>> hdf5library}/cmake/hdf5">>>> 2. Non-cmake built HDF5 - use FIND_PACKAGE (HDF5)>>    where ENV{HDF5_ROOT}="{path to hdf5library}">>>> Allen>>>> On Friday, March 29, 2013 10:32:04 AM Pedro Vicente wrote:>>> Hi 
Ward!
>>>>>> I was able to built netCDF using the latest HDF5 binaries with Cmakeinfo>>> that I got from here>>>>>> http://www.hdfgroup.org/HDF5/release/obtain5.html>>>>>>>>> using these 2 options>>>>>> -D"CMAKE_PREFIX_PATH=T:\hdf5_install_1.8.10">>> 
-D"HDF5_ROOT_DIR=T:\hdf5_install_1.8.10\cmake\hdf5">>>>>> my next step is>>>>>> 1) Build using the same source distribution of HDF5, instead of the>>> pre-compiled binaries>>> 2) Build using a HDF5 version without Cmake information>>>>>> Is it possible to to this?>>> I noticed that the source HDF5 files do not include this folder, that 
is>>> available only in the binaries T:\hdf5_install_1.8.10\cmake\hdf5>>>>>> Ideally what woulde be needed is a way for the Cmake system to find theHDF5>>> header files location  and the name of the  library hdf5.lib... that'sall>>> Visual Studio needs...>>>  something like>>>>>> -D"MY_HDF5_HEADER_FOLDER=<etc>>>> 
-D"MY_HDF5_LIBRARY_FILE=<etc>>>>>>> thanks>>>>>>>>> ------>>> Pedro Vicente, Earth System !
Science>>> University of California, Irvine>>> http://www.ess.uci.edu/
----- Original Message ----->>> From: "Ward Fisher" <wfisher@xxxxxxxxxxxxxxxx>>>> To: "Pedro Vicente" <pvicente@xxxxxxx>>>> Cc: <netcdfgroup@xxxxxxxxxxxxxxxx>>>> Sent: Friday, March 15, 2013 8:36 AM>>> Subject: Re: [netcdfgroup] netCDF 4.3 Release Candidate available ---CMake>>> build in Windows>>>>>> > Hi Pedro,>>> 
>>>> > If your hdf5 libraries are installed in W:\hdf5_install, for example,you>>> > would specify the following argument:>>> >>>> > -DCMAKE_PREFIX_PATH=W:\hdf5_install>>> >>>> > CMake would then check this location first when looking for any headerand>>> > library files.  The netCDF build will use the zlib library includedwith>>> > the hdf5 binary 
distribution.  If you do not have this, or if it is>>> > installed elsewhere, you can specify multiple search locations thusly:>>> >>>> > -DCMAKE_PREFIX_PATH="W:\hdf5_install;W:\zlib_install".>>> >>>> > I hope this helps!>>> >>>> > -Ward>>> >>>> > On 3/14/13 7:04 PM, Pedro Vicente wrote:>>> >> Hi Ward>>> 
>>>>!
> >> I tried to build in Windows with CMake, using>>> >>>>> >>>>> >> cmake -DCMAKE_INSTALL_PREFIX=W:\netcdf_install>>> >>>>> >> I get these messages>>> >>>>> >>>>> >> -- Building for: Visual Studio 10>>> >> -- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)>>> >> -- HDF5_LIB-NOTFOUND, 
HDF5_HL_LIB-NOTFOUND, HDF5_INCLUDE_DIR-NOTFOUND>>> >> -- Could NOT find ZLIB (missing:  ZLIB_LIBRARY ZLIB_INCLUDE_DIR)>>> >>>>> >> CMake Error at CMakeLists.txt:403 (MESSAGE):>>> >>  HDF5 Support specified, cannot find ZLib.>>> >>>>> >> CMake Error: The following variables are used in this project, butthey>>> >> are set to NOTFOUND.>>> >> 
Please set them or make sure they are set and tested correctly in the>>> >> CMake files:>>> >> HDF5_INCLUDE_DIR>>> >>>>> >>   used as include directory in directory W:/netcdf_svn>>> >>   used as include directory in directory W:/netcdf_svn>>> >>   used as include directory in directory W:/netcdf_svn>>> >>   used as include directory in directory W:!
/netcdf_svn>>> >>>>> >> -- Configuring incomplete, errors occurred!>>>
>>>>> >>>>> >> How can I make the supplied CMake projects to detect my HDF5 and zlib>>> >> locations?>>> >>>>> >> Thanks>>> >>>>> >> Pedro>>> >>>>> >>>>> >> ------>>> >> Pedro Vicente, Earth System Science>>> >> University of California, Irvine>>> >> http://www.ess.uci.edu/>>> >>>>> >>>>> >> ----- Original Message ----- From: "Ward Fisher">>> >> <wfisher@xxxxxxxxxxxxxxxx>>>> >> 
To: <netcdfgroup@xxxxxxxxxxxxxxxx>>>> >> Sent: Tuesday, February 26, 2013 5:04 PM>>> >> Subject: [netcdfgroup] netCDF 4.3 Release Candidate available>>> >>>>> >>> Good afternoon all,>>> >>>>>> >>> We are officially announcing the availability of the netCDF-Clibraries>>> >>> version 4.3.0, release candidate 2.>>> >>>>>> >>> Documentation and source downloads are available at:>>> >>>>>> >>> http://www.unidata.ucar.edu/downloads/netcdf/netcdf-rc/index.jsp>>> 
>>>>>> >>> Pre-built Windows binaries are available at:>>> >>>>>> >>> http://www.unidata.ucar.edu/software/netcdf/docs_rc/winbin.html>>> >>>>>> >>>!
 The previous Windows-specific website,>>> >>> http://www.unidata.ucar.edu/netcdf/win_netcdf/ will redirect to thisnew>>> >>> location.  Please note that these pre-built libraries (both 32 &64-bit)>>> >>> are built and tested on 64-bit Windows 7 using Visual Studio 10.>>> >>>>>> >>> Highlights of the 4.3 release include:>>> >>>>>> >>> o Many bug fixes.>>> >>> o Improved DAP support.>>> 
>>> o Improved parallel-netcdf support.>>> >>> o Improved Windows support.>>> >>> o Integration of CMake, allow for Visual-Studio based builds.>>> >>>>>> >>> This release candidate is the precursor to either a new release>>> >>> candidate, or the final 4.3.0 release (depending on the number and>>> >>> severity of bugs reported).  As always, we welcome any bug reports>>> >>> and/or feedback!>>> 
>>>>>> >>> Have a great evening,>>> >>>>>> >>> -Ward>>> >>> Ward Fisher>>> >>> wfisher@xxxxxxxxxxxxxxxx>>> >>>>>> >>> _______________________________________________>>> >>> netcdfgroup mailing list>>> >!
>> netcdfgroup@xxxxxxxxxxxxxxxx>>> >>> For list information or to unsu
bscribe,  visit:>>> >>> http://www.unidata.ucar.edu/mailing_lists/>>> >>>> > _______________________________________________>>> > netcdfgroup mailing list>>> > 
netcdfgroup@xxxxxxxxxxxxxxxx>>> > For list information or to unsubscribe,  visit:>>> > http://www.unidata.ucar.edu/mailing_lists/>>>>>> _______________________________________________>>> 
Hdf-forum is for HDF software users discussion.>>> Hdf-forum@xxxxxxxxxxxx>>> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org>>>>>> _______________________________________________> 
netcdfgroup mailing list> netcdfgroup@xxxxxxxxxxxxxxxx> For list information or to unsubscribe,  visit:http://www.unidata.ucar.edu/mailing_lists/>



  • 2013 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: