sudo apt-get install libeigen3-devsudo apt-get install libfmt-devsudo apt-get install cppadsudo apt-get install -y gfortran libncurses5-dev libncursesw5-dev coinor-libipopt-dev libmetis-devTo avoid strange compilation errors after installation, we need to make appropriate modifications in /usr/include/coin/IpSmartPtr.hpp, like this :
#define HAVE_CSTDDEF // add code
#ifdef HAVE_CSTDDEF
# include <cstddef>
#else
# ifdef HAVE_STDDEF_H
# include <stddef.h>
# else
# error "don't have header file for stddef"
# endif
#endif
#undef HAVE_CSTDDEF // add codegit clone --recursive https://github.com/osqp/osqp
cd osqp
mkdir build
cd build
cmake .. -DBUILD_SHARED_LIBS=ON
make
sudo make installgit clone https://github.com/robotology/osqp-eigen.git
cd osqp-eigen
mkdir build
cd build
cmake ..
make
sudo make install