c++ - 在 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
解决方案
所以经过多次研究和询问论坛,我能够编译和运行它,这是与lcm库和openjdk的兼容性问题,所以下载oracle jdk,手动进行一些链接,一切都很好,编译绝对没有错误。
Cheetah-Sofware-Ubuntu 18.04-AutoInstall.sh :
https://github.com/STRATOS-ROBOTICS/LeopardMK1/blob/master/install.sh
推荐阅读
- capl - GPIB 的 CAPL 样品(类型 VISA / E3648A)?
- java - 为什么 maven-failsafe-plugin 不显示执行的宁静测试?
- mysql - 对--compatible的无效模式:mysql40
- android - 强制重新启动完整的应用程序以刷新 Cordova 中的包
- apache-kafka - 在 Kafka 0.10.2.x 中为代理设置 log.retentions.hours
- javascript - 如何限制 textarea 上的“撤消/重做”事件?
- perl - 动态增加 Text::TabularDisplay 中的列大小
- node.js - Unable to access response object data outside the function in node js
- postgresql - 使用 Postgres 创建多个脚本的问题
- excel - VBA 到 GAS 脚本转换