[Coin-ipopt] asking clear question about IPOPT

Andreas Waechter andreasw at watson.ibm.com
Thu Nov 20 11:58:24 EST 2003


Hi Masoud,

I have just reinstalled Cygwin from scratch on my Windows 2000 machine,
and I had no problem compiling and running IPOPT (for the
"Fortran_example" as well as for the AMPL executable).

Here is what you need to install from Cygwin:

Go to the cygwin website (www.cygwin.com) and click on "Install".  Follow
the instructions, and when you get to the point where you have to choose
which packages you want to install, make sure that you select at least

 - gcc-g77 (including gcc, gcc-mingw which should be automatically
            selected with gcc-g77, and possibly g++)
 - make
 - patchutils

(You also probably want to install at least one editor...)  After this,
you should have all from Cygwin that you need for compiling IPOPT, and you
should be able to follow the usual installation instructions (see
doc/INSTALL).  One thing you will need to change in your
OBJECTS/Makefile.defs is to replace "gmake" by "make" in the definition of
the variable MAKE.

Cygwin is a Linux-like environment - you will need at least some basic
knowledge of Linux/Unix in order to be able to work with it.  I hope you
have some experience with this, otherwise there should be plenty of
documentation on the internet.

At this point, this is the only way to use IPOPT under Windows.  The
reason, why one cannot just take the IPOPT Fortran code and compile it on
its own (without using the provided makefiles) is that certain
preprocessor definitions (e.g. -DNO_MA47) have to be set (and are
currently set by the makeifles), and in particular because the TRON source
code (which is link with IPOPT) have to be modified in order to work with
IPOPT (this is done automatically by the makefiles).  I will try to make
it easier in the next release to only use the source files (without the
makefiles), but I won't promise that this will actually happen.

In any case, I hope you will be able to compile IPOPT now in Cygwin.

Best,

Andreas


On Wed, 19 Nov 2003, Andreas Waechter wrote:

> Dear Masoud,
>
> > thank you for your attention to our problem.
> > Our problem is "how to use cygWin as suggested in the README.Windows?"
>
> I just checked the READ.Windows file, and I realized that there was a typo
> in the URL for Cygwin (sorry!).  It should read "www.cygwin.com" instead
> of "www.cywgin.com".  This might have caused some confusion...
>
> In any case, I haven't worked with CygWin and MinGW for a while, and when
> I just had a look at the webpages, it seems that both have change quite a
> bit over the last year, so I'm not sure if the makefiles that are provide
> in the IPOPT release for Cygwin still work properly (has someone else
> tried recently?), and what one has to install.
>
> I will try in the next few days to see if I can successfully install IPOPT
> under Windows, and follow up with another message reporting the (hopefully
> positive) outcome.
>
> Regards,
>
> Andreas
>
> _______________________________________________
> Coin-ipopt mailing list
> Coin-ipopt at www-124.ibm.com
> http://www-124.ibm.com/developerworks/oss/mailman/listinfo/coin-ipopt
>




More information about the Coin-ipopt mailing list