Hi,
<br>
<br>I am trying to install Ipopt 3.4.0 on an intel Mac running OSX
<br>10.5.2 (leopard).
<br>
<br>I first tried to use the standard procedure :
<br>
<br>The default ./configure script returned the following error :
<br>
<br>configure:22429: error: cannot compute sizeof (int *), 77
<br>See `config.log' for more details.
<br>>From the log, the precise source of the error seemed to be "undefined
symbols:
<br>"_cplusplus":
<br>
<br>
<br>
<br>Just to reduce uncertainties, I retrieved and compiled the external
libraries HSL, BLAS and LAPACK with gfortran (those libraries tested OK).
<br>I added some flags to the configure script ( those recommanded for Mac
systems in this page
<a class="moz-txt-link-freetext" href="https://projects.coin-or.org/Ipopt/wiki/MatlabInterface">https://projects.coin-or.org/Ipopt/wiki/MatlabInterface</a> )
<br>
<br>./configure ADD_CFLAGS=" -no-cpp-precomp -fno-common -fexceptions -fPIC"
<br>ADD_CXXFLAGS=" -no-cpp-precomp -fno-common -fexceptions -fPIC"
<br>ADD_FFLAGS="-x f77-cpp-input -fPIC -fno-common" FLIBS="-lSystem"
F77=gfortran
<br>CC=gcc CXX=gcc --with-blas="-L/test/Ipopt/Ipopt-3.4.0/ThirdParty/Blas
-lblas"
<br>--with-hsl="-L/test/Ipopt/Ipopt-3.4.0/ThirdParty/HSL -lhsl"
<br>--with-lapack="-L/test/Desktop/Ipopt/Ipopt-3.4.0/ThirdParty/Lapack -llapack"
<br>
<br>The configure script returned a different error this time :
<br>
<br>Undefined symbols:
<br> "_foobar", referenced from:
<br> _main in cc2mJp4m.o
<br>ld: symbol(s) not found
<br>
<br>Here is the config.log file from the latest attempt (zipped to fit the list size limit).
<br>Could you help me to complete this installation ?
<br>
<br>
<br>I also tried the (unofficial?) procedure suggested by Peter Carbonetto to
<br>compile Ipopt 3.3.5 on Mac (<a class="moz-txt-link-freetext" href="http://www.cs.ubc.ca/%7Epcarbo/">http://www.cs.ubc.ca/~pcarbo/</a>).
<br>The compilation seemed to work, but calls to the compiled library file
failed.
<br>This page (
<br><a class="moz-txt-link-freetext" href="https://projects.coin-or.org/BuildTools/wiki/user-examples#LinkingyourCodewithCOINLibraries">https://projects.coin-or.org/BuildTools/wiki/user-examples#LinkingyourCodewithCOINLibraries</a>
<br> ) seem to suggest that linking to Ipopt requires header files
generated during
<br>a standard compilation.
<br>Is it correct ?
<br>
<br>Thanks,
<br>
<br>Andrew