netcdf-4 DLLs

This week my coding cave was surrounded by a mob of pitchfork and torch wielding Windows users, demanding their long-delayed netCDF-4 DLLs. I sent my laboratory assistant Igor out to try and placate the angry townspeople, and set to work on the DLLs.

 The idea has been to generate the windows DLLs on my usual Linux power box, spock. This is done with the mingw32 cross compiler. Mingw32 is a minimalistic port of Linux to Windows, and it has the capability of building Windows DLLs. Cross-compiling to mingw32 means that I don't even do this on a Mingw32 system, I do it on a Fedora Linux system, and just tell the compiler that, instead of compiling to run on Fedora, instead compile to run on mingw32.

To cap it all off, the DLLs are then tested by compiling and running the test programs, using Wine, the windows emulator for Unix.

It's quite a setup, but worth it to be able to produce DLLs without maintaining a separate build system for Windows only!

Now the DLLs are being generated and passing tests with the daily snapshot release. Next step: better packaging of the results for windows users. To see the current results, search for "ming" on the snapshot test page.

Comments:

I did not find any Windows DLL in the snapshot test page. Where can I get it from?

Posted by Paty on May 25, 2011 at 07:14 AM MDT #

Get the daily snapshot DLL here:
ftp://ftp.unidata.ucar.edu/pub/netcdf/snapshot/netcdf4_dlls_snapshot.zip

Links to them can be seen on the snapshot test page, in the first column. Search for DLL to find the DLL builds on the page.

If you want the version which includes the visual studio import library (the .lib file) then get this one:
ftp://ftp.unidata.ucar.edu/pub/netcdf/snapshot/netcdf4_dlls_vs.zip

(It's better to get the daily snapshot, and create your own visual studio import library, from the included .def file, with the visual studio tool LIB.EXE.)

Posted by Ed on June 01, 2011 at 02:45 AM MDT #

Post a Comment:
Comments are closed for this entry.
Unidata Developer's Blog
A weblog about software development by Unidata developers*
Unidata Developer's Blog
A weblog about software development by Unidata developers*

Welcome

FAQs

News@Unidata blog

Take a poll!

What if we had an ongoing user poll in here?

Browse By Topic
Browse by Topic
« November 2024
SunMonTueWedThuFriSat
     
1
2
3
4
5
6
7
8
9
10
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
       
Today