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

not sure what happened to my last email , here's hopefully a readable one




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 file


CMakeLists.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.txt


Also, 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 directory



this seems to be because this file is not located in the


HDF5_INCLUDE_DIR


I specified ,so I had to put it there to avoid the error



Phew ....




------
Pedro Vicente, Earth System Science
University of California, Irvine
http://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: Friday, April 19, 2013 1:50 AM
Subject: Re: [netcdfgroup] [Hdf-forum] netCDF 4.3 Release Candidateavailable--- 
CMake build in Windows


> 
> _______________________________________________
> 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: