## NCO Qt/MSVC build

This page contains instructions regarding building NCO with the Qt system and with Microsoft Windows Visual Studio 2013 (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 2013. 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, szip, Antlr, GSL, Curl, UDUnits, Expat. The NCO supplied Visual Studio projects assume static builds of these libraries. These are specified by means of the following Windows environment variables in the projects:
`LIB_NETCDF`
`LIB_HDF5`
`LIB_HDF5_HL`
`LIB_ZLIB`
`LIB_SZIP`
`LIB_ANTLR`
`LIB_GSL`
`LIB_CURL`
`LIB_UDUNITS`
`LIB_EXPAT`
Additionnaly, the following environment variable must also be defined for the location of the netCDF, UDUnits, GSL and Antlr header files:
`HEADER_NETCDF`
`HEADER_UDUNITS`
`HEADER_GSL`
`HEADER_ANTLR`

Homepage