当前位置:网站首页>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库文件。这样的话,上述编译错误应该就可以消失了。
边栏推荐
猜你喜欢

一文详解|增长那些事儿

The form image uploaded in chorme cannot view the binary image information of the request body

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

Database migration from PostgreSQL to MySQL

什么是图神经网络?图神经网络有什么用?

rpiplay实现树莓派AirPlay投屏器

疫情、失业,2022,我们高喊着摆烂和躺平!

“不平凡的代理初始值设定不受支持”,出现的原因及解决方法

【NOI模拟赛】给国与时光鸡(构造)

pymysql 向MySQL 插入数据无故报错
随机推荐
Base64编码详解及其变种(解决加号在URL变空格问题)
什么是图神经网络?图神经网络有什么用?
input的聚焦后的边框问题
The form image uploaded in chorme cannot view the binary image information of the request body
One development skill a day: how to establish P2P communication based on webrtc?
Using ngrok for intranet penetration
Video Fusion communication has become an inevitable trend of emergency command communication. How to realize it based on easyrtc?
dataX使用指南
小程序wx.show
[pytorch basic tutorial 30] code analysis of DSSM twin tower model
WebRTC系列-网络传输之5选择最优connection切换
提高INSERT速度
liunx服务器 telnet 带用户名 端口登陆方法
基于QingCloud的 “房地一体” 云解决方案
mysql组合索引的有序性
2022 spring recruitment interview summary
数据中台:国内大厂中台建设架构集锦
Change SSH port number
Solving linear equations with MATLAB ax=b
RuntimeError: Missing dependencies:XXX