如何在x86环境上安装Ipopt

安装CPPAD和Fortran

$ sudo apt-get install cppad gfortran

获取ipopt源代码

下载Ipopt-3.12.8.tgz

https://www.coin-or.org/download/source/Ipopt/

$ wget http://www.coin-or.org/download/source/Ipopt/Ipopt-3.12.8.tgz $ tar xvzf Ipopt-3.12.8.tgz
$ cd CUSTOM_PATH / Ipopt-3.12.8 / ThirdParty / Blas
$ ./get.Blas
$ cd ../Lapack
$ ./get.Lapack
$ cd ../Mumps
$ ./get.Mumps
$ cd ../Metis
$ ./get.Metis

$ cd CUSTOM_PATH / Ipopt-3.12.8
$ mkdir build
$ cd build
$ ../configure
$ make -j4
$ make install

将安装文件复制到特定目录

$ cd CUSTOM_PATH / Ipopt-3.12.8 / build
$ sudo cp -a include / * / usr / include /.
$ sudo cp -a lib / * / usr / lib /.
 

你可能感兴趣的:(ROS,C++)