[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #LCN-240709]: CMake problems
- Subject: [netCDF #LCN-240709]: CMake problems
- Date: Wed, 17 Apr 2013 17:06:22 -0600
Good evening Tim,
No problem, I'm glad you were able to get the prebuilt versions working.
When working in Windows, which compiler are you using, if I might ask?
Also, are you working within a particular environment, such as Cygwin or
MSYS/MinGW?
The good news is that Visual Studio is likely unnecessary; while we
currently provide instructions for building the C libraries with VS (as
well as VS-compatible pre-compiled C library downloads), we do not yet
have instructions for building the netCDF-Fortran libraries using Visual
Studio/the Visual Studio-compatible C libraries.
If you are working within Cygwin, you can use the 'setup.exe' package
manager to install pre-built netCDF-C and netCDF-Fortran libraries. If
you are working within MSYS/MinGW, you may build these libraries from
source much the same way you would in a Unix environment; feel free to
ask for specific instructions if this is unclear.
If you are not using either of these environments, would you mind
providing a little more information regarding your fortran compiler?
Thanks; hopefully we should be able to get this sorted out for you as
quickly as possible! Have a great evening,
-Ward
On 4/17/13 1:58 PM, Hawkins, Timothy (Tim) wrote:
> New Client Reply: CMake problems
>
> Thanks a bunch Ward for your help! I was able to successfully install the
> netCDF3 64-bit version prebuilt binary. Honestly however, I'm not sure what
> to do at this point? If I can take a moment to back up and explain what I'm
> trying to do and what my skill set is, hopefully you can help me reach my
> goal.
>
> I work in windows and write relatively simple fortran code using a text
> editor and a free fortran compiler. My programs typically read in some sort
> of text file, perform some calculations, and write out a text file to be used
> in a mapping or graphing software package. I'm competent with a computer but
> I certainly do not have the skill set that you all at Unidata have. I've
> never used Visual Studio although I have loaded a trial version on my machine
> in my unsuccessful attempts to access netCDF data.
>
> What I would like to be able to do is read in a netCDF file for my fortran
> programs. I would also be perfectly happy to use some of the netCDF
> utilities (if I understand them correctly) to spit out a text file that I
> could then use.
>
> Take home message: I'm looking for the barest of bones way to access data in
> netCDF format.
>
> Thanks so much to you and Russ for your patience and help!
> Tim
>
> **********************************************
> Timothy W. Hawkins
> Professor and Graduate Program Coordinator
> Department of Geography and Earth Science
> Shippensburg University
> 1871 Old Main Drive
> Shippensburg, PA 17257
>
> Email: address@hidden
> Phone: (717) 477-1662
> Fax: (717) 477-4029
> Web: http://www.ship.edu/geo-ess/
>
> -----Original Message-----
> From: Unidata netCDF Support [mailto:address@hidden]
> Sent: Monday, April 15, 2013 1:00 PM
> To: Hawkins, Timothy (Tim)
> Cc: address@hidden; Hawkins, Timothy (Tim)
> Subject: [netCDF #LCN-240709]: CMake problems
>
> Good morning Tim,
>
> Thank you for your patience in waiting for a response; sorry for the delay, I
> was out of the office last week.
>
> There are a couple of different ways to specify the ZLIB library for CMake.
>
> You may specify a root directory which contains the zlib libraries via the
> 'CMAKE_PREFIX_PATH' variable, e.g.
>
> "CMAKE_PREFIX_PATH=c:\Users\wfisher\share"
>
> If this were set, CMake would traverse the 'share' directory and all sub
> directories when looking for zlib (as well as any other dependency
> libraries). You may also specify the zlib library and include directory
> directly, as follows:
>
> ZLIB_LIBRARY=c:\zlib\lib\zlib.lib
> ZLIB_INCLUDE_DIR=c:\zlib_include_dir=c:\zlib\include\
>
> In the top-right quadrant of the CMake GUI, there is a button marked 'Add
> Entry'. If you select this, you will be able to specify a new variable
> 'cache entry'. When doing this, you will have to select the variable type
> from a drop-down control. The name and corresponding types would be as
> follows:
>
> CMAKE_PREFIX_PATH:PATH
> ZLIB_LIBRARY:FILEPATH
> ZLIB_INCLUDE_DIR:PATH
>
> Alternatively, if it is easier for you, we are providing the netCDF libraries
> for Windows as pre-compiled binaries, complete with dependencies, at the
> following site:
>
> http://www.unidata.ucar.edu/software/netcdf/docs_rc/winbin.html
>
> I hope this helps; please let me know if you have any more questions! I am
> still refining the CMake directions, and it is great to get feedback on
> points that are unclear.
>
> Have a great day,
>
> -Ward
>
>> Thanks Russ. I'll look for his response next week. Have a good weekend.
>>
>> Tim
>>
>> **********************************************
>> Timothy W. Hawkins
>> Professor and Graduate Program Coordinator Department of Geography and
>> Earth Science Shippensburg University
>> 1871 Old Main Drive
>> Shippensburg, PA 17257
>>
>> Email: address@hidden
>> Phone: (717) 477-1662
>> Fax: (717) 477-4029
>> Web: http://www.ship.edu/geo-ess/
>>
>>
>> -----Original Message-----
>> From: Unidata netCDF Support [mailto:address@hidden]
>> Sent: Friday, April 12, 2013 1:26 PM
>> To: Hawkins, Timothy (Tim)
>> Cc: address@hidden; Hawkins, Timothy (Tim)
>> Subject: [netCDF #LCN-240709]: CMake problems
>>
>> Tim,
>>
>>> I've disabled all the HDF5 and netCDF4 options in the cmake GUI. Based on
>>> a new configuration error message and some research, I disabled DAP. Does
>>> this seem reasonable?
>>>
>>> I'm now getting the following configuration error. I'm not sure how to
>>> "set them" as prompted by the message. There were not any check boxes that
>>> were readily obvious in the GUI. Any thoughts? Thanks so much again.
>> I'm not sure, being fairly new to CMake. Our CMake expert will be back in
>> the office next week, and he should be able to answer your question.
>>
>> --Russ
>>
>>> CMake Summary:
>>>
>>> Build Type: DEBUG
>>> Building Shared Libraries: ON
>>> Building netCDF-4: OFF
>>> Building DAP Support: OFF
>>> Building Utilities: ON
>>> Using pnetcdf: OFF,
>>> Using Parallel IO: OFF
>>> Linking against: ZLIB_LIBRARY-NOTFOUND
>>>
>>> CMake Error: The following variables are used in this project, but they are
>>> set to NOTFOUND.
>>> Please set them or make sure they are set and tested correctly in the CMake
>>> files:
>>> ZLIB_LIBRARY (ADVANCED)
>>> linked by target "netcdf" in directory
>>> C:/Users/twhawk/Documents/downloaded_programs/netcdf-4.3.0-rc3/libli
>>> b linked by target "ncgen" in directory
>>> C:/Users/twhawk/Documents/downloaded_programs/netcdf-4.3.0-rc3/ncgen
>>> linked by target "nccopy" in directory
>>> C:/Users/twhawk/Documents/downloaded_programs/netcdf-4.3.0-rc3/ncdum
>>> p linked by target "ncdump" in directory
>>> C:/Users/twhawk/Documents/downloaded_programs/netcdf-4.3.0-rc3/ncdum
>>> p
>>>
>>> Configuring incomplete, errors occurred!
>>>
>>> **********************************************
>>> Timothy W. Hawkins
>>> Professor and Graduate Program Coordinator Department of Geography
>>> and Earth Science Shippensburg University
>>> 1871 Old Main Drive
>>> Shippensburg, PA 17257
>>>
>>> Email: address@hidden
>>> Phone: (717) 477-1662
>>> Fax: (717) 477-4029
>>> Web: http://www.ship.edu/geo-ess/
>>>
>>>
>>> -----Original Message-----
>>> From: Unidata netCDF Support
>>> [mailto:address@hidden]
>>> Sent: Thursday, April 11, 2013 1:20 PM
>>> To: Hawkins, Timothy (Tim)
>>> Cc: address@hidden; Hawkins, Timothy (Tim)
>>> Subject: [netCDF #LCN-240709]: RE: Fwd: RE: unidata summer workshops
>>>
>>> Hi Tim,
>>>
>>>> Thanks for this. I've been busy with other projects so I'm just getting
>>>> back around to trying to get netCDF installed on my windows machine via
>>>> the cmake GUI. A couple of questions based on my research:
>>>>
>>>>
>>>>
>>>> · What exactly is HDF5 and do I need it if I’m just trying to
>>>> access readily available netCDF files?
>>> HDF5 is another format and library that netCDF-4 uses for its storage layer
>>> to implement more performance features (e.g. compression, parallel I/O) as
>>> well as an extended data model that has more primitive types and
>>> user-defined types.
>>>
>>> Here's 2 FAQs that provide more details about the relationship among
>>> netCDF-3, netCDF-4, and HDF5:
>>>
>>> http://www.unidata.ucar.edu/netcdf/docs/faq.html#fv4
>>> http://www.unidata.ucar.edu/netcdf/docs/faq.html#fv18
>>>
>>> You don't netCDF-4 or HDF5 if the files you want to access use the
>>> default netCDF-3 "classic" data model and format, or the 64-bit
>>> offset format. Here's how you can
>>> tell:
>>>
>>> http://www.unidata.ucar.edu/netcdf/docs/faq.html#fv1_5
>>>
>>>> · If you think HDF5 worthwhile to have, it doesn’t appear that it
>>>> is part of the netCDF download you directed me to? Where would I find it
>>>> and how do I instruct the cmake GUI to recognize it?
>>> It's not part of netCDF, as it's developed, maintained, and supported by a
>>> different organization. If you decide you need netCDF-4 and the HDF5
>>> library it depends on, you can download it from the HDF Group site:
>>>
>>> http://www.hdfgroup.org/HDF5/
>>>
>>> If you download it in binary form and install that, you won't need CMake to
>>> build it from source. But the HDF5 Group provides instructions for building
>>> and installing it with CMake, in case you have a need for that.
>>>
>>>> · If you don’t think HDF5 is necessary for my purposes, how do I
>>>> instruct the cmake GUI to build without it?
>>> You would provide the CMake option
>>>
>>> -D"ENABLE_NETCDF_4=OFF"
>>>
>>> as described in more detail here:
>>>
>>> http://www.unidata.ucar.edu/netcdf/docs_rc/netCDF-CMake.html
>>>
>>>> Sorry for what are probably pretty simplistic questions. This is all new
>>>> to me. Thanks for your help!
>>> No problem, glad to help ...
>>>
>>> --Russ
>>>
>>>> Tim
>>>>
>>>>
>>>>
>>>> **********************************************
>>>>
>>>> Timothy W. Hawkins
>>>>
>>>> Professor and Graduate Program Coordinator
>>>>
>>>> Department of Geography and Earth Science
>>>>
>>>> Shippensburg University
>>>>
>>>> 1871 Old Main Drive
>>>>
>>>> Shippensburg, PA 17257
>>>>
>>>>
>>>>
>>>> Email: address@hidden
>>>>
>>>> Phone: (717) 477-1662
>>>>
>>>> Fax: (717) 477-4029
>>>>
>>>> Web: http://www.ship.edu/geo-ess/
>>>>
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: Unidata netCDF Support
>>>> [mailto:address@hidden]
>>>> Sent: Wednesday, March 20, 2013 10:47 PM
>>>> To: Hawkins, Timothy (Tim)
>>>> Cc: address@hidden
>>>> Subject: [netCDF #LCN-240709]: RE: Fwd: RE: unidata summer
>>>> workshops
>>>>
>>>>
>>>>
>>>>> Hi Russ,
>>>>> This was very helpful and I've made some progress now that I have CMake
>>>>> supported version. In the configuration step from the CMake GUI I'm
>>>>> getting the following error that I'm hopeful you can help me resolve.
>>>>> Thanks again for all your help,
>>>>> Tim
>>>>> The C compiler identification is MSVC 17.0.50727.1
>>>>> Check for working C compiler using: Visual Studio 11
>>>>> Check for working C compiler using: Visual Studio 11 -- works
>>>>> Detecting C compiler ABI info
>>>>> Detecting C compiler ABI info - done
>>>>> Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
>>>>
>>>>
>>>> The failure to find pkg-config.exe on Windows is not a fatal error; the
>>>> build should continue.
>>>>
>>>>
>>>>
>>>>> HDF5_LIB-NOTFOUND, HDF5_HL_LIB-NOTFOUND,
>>>>> HDF5_INCLUDE_DIR-NOTFOUND
>>>>> Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
>>>>
>>>>
>>>> Here's an answer to a similar question from Ward Fisher, posted to the
>>>> netcdfgroup mailing list:
>>>>
>>>>
>>>>
>>>> http://www.unidata.ucar.edu/mailing_lists/archives/netcdfgroup/201
>>>> 3/
>>>> ms
>>>> g00161.html
>>>>
>>>>
>>>>
>>>> --Russ
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>> CMake Error at CMakeLists.txt:403 (MESSAGE):
>>>>> HDF5 Support specified, cannot find ZLib.
>>>>> CMake Error: The following variables are used in this project, but they
>>>>> 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
>>>>> C:/Users/twhawk/Documents/downloaded_programs/netcdf-4.3.0-rc3
>>>>> used as include directory in directory
>>>>> C:/Users/twhawk/Documents/downloaded_programs/netcdf-4.3.0-rc3
>>>>> used as include directory in directory
>>>>> C:/Users/twhawk/Documents/downloaded_programs/netcdf-4.3.0-rc3
>>>>> used as include directory in directory
>>>>> C:/Users/twhawk/Documents/downloaded_programs/netcdf-4.3.0-rc3
>>>>> **********************************************
>>>>> Timothy W. Hawkins
>>>>> Professor and Graduate Program Coordinator
>>>>> Department of Geography and Earth Science
>>>>> Shippensburg University
>>>>> 1871 Old Main Drive
>>>>> Shippensburg, PA 17257
>>>>> Email: address@hidden<mailto:address@hidden>
>>>>> Phone: (717) 477-1662
>>>>> Fax: (717) 477-4029
>>>>> Web: http://www.ship.edu/geo-ess/
>>>>> -----Original Message-----
>>>>> From: Unidata netCDF Support
>>>>> [mailto:address@hidden]
>>>>> Sent: Tuesday, March 19, 2013 11:24 AM
>>>>> To: Hawkins, Timothy (Tim)
>>>>> Cc:
>>>>> address@hidden<mailto:address@hidden
>>>>> ar
>>>>> .e
>>>>> du>
>>>>> Subject: [netCDF #LCN-240709]: RE: Fwd: RE: unidata summer
>>>>> workshops
>>>>> Hi Tim,
>>>>>> I've been fiddling with trying to install netCDF on windows using CMake
>>>>>> as suggested in the link you sent me from last summer's workshop. I've
>>>>>> pasted the CMake error below but it looks like I'm missing or am not
>>>>>> properly pointing to the directory that contains the "CMakeLists.txt"
>>>>>> file. Is this file a separate download? Is it included in my download
>>>>>> of netCDF from unidata? Should I be pointing to a subdirectory? Any
>>>>>> help is appreciated.
>>>>>> CMake Error: The source directory
>>>>>> "C:/Users/twhawk/Documents/downloaded_programs/netcdf-4.2.1.1" does not
>>>>>> appear to contain CMakeLists.txt.
>>>>> The netCDF version 4.2.1.1 release from last summer didn't contain the
>>>>> CMake solution for building on Windows, which was only available at the
>>>>> time from a separate web page with instructions for installing binary
>>>>> releases built from CMake:
>>>>> http://www.unidata.ucar.edu/software/netcdf/CompileCMake.html
>>>>> However, the CMake support for building the netCDF C library on Windows
>>>>> has now been integrated into a release candidate, netCDF-4.3-rc3,
>>>>> available from:
>>>>> http://www.unidata.ucar.edu/downloads/netcdf/netcdf-rc
>>>>> with instructions for building here:
>>>>> http://www.unidata.ucar.edu/software/netcdf/docs_rc/winbin.html
>>>>> I hope that helps ...
>>>>> --Russ
>>>>>> -----Original Message-----
>>>>>> From: Russ Rew [mailto:address@hidden]
>>>>>> Sent: Wednesday, February 20, 2013 4:13 PM
>>>>>> To: support-netcdf
>>>>>> Cc:
>>>>>> address@hidden<mailto:address@hidden<mailto:
>>>>>> address@hidden%3cmailto:address@hidden>>
>>>>>> Subject: Re: Fwd: RE: unidata summer workshops
>>>>>> Hi Tim,
>>>>>>> ... Is there a crash course way I can learn netCDF.
>>>>>>> I'm interested in using readily available netCDF files in my
>>>>>>> own
>>>>>>> research and teaching but don't really have any experience
>>>>>>> with the
>>>>>>> format. I've fiddled around with netCDF files a bit but I
>>>>>>> was
>>>>>>> hoping
>>>>>>> for a user's course.
>>>>>> Yes, I'd recommend at least the first day's worth of material from last
>>>>>> year's netCDF workshop:
>>>>>> http://www.unidata.ucar.edu/netcdf/workshops/2012/
>>>>>> That would be the first 20 sessions, and it's OK to skip around, as some
>>>>>> of the subjects are independent of earlier material, but session 3, 5,
>>>>>> 6, 7, and 9 are pretty basic. Most of the material is short HTML pages
>>>>>> and you can just use the icons in the upper or lower left of each page
>>>>>> to navigate through the material, but some of the pages just link to
>>>>>> PowerPoint presentations.
>>>>>> --Russ
>>>>> Russ Rew UCAR Unidata Program
>>>>> address@hidden<mailto:address@hidden<mailto:address@hidden%3cmailto:address@hidden>>
>>>>> http://www.unidata.ucar.edu
>>>>> Ticket Details
>>>>> ===================
>>>>> Ticket ID: LCN-240709
>>>>> Department: Support netCDF
>>>>> Priority: Normal
>>>>> Status: Closed
>>>> Russ Rew UCAR Unidata Program
>>>>
>>>> address@hidden<mailto:address@hidden>
>>>> http://www.unidata.ucar.edu
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Ticket Details
>>>>
>>>> ===================
>>>>
>>>> Ticket ID: LCN-240709
>>>>
>>>> Department: Support netCDF
>>>>
>>>> Priority: Normal
>>>>
>>>> Status: Closed
>>>>
>>>>
>>>>
>>> Russ Rew UCAR Unidata Program
>>> address@hidden http://www.unidata.ucar.edu
>>>
>>>
>>>
>>> Ticket Details
>>> ===================
>>> Ticket ID: LCN-240709
>>> Department: Support netCDF
>>> Priority: Normal
>>> Status: Closed
>>>
>>>
>> Russ Rew UCAR Unidata Program
>> address@hidden http://www.unidata.ucar.edu
>>
>>
>>
>> Ticket Details
>> ===================
>> Ticket ID: LCN-240709
>> Department: Support netCDF
>> Priority: Normal
>> Status: Closed
>>
>>
> Ticket Details
> ===================
> Ticket ID: LCN-240709
> Department: Support netCDF
> Priority: Normal
> Status: Open
>
>
>
> Ticket Details
> ===================
> Ticket ID: LCN-240709
> Department: Support netCDF
> Priority: Normal
> Status: Open
> Link:
> https://www.unidata.ucar.edu/esupport/staff/index.php?_m=tickets&_a=viewticket&ticketid=21767
Ticket Details
===================
Ticket ID: LCN-240709
Department: Support netCDF
Priority: Normal
Status: Open