笔记:
1.ubuntu更改用户(Ubuntu 22.04.1 LTS)
方法一:
https://blog.csdn.net/fkmmmm/article/details/127333212
方法二:
https://huaweicloud.csdn.net/63560d54d3efff3090b58f92.html?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Eactivity-1-125065515-blog-125488527.pc_relevant_vip_default&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Eactivity-1-125065515-blog-125488527.pc_relevant_vip_default&utm_relevant_index=2
2.安装的库位置查询
pkg-config --modversion eigen3
dpkg -l | grep + 关键字
dpkg -L + 库名
find [path] -name [file name]
库名 --version;
apt-get install apt-show-versions | grep 包名关键字
https://blog.csdn.net/Kenny_GuanHua/article/details/123842699
3.安装ceres出现问题
/home/casun/cmake_slam_86/ceres-solver-1.14.0/internal/ceres/gtest/gtest.h:10445:35: error: variable or field ‘it’ declared void
10445 | for (typename C::const_iterator it = container.begin();
解决:a.
https://blog.csdn.net/weixin_45868890/article/details/125837535 //成功,eigen3由原来的3.4.0该为3.3.7
https://blog.csdn.net/qq_42257666/article/details/124600564 //未测试
b. ceres-solver-1.14.0安装,说新版可以避免,实际不行
CMake Error at cmake/FindTBB.cmake:224 (file):
file failed to open for reading (No such file or directory):
/usr/include/tbb/tbb_stddef.h
Call Stack (most recent call first):
cmake/FindSuiteSparse.cmake:294 (find_package)
CMakeLists.txt:266 (find_package)
解决: FindTBB.cmake文件下关闭查找tbb库
4.delete_main.cc、shm_client.cc、shm_client.cc
报错:
error: ordered comparison of pointer with integer zero (‘char*’ and ‘int’)
解决:0改为 (void*)0
if(fgets(buf,50, fp)> (void*)0)
5. qt安装
a. 安装arm架构环境的qt
链接: https://blog.csdn.net/weixin_48560325/article/details/124373125 //命令安装,可以
参考
https://blog.csdn.net/qq_41286751/article/details/125558815
https://blog.csdn.net/weixin_44678052/article/details/104984998
/usr/bin/qtcreator 可执行文件