elevation_mapping
elevation_mapping copied to clipboard
catkin build error
I successfully build the dependencies including kindr_ros and grid_map and make install the kindr repo.
The kindrConfig.cmake is installed : -- Installing: /usr/local/share/kindr/cmake/kindrConfig.cmake
But when I catkin build the elevation_mapping repo, it shows the following error :
Errors << elevation_mapping:cmake /home/wei/catkin_ws/logs/elevation_mapping/build.cmake.005.log CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "kindr" with any of the following names:
kindrConfig.cmake
kindr-config.cmake
Add the installation prefix of "kindr" to CMAKE_PREFIX_PATH or set "kindr_DIR" to a directory containing one of the above files. If "kindr" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:7 (find_package)
Any comments would be helpful, thanks!
Hi @Levi568, it can't find the kindr package in the installed path (/usr/local/share/kindr/cmake/). This can have several reasons. In which workspace are you building kindr_ros
?
@maximilianwulf I successfully built the kindr_ros package in catkin workspace.
It looks like that the paths are not set correctly. Can you copy-paste the output of catkin config
?
@maximilianwulf
Profile: default Extending: [cached] /opt/ros/melodic Workspace: /home/wei/catkin_ws
Build Space: [exists] /home/wei/catkin_ws/build Devel Space: [exists] /home/wei/catkin_ws/devel Install Space: [unused] /home/wei/catkin_ws/install Log Space: [exists] /home/wei/catkin_ws/logs Source Space: [exists] /home/wei/catkin_ws/src DESTDIR: [unused] None
Devel Space Layout: linked Install Space Layout: None
Additional CMake Args: None Additional Make Args: None Additional catkin Make Args: None Internal Make Job Server: True Cache Job Environments: False
Whitelisted Packages: None Blacklisted Packages: None
Workspace configuration appears valid.
Is the kindr_ros
package located inside /home/wei/catkin_ws/src
?
Yes, and I built it successfully.
Hi! I meet the same problem,Did you solve it?Can you tall me how to solve it?
@Levi568 @maximilianwulf
@Old-Man-Reality Unfortunately, I didn't end up solving this issue.
I solve it just now,you can take the kind_ros package to the elevation_mapping_ws/src,then elevation_mapping package and the kindr_ros package int the same src,finally you use catkin_make.the problem is solved.
@Levi568
Changing the CMakeList to find kindr using find_package(kindr REQUIRED)
stabilized catkin build
for me since it's an external, non-ros, library.
@NmBoyd what is the general workflow when git cloning this repo?
I assume that as an open-source use you have to install the package dependencies with http://wiki.ros.org/rosdep?
Edit: Ah because it is a non-ros library. I see :thinking:
2nd Edit: Does rosdep install --from-paths catkin_ws/src/elevation_mapping
work for you? Or rosdep install --from-paths src --ignore-src -r -y
I encountered this problem when I was using catkin build
to compile code. However catkin_make
works fine.
sudo ln -s /usr/local/share/kindr /opt/ros/<ros_version>/share/kindr
That works for me.
Hi, The solution is create a new workspace. Add kinder_ros package and https://github.com/ANYbotics/message_logger.git package and then build it using catkin_make. It worked for me.
Changing the CMakeList to find kindr using
find_package(kindr REQUIRED)
stabilizedcatkin build
for me since it's an external, non-ros, library.
This solve the issue, since I am also using catkin build