首页 > 解决方案 > 在 ubuntu 中创建自动安装程序

问题描述

我正在尝试安装和运行此软件https://github.com/mit-biomimetics/Cheetah-Software 它适用于一个项目,但它无法编译缺少的依赖项(eigen3)。

我想创建一个自动安装脚本来运行它。

我已经做了最多,但我认为我在 cmake 和 qt5.10 和 eigen 中链接路径时遇到问题......

autoinstall.sh 代码:

安装依赖

sudo apt install mesa-common-dev freeglut3-dev coinor-libipopt-dev libblas-dev liblapack-dev gfortran liblapack-dev coinor-libipopt-dev cmake gcc build-essential libglib2.0-dev default-jdk python-all-dev liblua5.1-dev golang doxygen python-epydoc

克隆 MIT Minicheetah 软件

git clone https://github.com/mit-biomimetics/Cheetah-Software.git
cd Cheetah-Software

特征库

wget https://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.zip
unzip eigen-3.3.7.zip

lcm库

wget https://github.com/lcm-proj/lcm/releases/download/v1.4.0/lcm-1.4.0.zip
unzip lcm-1.4.0.zip
cd lcm-1.4.0

mkdir build
cd build
cmake ..
make
sudo make install
cd ..
cd ..

Qt

wget http://mirrors.ukfast.co.uk/sites/qt.io/archive/qt/5.10/5.10.0/qt-opensource-linux-x64-5.10.0.run
chmod +x qt-opensource-linux-x64-5.10.0.run
./qt-opensource-linux-x64-5.10.0.run

建造

cd scripts # for now, you must actually go into this folder
./make_types.sh # you may see an error like `rm: cannot remove...` but this is okay
cd ..
mkdir build
cd build
cmake .. # there are still some warnings here
make -j

标签: c++qtcmakeqt5eigen3

解决方案


所以经过多次研究和询问论坛,我能够编译和运行它,这是与lcm库和openjdk的兼容性问题,所以下载oracle jdk,手动进行一些链接,一切都很好,编译绝对没有错误。

Cheetah-Sofware-Ubuntu 18.04-AutoInstall.sh :

https://github.com/STRATOS-ROBOTICS/LeopardMK1/blob/master/install.sh


推荐阅读