首页 > 系统相关 >ubuntu18.04安装g2o

ubuntu18.04安装g2o

时间:2023-08-24 19:56:28浏览次数:46  
标签:include get sudo apt directory g2o ubuntu18.04 安装

先对g2o的依赖库进行安装:

sudo apt-get update
sudo apt-get install libeigen3-dev
sudo apt-get install libsuitesparse-dev
sudo apt-get install qtdeclarative5-dev
sudo apt-get install qt5-qmake
sudo apt-get install libqglviewer-dev-qt5

然后下载g2o(2020那个版本)

地址:https://github.com/RainerKuemmerle/g2o/tree/20200410_git

然后在解压后的g2o文件目录下输入:

mkdir build
cd build
sudo ldconfig
cmake ..
make j2

CMakeLists.txt引用g2o:

LIST( APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake_modules ) 
SET( G2O_ROOT /usr/local/include/g2o ) 
find_package(G2O REQUIRED)
include_directories(${G2O_INCLUDE_DIRS})
add_executable(g2oCurveFitting g2oCurveFitting.cpp)
target_link_libraries(g2oCurveFitting g2o_core g2o_stuff ${OpenCV_LIBS})

之后编译时出现下面问题

Please set them or make sure they are set and tested correctly in the CMake files: G2O_INCLUDE_DIRS    

used as include directory in directory /home/xj/slambook2-master/ch6    

used as include directory in directory /home/xj/slambook2-master/ch6    

used as include directory in directory /home/xj/slambook2-master/ch6

是因为cmake_modules写成了cmake_module
————————————————
版权声明:本文为CSDN博主「壹609」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_66001915/article/details/131127507

其它链接:Ubuntu16.04安装视觉SLAM环境(g2o)

标签:include,get,sudo,apt,directory,g2o,ubuntu18.04,安装
From: https://www.cnblogs.com/rainbow70626/p/17655021.html

相关文章

  • 关于安装Ambari 2.7.5 + HDP3.1.5
    参考文档安装Ambari2.7.5+HDP3.1.5(附安装包)_ambari安装包下载_不饿同学的博客-CSDN博客关于第11点,在浏览器输入http://hostname显示不了,要使用该hostname-ip才可以显示关于14,没找到maven-3.8.2而是使用了maven-3.8.8关于安装Ambari&HDP的配置libtirpc-devel本地源,该libtirpc......
  • centos7安装telnet-server并升级安装Openssh9.0p1
     发布时间:2022/12/1114:42:50需求更新至OpenSSH_9.0p1更新OpenSSH前先安装telnet-server服务,防止意外发生1、安装telnet-server服务查看本机是否安装telnet客户端及服务端[root@sre ~]# rpm -qa | grep telnet[root@sre ~]# rpm -qa telnet-server[r......
  • dokcer离线安装
    离线安装docker并导入导出镜像下载静态二进制存档https://download.docker.com/linux/static/stable/x86_64/上传服务器并解压?12tar-zxvfdocker-20.10.11.tgzcpdocker/*/usr/bin/配置docker.service文件?1vim/usr/lib/sy......
  • k8s 下安装 pxc
    https://artifacthub.io/packages/helm/percona/pxc-operator安装helmrepoaddperconahttps://percona.github.io/percona-helm-charts/helminstallperconapercona/pxc-operator--version1.13.0--namespacepercona--create-namespacehelminstallmy-dbpercona......
  • Ubuntu虚拟机安装以及在Ubuntu上安装pycharm
    一、在VMware上安装Ubuntu操作系统1、下载Ubuntu镜像文件下载地址:清华大学开源软件镜像站|TsinghuaOpenSourceMirror参考文章:Ubuntu系统下载(清华大学开源软件镜像站)(ubuntu-20.04.1-desktop-amd64.iso)ubuntu20.04.1下载-借我杀死庸碌的情怀-的博客-CSDN博客2、在vmwar......
  • 安装iTerm2和oh-my-zsh
    安装iTerm2和oh-my-zsh此文是在参考许多教程(见目录:参考)并结合本人安装经历写下的一篇关于iTerm2和oh-my-zsh的认识和超级详细安装教程。全文所有图片均为本人截屏拍摄。希望能对大家有所帮助。目录前言下载安装iTerm2iTerm2主题配置配置oh-my-zsh参考前言MacOS自带终端(t......
  • Ubuntu22安装Chrome浏览器
    翻译自博客1.将下载的chrome安装包放在~/Downloads文件夹下$cd~/Downloads#wget是一个下载工具$wgethttps://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb2.安装chrome#dpkg是一个安装软件软件的工具sudodpkg-igoogle-chrome-stable_curre......
  • 不同系统无法安装mysqlclient的解决办法
    (注意系统的版本和MySQLclient的版本,Python版本的对应问题)一CentOS(红帽)#CentOS有Python、Mysql的开发工具包,安装后使用pip安装mysqlclient即可yuminstallmysql-develyuminstallpython-devel#yuminstallpython36-develpipinstallmysqlclient二Ubuntu#Ubuntu的话,......
  • 安装 Boost Asio
    配置C++环境安装VisualStudio,组件列表里勾选msvc工具集安装Clion安装Boost下载源码BoostC++Libraries解压源码,在源码目录打开终端编译出b2可执行文件.\bootstrap.bat用b2编译boost我安装的是VisualStudioCommunity2022,工具集版本默认是......
  • Windows安装Python
    官网地址一、安装进入官网后,点击Downloads下的Windows 然后选择合适自己的版本,这里以Python3.11.4为例,下载Windowsinstall(64-bit)的下载器 然后勾选AddPython.exetoPATH 然后点击Customizeinstallation 点击Next 更改一下安装的路径,默认的也行 然......