next up previous contents
Next: MinGW Up: Building the OS Project Previous: Microsoft Visual Studio (MSVS)   Contents

Cygwin

Cygwin provides a Unix emulation environment for Windows. It comes with numerous tools and libraries including the gcc compilers. See www.cygwin.com. Cygwin can be used with the Gnu Compiler Collection (gcc) or with the Microsoft cl compiler.

Using Cygwin with gcc: With Cygwin and the corresponding gcc compilers the OS project is built exactly as described in Section 3.1. If you have previously downloaded Cygwin with version gnome make version 3.81-1, you must obtain a fixed 3.81 version from http://www.cmake.org/files/cygwin/make.exe. (See also the Cygwin mailing list postings http://cygwin.com/ml/cygwin/2006-09/msg00315.html and http://cygwin.com/ml/cygwin/2006-09/msg00153.html). See also the discussion at https://projects.coin-or.org/BuildTools/wiki/current-issues.

Using Cygwin with Microsoft cl: Users who are extremely adventuresome and have an abundance of free time on their hands may wish to use Cygwin with the Microsoft cl compiler to build the OS project. The following steps have led to a successful build.

Step 1:
Download Cygwin from http://www.cygwin.com/setup.exe and install.

Step 2:
Download Visual Studio Express C++ at http://msdn2.microsoft.com/en-us/express/aa975050.aspx.

Step 3:
The part of the OS library responsible for communication with a remote server depends on some underlying Windows socket header files and libraries. Therefore it is necessary to also download and install the Windows Platform SDK. Download the necessary files at

http://msdn2.microsoft.com/en-us/express/aa700755.aspx

and install.

Step 4:
Set the Cygwin search path configuration. This is important. This step is necessary to insure that Cygwin looks for compilers, linkers, etc in the correct order. The right order of directories is: MSVS command directories, Cygwin command directories, and finally Windows command directories. This is illustrated below.

Open the Cygwin shell and check the value of $PATH. If directories don't appear in an order described above, then $PATH value needs to be reset.

Step 5:
Build the OS project (or any COIN-OR project). If you wish to avoid the FORTRAN related issues you should build without Ipopt. Issue the following command in the project root.
./configure COIN_SKIP_PROJECTS=Ipopt --enable-doscompile=msvc

If you wish to build with Ipopt, then FORTRAN is required and Visual Studio does not ship with a FORTRAN compiler. The following is a work-around.

Step a.
Obtain one of the Harwell Subroutine Library (HSL) routines ma27ad.f or MA57ad.f. See http://www.cse.scitech.ac.uk/nag/hsl/. Put the Harwell code in the directory ThirdParty/HSL.

Step b.
Follow the instructions for downloading and installing the f2c compiler from Netlib. The installation instructions for this are in the INSTALL file in
../data/BuildTools/compile_f2c

Step c.
Run configure

 ./configure  --enable-doscompile=msvc


next up previous contents
Next: MinGW Up: Building the OS Project Previous: Microsoft Visual Studio (MSVS)   Contents
Kipp Martin 2008-01-16