melodic中catkin_make报错

#1

CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by “hector_mapping”
with any of the following names:

hector_mappingConfig.cmake
hector_mapping-config.cmake

Add the installation prefix of “hector_mapping” to CMAKE_PREFIX_PATH or set
“hector_mapping_DIR” to a directory containing one of the above files. If
“hector_mapping” provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
ROS-Academy-for-Beginners/slam_sim_demo/CMakeLists.txt:3 (find_package)

– Configuring incomplete, errors occurred!
See also “/home/mt/tutorial_ws/build/CMakeFiles/CMakeOutput.log”.
See also “/home/mt/tutorial_ws/build/CMakeFiles/CMakeError.log”.
Invoking “cmake” failed

刚开始是没有没有gmapping和hector_mapping这两个依赖,安装之后cmake编译的时候,找不到hector_mapping的配置文件
运行rosdep install --from-paths src --ignore-src --rosdistro=kinetic -y显示已安装所有依赖包了
请问有前辈知道如何解决么

#2

从log上看是两个版本不一样

安装的时候用的是 melodic

安装的时候尝试的是 kinetic

将 kinetic 部分改成跟 melodic一致的试试看。