1. Requirements
- Visual C++ version 7.1 (2003 release)
- CVS client
2. Overview
Download the binary versions of all needed libraries (GDAL, expat, GSL), set their corresponding HOME environment variables, download the openModeller source code, and use the existinig VC++ project to compile it.
3. Instructions
- Install Visual C++ NET (version 7.1)
- Get the openModeller code to be compiled (from CVS HEAD or from any specific tag - release tags follow the pattern rel-0-3-4).
From CVS HEAD: cvs -z3 -d:ext:DEVELOPER_NAME@cvs.sourceforge.net:/cvsroot/openmodeller export om
After downloading, you will find the VC++ project inside directory windows/vc7.
- Download the binary versions of GSL, expat and GDAL:
- GSL:
Download the GNU Win32 Source installer from http://openmodeller.cria.org.br/download/extlibs/gsl-1.6-src.exe (we used version 1.6)
- Run the installer to install it on your system.
Open the VC7 solution C:\Program Files\GnuWin32\src\gsl\1.6\gsl-1.6\VC7 and build the gsl and cblas dlls.
Copy dll and lib from C:\Program Files\GnuWin32\src\gsl\1.6\gsl-1.6\VC7\libgsl_dll\Release
Copy dll and lib from C:\Program Files\GnuWin32\src\gsl\1.6\gsl-1.6\VC7\libgslcblas_dll\Release
Note: this version of GSL requires xerces. You can download it from: http://xml.apache.org/dist/xerces-c/archives/Xerces-C_2_3_0/xerces-c_2_3_0-win32.zip or alternately from http://openmodeller.cria.org.br/download/extlibs/xerces-c_2_3_0-win32.zip
- Extract the zerces zip. You will need xerces-c_2_3_0.dll from the bin directory.
- expat:
Go to the project page hosted on sf: http://sourceforge.net/projects/expat
Click on download and choose the expat_win32bin package (we used version 2.0.0).
You can alternately download from: http://openmodeller.cria.org.br/download/extlibs/expat_win32bin_2_0_0.exe
- Double click the .exe to install it on your system.
- You will need libexpat.dll.
GDAL: http://vterrain.org/Distrib/gdal.html
You can alternately download from: http://openmodeller.cria.org.br/download/extlibs/gdal-131-ntbin.zip
- Extract the zip file to install it on your system.
This version requires libpng. You can download it from: http://vterrain.org/dist/libpng-1.2.8.zip or alternately from http://openmodeller.cria.org.br/download/extlibs/libpng-1.2.8.zip
- Extract the libpnj zip file. You will need both libpng13.dll and zlib1.dll.
- Note: in case you want to download the GDAL source and compile it yourself:
Go to the GDAL home page: http://www.remotesensing.org/gdal/
- Choose one of the links to download.
- Choose the zip version to download (we used gdal131.zip).
Follow the Building on Windows instructions that you can find here: http://www.remotesensing.org/gdal/gdal_building.html
- GSL:
- Set the environment variables:
- GDAL_HOME, GSL_HOME (to where the developer files zip was extracted), EXPAT_HOME
Open the openModeller project on VC++ and build everything (Build, Batch Build, Select All). Results will be under directory windows/vc7/build.