当前位置: 代码迷 >> 综合 >> 18.04安装osqp-eigen
  详细解决方案

18.04安装osqp-eigen

热度:20   发布时间:2023-12-15 15:11:19.0

1.首先安装依赖osqp和Eigen3
由于Eigen3已安装好,下面记录安装osqp:

git clone --recursive https://github.com/oxfordcontrol/osqp
cd osqp
mkdir build
cd build
cmake .. -DBUILD_SHARED_LIBS=ON
make -j6
sudo make install

2.安装osqp-eigen

git clone https://github.com/robotology/osqp-eigen.git
cd osqp-eigen
mkdir build && cd build
cmake ../	#默认安装在/usr/local/include中,非apt安装的包,不在/usr/include/下,而是/usr/local/include下
make
sudo make install

如果git不成功,可以换成下面的gitee托管的:

git clone https://gitee.com/YaoFL/osqp-eigen.git