安装OOQP遇到问题

Ubuntu20.04 安装OOQP遇到问题

OOQP安装

MA27是OOQP的依赖。
在安装MA27时容易出现找不到fortran77等情况,在配置这些环境时容易出现其他错误导致系统环境出现问题。选择其他版本的安装文件
ma27:https://github.com/HITSZ-LeggedRobotics/ma27
安装命令:

bash ./configure CPPFLAGS="-fPIC" CFLAGS="-fPIC" FFLAGS="-fPIC"
sudo make install

遇到问题:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g77... g77
checking whether the Fortran 77 compiler works... no
configure: error: in `/home/cxc/my_lib/ma27/ma27-1.0.0':
configure: error: Fortran 77 compiler cannot create executables
See `config.log' for more details

解决方法:
参考:https://github.com/cburstedde/p4est/issues/35

bash ./configure CPPFLAGS="-fPIC" CFLAGS="-fPIC" FFLAGS="-fPIC" F77=gfortran

OOQP:https://github.com/emgertz/OOQP
在ma27/src中复制libma27.a文件到ooqp文件夹下

安装命令:

./configure
make
sudo make install

即可成功安装ooqp

若出现这种情况:

GNUmakefile:42: recipe for target ‘ooqp-userguide/ooqp-userguide.pdf’ failed
make[1]: *** [ooqp-userguide/ooqp-userguide.pdf] Error 127
make[1]: Leaving directory ‘/home/ly/Teach-Repeat-Replan/installation/OOQP-master/doc-src’
GNUmakefile:102: recipe for target ‘install_docs’ failed

只是些说明文档,已经装好(参考:https://www.cxyzjd.com/article/Awesomewan/109495670)。

  • 2
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 6
    评论
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值