当前位置:网站首页>SLAM14讲中Sophus包的安装问题
SLAM14讲中Sophus包的安装问题
2022-06-24 07:07:00 【alex1801】
SLAM14中,useSophus.cpp工程编译中报错:
CMake Error at CMakeLists.txt:5 (find_package):
By not providing "FindSophus.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Sophus", but
CMake did not find one.
Could not find a package configuration file provided by "Sophus" with any
of the following names:报错原因:makelist中找不到Sophus头文件。我们分两步处理:
1、下载Sophus包,并编译、安装
进入源码目录,编译,安装。
cd slambook2/3rdparty/Sophus
mkdir build
cd build
cmake ..
make
sudo make install2、在CMakeLists.txt文件中添加Sophus_INCLUDE_DIRS变量
观看错误信息,其实就是找不到Sophus库和头文件的内容:
set(Sophus_INCLUDE_DIRS "放置你的Sophus头文件文件夹路径")
set(Sophus_LIBS "放置你的Sophus库文件的文件夹路径,指明相应的库文件")比如,我的是这样的:
set(Sophus_INCLUDE_DIRS "/usr/local/include/sophus")
# set(Sophus_LIBS "/usr/local/lib/libSophus.so")
include_directories(
${Sophus_INCLUDE_DIRS}
)然后再将你的执行文件链接上Sophus库文件。这样的话,上述编译错误应该就可以消失了。
边栏推荐
- Wan Weiwei, a researcher from Osaka University, Japan, introduced the rapid integration method and application of robot based on WRS system
- Why can ping fail while traceroute can
- Picture tools
- GradScaler MaxClipGradScaler
- Centos7 installation of jdk8, mysql5.7 and Navicat connection to virtual machine MySQL and solutions (solutions to MySQL download errors are attached)
- The form image uploaded in chorme cannot view the binary image information of the request body
- MySQL | 存储《康师傅MySQL从入门到高级》笔记
- QT source code analysis -- QObject (2)
- What is the future development trend of Business Intelligence BI
- 什么是SRE?一文详解SRE运维体系
猜你喜欢

【量化投资】离散傅里叶变换求数组周期
![[pytorch basic tutorial 30] code analysis of DSSM twin tower model](/img/4a/1f290990b39c517efb2b9cef0b5fcb.png)
[pytorch basic tutorial 30] code analysis of DSSM twin tower model

【牛客】把字符串转换成整数

原生小程序用画布制作海报,等比例缩放,和uniapp差不多就是写法有点不同

MySQL 因字符集问题插入中文数据时提示代码 :1366

用VNC Viewer的方式远程连接无需显示屏的树莓派
![[pytoch basic tutorial 31] youtubednn model analysis](/img/18/dbeab69894583f6e5230772ce44652.png)
[pytoch basic tutorial 31] youtubednn model analysis

数据库迁移从PostgreSQL迁移到 MYSQL

liunx服务器 telnet 带用户名 端口登陆方法

ZUCC_ Principles of compiling language and compilation_ Experiment 0607 grammar analysis ll analysis
随机推荐
Lombok use
Smart power plant: how to make use of easycvr to build a safe, stable, green and environment-friendly intelligent inspection platform
数据中台:数据中台技术架构详解
1528. 重新排列字符串
数据中台:数据中台全栈技术架构解析,附带行业解决方案
Solution: Nan occurs in loss during model training
Picture tools
基于QingCloud的地理信息企业研发云解决方案
第七章 操作位和位串(三)
Glusterfs replacement failure brick
GradScaler MaxClipGradScaler
关于ETL看这篇文章就够了,三分钟让你明白什么是ETL
【Pytorch基础教程31】YoutubeDNN模型解析
Using ngrok for intranet penetration
Battle history between redis and me under billion level traffic
2138. 将字符串拆分为若干长度为 k 的组
【量化投资】离散傅里叶变换求数组周期
Camera projection matrix calculation
解决:模型训练时loss出现nan
Fast and slow pointer series