安装OOQP遇到问题

Ubuntu20.04 安装OOQP遇到问题

  • 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)。

你可能感兴趣的:(ubuntu,linux)