Ask Your Question

[yocs_waypoints_navi]make fail due to missing "yocs_msgs/JoystickConfig.h"

asked 2019-05-07 01:09:10 -0500

macleonsh gravatar image

Hello, I am newbie for the ROS. I am trying to install the package of, but met the below make issue, I already follow the suggestion from here to run:

 sudo apt-get install ros-kinetic-yocs-velocity-smoother

The installation works fine, and the build already passed, but afdterwards get below issue and compilation terminated:

/catkin_ws/src/yujin_ocs/yocs_joyop/src/joyop.cpp:15:38: fatal error: yocs_msgs/JoystickConfig.h: No such file or directory
compilation terminated.
yujin_ocs/yocs_joyop/CMakeFiles/joyop.dir/build.make:62: recipe for target 'yujin_ocs/yocs_joyop/CMakeFiles/joyop.dir/src/joyop.cpp.o' failed
make[2]: *** [yujin_ocs/yocs_joyop/CMakeFiles/joyop.dir/src/joyop.cpp.o] Error 1
CMakeFiles/Makefile2:8887: recipe for target 'yujin_ocs/yocs_joyop/CMakeFiles/joyop.dir/all' failed
make[1]: *** [yujin_ocs/yocs_joyop/CMakeFiles/joyop.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j12 -l12" failed

I already installed the ros-kinetic-yocs-msgs package.

~/catkin_ws$ sudo apt-get install ros-kinetic-yocs-msgs 
[sudo] password for liangma: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
ros-kinetic-yocs-msgs is already the newest version (0.6.3-0xenial-20181107-005535-0800).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Anyone can help? Thanks so much!!

edit retag flag offensive close merge delete


Can you tell us why you install yocs_msgs and yocs_velocity_smoother using apt, but then build yocs_joyop from sources?

gvdhoorn gravatar image gvdhoorn  ( 2019-05-07 01:47:22 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-05-11 04:26:05 -0500

macleonsh gravatar image

Sorry I forget detail--later I simply git clone the most update code of ros-kinetic-yocs-msgs from github and do compiling (catkin-make) then it works OK..

Thanks a lot for the feedback anyway.

edit flag offensive delete link more


@gvdhoorn I can not find the "answered"check box on left side. Can you simply close this ticket ? thanks so much.

macleonsh gravatar image macleonsh  ( 2019-05-15 09:34:40 -0500 )edit

I can not find the "answered"check box on left side. Can you simply close this ticket ?

No, I won't close the question.

Instead I've converted your comment to an answer and accepted it for you.

Note though, as explained in #q322980, you should try to avoid building packages from sources, unless you have a good reason to do it. For released packages, there is no reason to go an hunt for all source repositories and maintaining a Catkin workspace in which you build them. Just use apt-get to install the binary packages.

gvdhoorn gravatar image gvdhoorn  ( 2019-05-15 09:41:25 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2019-05-07 01:09:10 -0500

Seen: 92 times

Last updated: May 07 '19