elevation_mapping icon indicating copy to clipboard operation
elevation_mapping copied to clipboard

catkin build error

Open Levi568 opened this issue 4 years ago • 16 comments

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!

Levi568 avatar Nov 15 '19 18:11 Levi568

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 avatar Nov 18 '19 07:11 maximilianwulf

@maximilianwulf I successfully built the kindr_ros package in catkin workspace.

Levi568 avatar Nov 18 '19 15:11 Levi568

It looks like that the paths are not set correctly. Can you copy-paste the output of catkin config?

maximilianwulf avatar Nov 19 '19 07:11 maximilianwulf

@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.

Levi568 avatar Nov 19 '19 22:11 Levi568

Is the kindr_ros package located inside /home/wei/catkin_ws/src?

maximilianwulf avatar Nov 20 '19 10:11 maximilianwulf

Yes, and I built it successfully.

Levi568 avatar Nov 20 '19 18:11 Levi568

Hi! I meet the same problem,Did you solve it?Can you tall me how to solve it?

Old-Man-Reality avatar Jul 19 '20 01:07 Old-Man-Reality

@Levi568 @maximilianwulf

Old-Man-Reality avatar Jul 19 '20 01:07 Old-Man-Reality

@Old-Man-Reality Unfortunately, I didn't end up solving this issue.

Levi568 avatar Jul 19 '20 02:07 Levi568

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.

Old-Man-Reality avatar Jul 19 '20 03:07 Old-Man-Reality

@Levi568

Old-Man-Reality avatar Jul 19 '20 03:07 Old-Man-Reality

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 avatar Jul 11 '22 23:07 NmBoyd

@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

maximilianwulf avatar Jul 12 '22 10:07 maximilianwulf

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.

skywalker-dell avatar Nov 04 '22 13:11 skywalker-dell

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.

naveenkumar2208 avatar Apr 08 '23 18:04 naveenkumar2208

Changing the CMakeList to find kindr using find_package(kindr REQUIRED) stabilized catkin build for me since it's an external, non-ros, library.

This solve the issue, since I am also using catkin build

amgaber95 avatar Apr 27 '23 06:04 amgaber95