Robotics StackExchange | Archived questions

Cmake Error when installing

Hey guys I am attemping to source and install a autonomous navigating robot project built on ros indigo and found at this link

https://github.com/sungjik/my_personal_robotic_companion

I follow the following instructions to install and source into a catkin ws.

cd ~

mkdir -p catkin_ws/src

Then check out the package into it:

cd ~/catkinws/src git clone https://github.com/sungjik/mypersonalroboticcompanion.git

Install dependencies:

cd ~/catkin_ws rosdep install --from-paths src -i -y

(If rosdep still reports missing dependencies, check their source out into your workspace too)

And finally, build and source your workspace:

cd ~/catkinws catkinmake source devel/setup.bash

As soon as I run catkinmake its working for a few seconds then near the end I get the following error - +++ processing catkin package: 'mypersonalroboticcompanion' -- ==> addsubdirectory(mypersonalroboticcompanion/mypersonalroboticcompanion) -- Using these message generators: gencpp;genlisp;genpy CMake Error at /opt/ros/indigo/share/catkin/cmake/catkinpackage.cmake:296 (message): catkinpackage() include dir 'include' does not exist relative to '/home/kuljot/catkinws/src/mypersonalroboticcompanion/mypersonalroboticcompanion' Call Stack (most recent call first): /opt/ros/indigo/share/catkin/cmake/catkinpackage.cmake:98 (catkinpackage) mypersonalroboticcompanion/mypersonalroboticcompanion/CMakeLists.txt:86 (catkinpackage)

-- Configuring incomplete, errors occurred! See also "/home/kuljot/catkinws/build/CMakeFiles/CMakeOutput.log". See also "/home/kuljot/catkinws/build/CMakeFiles/CMakeError.log". make: *** [cmakecheckbuildsystem] Error 1 Invoking "make cmakecheckbuildsystem" failed kuljot@kuljot-Lenovo-IdeaPad-U530-Touch:~/catkin_ws$

The link to the cmakelists.txt fille is below

https://github.com/sungjik/my_personal_robotic_companion/blob/master/my_personal_robotic_companion/CMakeLists.txt

Can someone please help me debug what is wrong. I know other people online have been able to launch this project but I have no way of contacting them to see if they had to fix any issues with this.

Thanks!!

Asked by kuljotdhami on 2016-04-04 12:18:19 UTC

Comments

hello, i experience the same problem and couldn't really understand the answer that ahendrix given, could you please tell me how i can create an empty include directory in the my_personal_robotic_companion package or which line should i delete in the CMakeLists ( and which CMakeList)? thx

Asked by dana.dhanugraha on 2016-12-31 02:08:19 UTC

Answers

The catkin_package call at https://github.com/sungjik/my_personal_robotic_companion/blob/eccc191db284954f72a2ca5954a5950e7d2509a8/my_personal_robotic_companion/CMakeLists.txt#L86-L91 specifies that the include directory should be exported to downstream packages, and the cmake error is telling you that that directory does not exist.

You could either try to delete the line that references the include directory from the CMakeLists, or you could create an empty include directory inside the my_personal_robotic_companion package.

Asked by ahendrix on 2016-04-04 12:37:43 UTC

Comments

Thank you that worked. I have one more small issue. Everything launches perfectly one. Then when I try to launch it again it acts like my_personal_robotic_companion is not installed using rospack find command. Randomly it works and randomly it think I dont have the package installed. Any thoughts?

Asked by kuljotdhami on 2016-04-04 13:03:21 UTC

Each time you open a new shell (terminal) you need to source your workspace again. You can also add the source command to your ~/.bashrc so that it runs for each new shell.

Asked by ahendrix on 2016-04-04 13:08:02 UTC

Thank you for your help brother.

Asked by kuljotdhami on 2016-04-04 13:20:31 UTC