already install package[nav_msgs] with command[sudo apt install ros-melodic-nav-msgs] ,but catkin_make still will output error cant find nav_msg
already install package[nav_msgs] with command[sudo apt install ros-melodic-nav-msgs] ,but catkin_make still will output error cant find nav_msg
CMake Error at /home/lzw/anaconda3/envs/s_re/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "nav_msgs" with any
of the following names:
nav_msgsConfig.cmake
nav_msgs-config.cmake
Add the installation prefix of "nav_msgs" to CMAKE_PREFIX_PATH or set
"nav_msgs_DIR" to a directory containing one of the above files. If
"nav_msgs" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
loam_velodyne-master/CMakeLists.txt:4 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/lzw/nd/sem2/AD/project/code/LOAM_WS/build/CMakeFiles/CMakeOutput.log".
See also "/home/lzw/nd/sem2/AD/project/code/LOAM_WS/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
Can you find some floder name like "nav_msgs" in
devel/share
of your catkin workspace? If you have ever clone some offical source code in your workspace and make them, the issue may have a strong relative with this.Please check if
works for you. If not, you can type
and try first command again
hi ,i find it is the conda 's problem, i forget i use conda to create a env called [ros_env],but run catkin_make in another env (we could call it B env) created by conda ; in B env :
rospack find nav_msgs [rospack] Error: package 'nav_msgs' not found
in ros_env:
rospack find nav_msgs /opt/ros/melodic/share/nav_msgs