最近使用到了标定工具opencarlibar
https://blog.youkuaiyun.com/qq_49331639/article/details/115024110
卸载:https://blog.youkuaiyun.com/qq_42257666/article/details/126069335
最近使用slam的时候编译经常遇到问题,解决在这篇文章中
依赖项:
sudo apt install libglew-dev
安装pangolin:
# 下载Pangolin
git https://github.com/stevenlovegrove/Pangolin.git
# 编译
cd Pangolin
mkdir build &&cd build
cmake .. && make
sudo make install
这样安装后一直遇到问题:
In file included from /usr/local/include/pangolin/gl/gl.h:324:0,
from /usr/local/include/pangolin/handler/handler.h:31,
from /usr/local/include/pangolin/display/widgets.h:32,
from /usr/local/include/pangolin/pangolin.h:40,
from /home/marcos/code/SensorsCalibration/lidar2camera/manual_calib/src/run_lidar2camera.cpp:9:
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlTexture::CopyFrom(const pangolin::GlTexture&)’:
/usr/local/include/pangolin/gl/gl.hpp:348:5: error: ‘glCopyImageSubDataNV’ was not declared in this scope
glCopyImageSubDataNV(tex.tid, GL_TEXTURE_2D, 0, 0, 0, 0,
^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:348:5: note: suggested alternative: ‘glCopyColorSubTable’
glCopyImageSubDataNV(tex.tid, GL_TEXTURE_2D, 0, 0, 0, 0,
^~~~~~~~~~~~~~~~~~~~
glCopyColorSubTable
其实也很明显,这是pangolin版本不对,然后我就去换了0.9 0.8 0.7 版本都不行,最后发现得是0.6:
所以得先卸载一下pangolin,所有三方库都可以通过这个方法来卸载,首先:
cd Pangolin/build
make clean
sudo make uninstall
然后删除源码文件:
sudo rm -r Pangolin
找到usr里面的库文件位置:
sudo updatedb
locate pangolin
然后删除相应的文件夹:
sudo rm -r /usr/local/include/pangolin
再次检查一下:
sudo updatedb
locate pangolin
然后重新去安装:
git https://github.com/stevenlovegrove/Pangolin.git
cd Pangolin
git checkout v0.6
mkdir build && cd build
cmake ..
cmake --build .
sudo make install
这样就大功告成了,不需要去修改原本项目的CMakeLists.txt就能编译成功了。