首页 > 其他分享 >lio_sam_6axis编译报错解决办法

lio_sam_6axis编译报错解决办法

时间:2025-01-02 09:19:01浏览次数:10  
标签:lio sam sudo 报错 usr 6axis include

lio_sam_6axis编译需要现安装gtsam4.0.2
wget -O ~/Downloads/gtsam.zip https://github.com/borglab/gtsam/archive/4.0.2.zip
cd ~/Downloads/ && unzip gtsam.zip -d ~/Downloads/
cd ~/Downloads/gtsam-4.0.2/
mkdir build && cd build
cmake -DGTSAM_BUILD_WITH_MARCH_NATIVE=OFF ..
make -j8
sudo make install
安装完如果还报错:

/home/ant/work/autoware.ai/install/lio_sam_6axis/lib/lio_sam_6axis/lio_sam_6axis_mapOptmization: symbol lookup error: /home/ant/work/autoware.ai/install/lio_sam_6axis/lib/lio_sam_6axis/lio_sam_6axis_mapOptmization: undefined symbol: _ZNK5gtsam16NoiseModelFactor5printERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN5boost8functionIFS6_mEEE

原因可能是多次版一gtsam的源文件,导致共享文件出问题了,可以尝试删除/usr/lib下的共享文件,从/usr/local/lib拷贝过去。

cd /usr/lib
sudo rm -rf libgtsam.so.4 
sudo rm -rf libmetis.so
 
cd /usr/local/lib
sudo cp libgtsam.so.4 /usr/lib
sudo cp libmetis.so  /usr/lib

再重新安装gtsam即可。

cd ~/work/tools/gtsam/build
sudo make install

还报错的话尝试降低gtsam的版本,用4.0.1试试。
conflicting declaration ‘typedef struct LZ4_stream_t LZ4_stream_t’解决

终端输入:
sudo mv /usr/include/flann/ext/lz4.h /usr/include/flann/ext/lz4.h.bak
sudo mv /usr/include/flann/ext/lz4hc.h /usr/include/flann/ext/lz4.h.bak

sudo ln -s /usr/include/lz4.h /usr/include/flann/ext/lz4.h
sudo ln -s /usr/include/lz4hc.h /usr/include/flann/ext/lz4hc.h

标签:lio,sam,sudo,报错,usr,6axis,include
From: https://www.cnblogs.com/tara-0119/p/18646755

相关文章

  • 关于deeptools computeMatrix使用numpy报错
    $deeptools--versiondeeptools3.5.5在使用该版本deeptoolscomputeMatrix功能时遇见了如下报错computeMatrixreference-point--referencePointTSS\-b5000-a5000\-R/public/spst/home/fanxy2022/fxy/reference/GRCm38.p6/gencode.vM23.annotation.bed\-S*.b......
  • VSCODE报错:运行命令 remote-explorer.refresh 错误: Client network socket disconnec
    VSCODE报错:运行命令remote-explorer.refresh错误:ClientnetworksocketdisconnectedbeforesecureTLSconnectionwasestablished。这可能是由提交remote-explorer.refresh的扩展引起的。相关:https://blog.csdn.net/qq_44106037/article/details/139124149解决......
  • 记 Redisson 报错 attempt to unlock lock, not locked by current thread
    原文:记一次Redisson线上问题→你怎么能释放别人的锁错误信息:attempttounlocklock,notlockedbycurrentthreadbynodeid:b9df1975-5595-42eb-beae-bdc5d67bce49thread-id:52查看日志,找到对应的堆栈信息:Exceptioninthread"thread0"java.lang.IllegalMoni......
  • centos/linux安装shellcheck报错
    centos/linux安装shellcheck报错在centos上安装shellcheck时,可能会因为各种各样的原因安装不了,如下:笔者在安装时使用命令sudoyuminstallshellcheck时常报错404,403等等还有就是笔者在用wget方式安装时也是不行,连不上github,显示连接超时这可让我犯愁了,要编写shell脚本需要......
  • 关于 qt qml 报错 QtQuick.Controls 2 没有被注册
    qml报错无法加载QtQuick.Controls背景一个简单的qtcreaterdemo,qml文件如下importQtQuick2.15importQtQuick.Window2.15Window{visible:truewidth:640height:480title:qsTr("HelloWorld")//创建一个红色的矩形Rectangle{......
  • 解决uniapp安卓打包targetSdkVersion报错
    解决GooglePlay版本检查问题的实用方案。Error:GooglePlayrequiresthatappstargetAPIlevel33orhigher.[ExpiredTargetSdkVersion]问题描述打包时遇到以下错误:Error:GooglePlayrequiresthatappstargetAPIlevel33orhigher.[ExpiredTargetSdkVersion]......
  • ScriptCS安装报错
    最近在写C#,在使用Chocolatey安装ScriptCS(命令:chocoinstallscriptcs)的过程中,出现以下报错:ERROR:Theterm'Write-ChocolateyFailure'isnotrecognizedasthenameofacmdlet,function,scriptfile,oroperableprogram.Checkthespellingofthename,orifapath......
  • 六年时间【万字总结】—kali Linux系统的各种报错问题解决方法,网络安全零基础入门到精
    是从玩kalilinux做主力物理机五六年时间中遇到问题,下面基本上是算是一个小总结吧,从Ubuntu到Kali到Arch在到Kali都是泪每一个问题都是要花费半天,甚至几个星期去解决的问题,下面问题总共时长估计有小半年花费时间研究问题解决和系统美化,折腾过linux应该都董不管是美化还是......
  • Ubuntu 22.04 编译安装 PHP 7.4.33 报错:make: *** [Makefile:749: ext/openssl/openss
     下载openssl1.1.1  https://openssl-library.org/source/old/1.1.1/index.html安装低版本OpenSSLwgethttps://github.com/openssl/openssl/releases/download/OpenSSL_1_1_1w/openssl-1.1.1w.tar.gztarzxvfopenssl-1.1.1w.tar.gzcdopenssl-1.1.1w./config--prefi......
  • 强化学习算法环境报错:python报错 —— gym DuplicatedInput doesn't exist
    运行强化学习pcl算法,报错,原因是gym版本过高,gym停止维护版本为0.26版本,降低版本到0.18,运行成功。pcl算法的官方地址:https://github.com/tensorflow/models/blob/master/research/pcl_rl......