-
先下载,不过下来后需要查看自己电脑中ros的octomap版本,查看方法/opt/ros/kinetic/share/octomap里的octomapconfigversion打开找到版本
-
编译之前要sudo apt-get install libqglviewer-dev-qt4,详情请看https://www.cnblogs.com/hitlrk/p/6667253.html?utm_source=itdadao&utm_medium=referral
-
给自己的提示:本lenovo中仍是dev-qt4并没有改回到dev
-
git clone https://github.com/OctoMap/octomap
-
cd octomap
-
git tag //列出所有版本,查看是否有自己的版本
-
git checkout v1.8.1 //校验为自己的版本,我的是1.8.1
-
根octomap下有octomap,octovis,dynamicEDT3D按顺序以固定的mkdir,cmake…,make方式进行编译,最后编译根octomap
-
mkdir build
-
cd build
-
cmake ..
-
make
-
sudo make instal
-
感谢这四篇博客在我与到困难时指出了解决方法:
-
https://www.cnblogs.com/hitlrk/p/6667253.html?utm_source=itdadao&utm_medium=referral
-
https://blog.csdn.net/qq_36420239/article/details/79488181
-
https://blog.csdn.net/LOVE1055259415/article/details/79866461
-
https://www.cnblogs.com/gaoxiang12/p/5041142.html