The IPOPT library comes with a makefile that compiles a number of examples. I wanted to incorporate IPOPT and these are just my notes on the interface.
git clone -b stable/3.12 https://github.com/coin-or/Ipopt.git CoinIpopt
2) Before compiling IPOPT you need hsl. It is not open source, but a free copy can be requested from:
http://www.hsl.rl.ac.uk/ipopt/
a) extract the copresses binaries into some directory DIR/
b) next move the files from DIR/include into usr/local/include and DIR/lib into usr/local/lib and DIR/lib/pkgconfig into usr/local/pkgconfig
c) run ldconfig to map the package names to the directory:
sudo ldconfig
cd .../CoinIpopt
./configure
make
make install
make test