This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| icub:icub_install_ipopt [2012/11/12 14:03] – ramirezk | icub:icub_install_ipopt [2013/01/08 13:16] (current) – ramirezk | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Installing IPOPT from binaries for Linux ====== | ||
| + | This optimization tool has to be installed in order to be able to use the Inverse Kinematic library | ||
| + | for the iCub. | ||
| + | |||
| + | Make sure that the following package is installed: | ||
| + | sudo apt-get install gfortran | ||
| + | |||
| + | You can visit the IPOPT web page: | ||
| + | mkdir -p ~/local/src | ||
| + | cd ~/local/src | ||
| + | # Latest stable version during creation of this manual was 3.10, update if necessary | ||
| + | svn co https:// | ||
| + | |||
| + | Now enter the IPOPT directory and get the third party sources: | ||
| + | cd CoinIpopt/ | ||
| + | ./get.Blas | ||
| + | cd ../Lapack | ||
| + | ./ | ||
| + | |||
| + | Now you need to download the HSL routines. | ||
| + | Go to http:// | ||
| + | |||
| + | Find MA27. Fill in the register form and wait for the email with the download link. | ||
| + | Save the archive, extract it and then copy file ma27d.f as ma27ad.f | ||
| + | into ~/ | ||
| + | |||
| + | mkdir -p ~/ | ||
| + | tar -C ~/ | ||
| + | cp ~/ | ||
| + | |||
| + | Find MC19. Fill in the register form and wait for the email with the download link. | ||
| + | Save the archive, extract it and then copy file mc19d.f as mc19ad.f | ||
| + | into ~/ | ||
| + | |||
| + | tar -C ~/ | ||
| + | cp ~/ | ||
| + | |||
| + | Now go to the root of the IPOPT folder | ||
| + | cd ~/ | ||
| + | and run: | ||
| + | mkdir build && cd build | ||
| + | ../ | ||
| + | make | ||
| + | make test | ||
| + | sudo make install | ||
| + | |||
| + | Set the environment variable IPOPT_DIR pointing to the local directory where you have installed the libraries (you need to change the directory if you performed a local installation). | ||
| + | |||
| + | cd | ||
| + | gedit .bashrc | ||
| + | export IPOPT_DIR=/ | ||
| + | | ||
| + | **Hint:** to check whether IPOPT is working along with iKin framework, compile and execute the examples located under the iKin tutorials directory found in the iCub repository: | ||
| + | if the IPOPT banner is displayed when the examples are launched then IPOPT is correctly configured. | ||