## NCO Qt/MSVC build

This page contains instructions regarding building NCO with the Qt system and with Microsoft Windows Visual Studio 2010 (MSVC). This page is mostly important for developers that want to build NCO from source using Qt or MSVC.

## Build NCO with Qt |

Qt is a cross platform build system. As of NCO 4.2.1, it is possible to build NCO with Qt, in a Linux, Mac OSX or Windows enviroment. NCO can be built either from the Qt IDE, QtCreator, or from the command line. To build NCO with QtCreator, just open the file /qt/nco.pro. To build NCO from the command line, do:

`$ cd qt`
`$ qmake`
`$ make`

## Build NCO with MSVC |

As of NCO 4.2.0, it is possible to build NCO with Visual Studio 2010. To build NCO with MSVC, open the file /qt/nco.sln with Visual Studio.

NCO depends on several pre-installed libraries, namely HDF5 (including HDF5 High-Level), netCDF, zlib. The NCO supplied Visual Studio projects assume static builds of these libraries. These are specified by means of the following Windows enviroments variables in the projects:

`LIB_NETCDF`
`LIB_DISPATCH`
`LIB_NETCDF4`
`LIB_HDF5`
`LIB_HDF5_HL`
`LIB_ZLIB`
`LIB_SZIP`
`LIB_ANTLR`
Additionnaly, the following environment variable must also be defined for the location of the netCDF header files:
`HEADER_NETCDF`

## netCDF 4.2.0 built with MSVC

For convenience, we include Microsoft Visual Studio 2010 projects that allow to build all the NCO dependency libraries. The following files have MSVC build projects for:

Library | Description | File | Size | Date
`netCDF 4.2.0` | Contains the projects: /libsrc /libdispatch /libsrc4 /ncdump | netcdf-4.2.0.tar.gz | 1.8MB | June 24, 2012
`HDF5 1.8.5 patch1` | Contains the projects: /hdf5 /hdf5_hl /h5tinit /h5libsettings | hdf5-1.8.5.patch1.tar.gz | 1.8MB | June 24, 2012
`antlr-2.7.7` | Contains the projects: /antlr | antlr-2.7.7.tar.gz | 4.5MB | June 24, 2012

Homepage