Re: [netcdfgroup] Native build of netcdf-fortran-4.2-beta3 on Windows 32-bit, 64-bit with OPeNDAP support!

  • To: netcdfgroup@xxxxxxxxxxxxxxxx
  • Subject: Re: [netcdfgroup] Native build of netcdf-fortran-4.2-beta3 on Windows 32-bit, 64-bit with OPeNDAP support!
  • From: Alan Norton <alan@xxxxxxxx>
  • Date: Fri, 24 Feb 2012 14:37:21 -0700
Christoph Gohkle's code is only linkable from a Visual Studio 2008 app, not from Visual Studio 2010 apps because of C runtime incompatibilities. I need a VS2010 version because my app has other dependencies (64-bit Qt) that require VS2010. Has anyone succeeded at producing a Windows 64 build of netcdf 4 with VS2010?
Thanks,
-Alan

NetCDF folks,
That was supposed to say:
"You can get the Windows Native binary build for 4.1.3 (*not* 4.2-beta3)..."

Sigh,
Rich

On Tue, Sep 27, 2011 at 3:29 PM, Rich Signell<rsignell@xxxxxxxx>  wrote:
 NetCDF Folks,

 You can get the Windows Native binary build for 4.1.3 (4.2-beta3) that
 has 32 bit, 64 bit versions, Fortran bindings and OPeNDAP support at:

 http://coast-enviro.er.usgs.gov/models/share/netcdf-4.1.3-win-dev.zip

 Christoph Gohkle built this, but doesn't have time to support it.  And
 frankly, this really does seem like something Unidata should support,
 now that Christoph has done the hard part of setting everything up for
 Visual Studio Pro and Intel Fortran, no?

 Here's what Christoph said about the build:

 "I compiled an archive
 <http://www.lfd.uci.edu/~gohlke/netcdf-4.1.3-win-dev.zip  
<http://www.lfd.uci.edu/%7Egohlke/netcdf-4.1.3-win-dev.zip>>  that
 (hopefully) contains all libraries, headers, and source code necessary
 to build and use netcdf-4.1.3 on win32 and win-amd64 using Visual
 Studio 2008 Pro and Visual Fortran 11.1."

 "The netcdf-4.1.3-win-dev.zip\netcdf-4.1.3-curl-fortran\win32\NET
 directory contains a VS2008 solution file that I used to build the
 netcdf4 DLLs and test programs. The resulting binaries are in the
 Release-x32 and Release-x64 sub-directories. CURL is linked
 statically. F77 bindings are in the DLLs. See the nf_test and
 test_prog_f90 project settings on how to use the DLL from F77 and
 F90."

 Thanks,
 -Rich


 On Tue, Sep 27, 2011 at 11:16 AM, Christoph Gohlke<cgohlke@xxxxxxx>  wrote:


 On 9/27/2011 5:56 AM, Rich Signell wrote:

 NetCDF folks, a
 Thanks to Christoph Gohlke, we have a native port of NetCDF fortran
 4.2-beta3 on Windows.
 http://www.lfd.uci.edu/~gohlke/netcdf-4.1.3-win-dev.zip  
<http://www.lfd.uci.edu/%7Egohlke/netcdf-4.1.3-win-dev.zip>

 As the file name indicates this is version 4.1.3, not 4.2-beta3.

 I am not able to support that build. The file is not available any longer
 from that location. Please contact Rich Signell to obtain the file.

 Christoph



   I tried building the sample F77 simple_xy_rd.f

 
http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-tutorial/simple_005fxy_005frd_002ef.html
 program, modified to open an OPeNDAP dataset instead of a local netCDF
 file.   It worked great!

 I haven't got the F90 build quite figured out yet, but hopefully
 someone else can figure out the last step.


 My "build32.bat" file looks like this:

 rem Build sample F77 and F90 programs that read OPeNDAP with IFORT on
 Windows

 rem This uses Chrisoph Gohlke's NetCDF 4.1.3 built with Intel Fortran 11.1
 at
 rem<http://www.lfd.uci.edu/~gohlke/netcdf-4.1.3-win-dev.zip  
<http://www.lfd.uci.edu/%7Egohlke/netcdf-4.1.3-win-dev.zip>>

 rem Specify where you unzipped the above distribution:
 set NETCDF=c:\rps\netcdf-4.1.3-win-dev

 rem Set PATH to ensure the netcdf 4.1.3 "netcdf.dll" is found (in the
 x32 or x64 directory)
 set PATH=%NETCDF%\bin\x32;%PATH%

 rem Set LIBDIR to the correct "netcdf.lib" (x32 or x64)
 set LIBDIR=%NETCDF%\lib\x32

 rem Sample F77 program
 ifort /exe:simple_xy_rd_dap.exe /fpp /names:lowercase
 /assume:underscore /libs:dll /threads /nologo simple_xy_rd_dap.f /link
 /libpath:"%LIBDIR%" netcdf.lib

 rem Sample F90 program
 rem build typeSizes.mod and netcdf.mod
 ifort /c /fpp /names:lowercase /assume:underscore  /threads /libs:dll
 %NETCDF%\netcdf-4.1.3-curl-fortran\f90\typeSizes.f90
 ifort /c /fpp /names:lowercase /assume:underscore  /threads /libs:dll
 %NETCDF%\netcdf-4.1.3-curl-fortran\f90\netcdf.f90
 ifort /exe:simple_xy_rd_dap_f90.exe /fpp /names:lowercase
 /assume:underscore /libs:dll /threads /nologo simple_xy_rd_dap_f90.f90
 /link /libpath:"%LIBDIR%" netcdf.lib


 _______________________________________________
 netcdfgroup mailing list
 netcdfgroup@xxxxxxxxxxxxxxxx
 For list information or to unsubscribe,  visit:
 http://www.unidata.ucar.edu/mailing_lists/



 --
 Dr. Richard P. Signell   (508) 457-2229
 USGS, 384 Woods Hole Rd.
 Woods Hole, MA 02543-1598




--
Dr. Richard P. Signell   (508) 457-2229
USGS, 384 Woods Hole Rd.
Woods Hole, MA 02543-1598


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