optimizers / homebrew-cutest

Homebrew's CUTEst Tap
GNU Lesser General Public License v3.0
3 stars 4 forks source link

Fix needed for IPOPT #7

Open jaeandersson opened 10 years ago

jaeandersson commented 10 years ago

I'm not sure if this is the right place to report this, if not, please point me to a better place.

The IPOPT package makes some assumptions about the IPOPT installation which are incorrect on OS X and probably on many LINUX systems. I managed to fix it by in /usr/local/Cellar/cutest/HEAD/libexec/packages/defaults/ipopt replacing the line

export PACKLIBS="-lipopt -L${IPOPT}/lib -lblas -llapack /usr/local/lib/libcoinhsl.so -ldl -L/usr/local/lib -lmetis"                                 

with the more generic and platform-independent:

export PACKLIBS=`pkg-config --libs ipopt`
jaeandersson commented 10 years ago

KNITRO also needs additional arguments. This works for me on OS X and KNITRO 9:

export PACKLIBS="-L$KNITRO/lib -lknitro901 -liomp5 -lstdc++ -ldl"