在将src文件移动至虚拟机的一个工作空间下时,进行catkin_make时出现如下错误:
CMake Error at /usr/share/cmake-3.16/Modules/FindQt4.cmake:1314 (message):
Found unsuitable Qt version “5.12.8” from /usr/bin/qmake, this code
requires Qt 4.x
Call Stack (most recent call first):
src/lidar/hector_slam/hector_geotiff/CMakeLists.txt:12 (find_package)
– Configuring incomplete, errors occurred!
See also “/home/rosyyds/roscar/build/CMakeFiles/CMakeOutput.log”.
See also “/home/rosyyds/roscar/build/CMakeFiles/CMakeError.log”.
Invoking “cmake” failed
原因:QT版本为5,而此文件需要的是QT4
解决方法:安装QT4并切换版本
版本切换:https://blog.youkuaiyun.com/lch_vison/article/details/80899039
qt4:http://ubuntuhandbook.org/index.php/2020/07/install-qt4-ubuntu-20-04/
http://blog.sina.com.cn/s/blog_9e0b568901017tar.html