next up previous contents
Next: Installation with MSYS/MinGW Up: Installation on Windows Previous: Installation with Cygwin using   Contents


Installation with Cygwin using the MSCV++ compiler

This section describes how you can compile IPOPT with the Microsoft Visual C++ compiler under Cygwin. Here you have two options for compiling the Fortran code in the third party dependencies:

Once you have settled on this, do the following:

  1. Follow the instructions in Section 2.4.1 until Step 10 and stop after your downloaded the third party code.

  2. Now you need to make sure that Cygwin knows about the native compilers. For this you need to edit the file cygwin.bat in the Cygwin base directory (usually C: $ \backslash$ cygwin). Here you need to add a line like the following:

    call "C: $ \backslash$ Program Files $ \backslash$ Microsoft Visual Studio 8 $ \backslash$ VC $ \backslash$ vcvarsall.bat"

    On my computer, this set the environment variables to that I can use the MSVC++ compiler.

    If you want to use also a native Fortran compiler, you need to include something like this

    call "C: $ \backslash$ Program Files $ \backslash$ Intel $ \backslash$ Fortran $ \backslash$ compiler80 $ \backslash$ IA32 $ \backslash$ BIN $ \backslash$ ifortvars.bat"

    You might have to search around a bit. The important thing is that, after your change, you can type ``cl'' in a newly opened Cygwin windows, and it finds the Microsoft C++ compiler (and if you want to use it, the Fortran compiler, such as the Intel's ifort).

  3. Run the configuration script, and tell it that you want to use the native compilers:

    ./configure -enable-doscompile=msvc

    Make sure the last message is

    Main Ipopt configuration successful

  4. If want to compile the AMPL solver executable, you need to compile the ASL library from a script. For this you need to change into the ASL compilation directory, execute the script compile_MS_ASL, and go back to the directory where you were:

    cd ThirdParty/ASL

    ./compile_MS_ASL

    cd -

  5. Now you can compile the code with

    make,

    test the installation with

    make test,

    and install everything with

    make install


next up previous contents
Next: Installation with MSYS/MinGW Up: Installation on Windows Previous: Installation with Cygwin using   Contents
Andreas Waechter 2008-08-26