- 命令
sudo apt-get install ros-kinetic-cv-bridge
sudo apt install libpcl-dev
- 之后编译遇到问题
The imported target “vtkRenderingPythonTkWidgets” references the file
“/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so”
but this file does not exist.
- 因为cv_bridge需要vtk6.2,所以
sudo apt install libvtk6.2-qt
- 还没解决,直接链接一个了
sudo ln -s /usr/lib/python2.7/dist-packages/vtk/libvtkRenderingPythonTkWidgets.x86_64-linux-gnu.so /usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so
sudo ln -s /usr/bin/vtk6 /usr/bin/vtk
- 另一个问题
The imported target “Qt5::Gui” references the file
“/usr/lib/x86_64-linux-gnu/libEGL.so”
but this file does not exist.
- 发现是libEGL.so链接的东西被删了,所以
cd /usr/lib/x86_64-linux-gnu
sudo rm libEGL.so
sudo ln -s libEGL.so.1 libEGL.so
- 接着又出现类似问题,解决方法类上
The imported target “Qt5::Gui” references the file
“/usr/lib/x86_64-linux-gnu/libGL.so”
but this file does not exist.