Ask Your Question
0

How to include "cvd/thread.h" header from boost?

asked 2019-02-07 23:50:56 -0600

updated 2019-02-08 04:57:59 -0600

Hello, I'm Kim. I'm using ROS1 Kinetic on Ubuntu 16.04.

I clone this project. And I checked out the kinetic-devel branch on it. I got errors from this project. Below log has those.

usr/include/boost/type_traits/detail/has_binary_operator.hpp:10:24: fatal error: cvd/thread.h: No such file or directory
compilation terminated.

What is the cvd/thread.h header?
I was trying to find it on my pc, but I couldn't find it.

Here is all of the logs.

In file included from /usr/include/boost/type_traits/has_plus.hpp:48:0,
                 from /usr/include/boost/next_prior.hpp:23,
                 from /usr/include/boost/utility.hpp:18,
                 from /usr/include/boost/range/size.hpp:25,
                 from /usr/include/boost/range/functions.hpp:20,
                 from /usr/include/boost/range/iterator_range_core.hpp:38,
                 from /usr/include/boost/lexical_cast.hpp:30,
                 from /opt/ros/kinetic/include/ros/transport_hints.h:34,
                 from /opt/ros/kinetic/include/ros/subscribe_options.h:33,
                 from /opt/ros/kinetic/include/ros/node_handle.h:42,
                 from /opt/ros/kinetic/include/ros/ros.h:45,
                 from /home/kwanghoe/Desktop/Posting/Vision_Message_Visualization/imu_visualization/catkin_ws/src/visualization_tutorials/visualization_marker_tutorials/src/points_and_lines.cpp:31:
/usr/include/boost/type_traits/detail/has_binary_operator.hpp:10:24: fatal error: cvd/thread.h: No such file or directory
compilation terminated.
visualization_tutorials/visualization_marker_tutorials/CMakeFiles/points_and_lines.dir/build.make:62: recipe for target 'visualization_tutorials/visualization_marker_tutorials/CMakeFiles/points_and_lines.dir/src/points_and_lines.cpp.o' failed
make[2]: *** [visualization_tutorials/visualization_marker_tutorials/CMakeFiles/points_and_lines.dir/src/points_and_lines.cpp.o] Error 1
CMakeFiles/Makefile2:2927: recipe for target 'visualization_tutorials/visualization_marker_tutorials/CMakeFiles/points_and_lines.dir/all' failed
make[1]: *** [visualization_tutorials/visualization_marker_tutorials/CMakeFiles/points_and_lines.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j8 -l8" failed

This is the source code which have error line.

on /usr/include/boost/type_traits/detail/has_binary_operator.hpp

#ifndef Q_MOC_RUN
#include "cvd/thread.h"
#include "tum_ardrone/filter_state.h"
#include "std_msgs/String.h"
#include "geometry_msgs/Twist.h"
#include "ardrone_autonomy/Navdata.h"
#include "ros/ros.h"
#include "sensor_msgs/Joy.h"
#include "std_srvs/Empty.h"
#include "std_msgs/Empty.h"
#endif
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-02-08 00:16:33 -0600

Hello, I solved this issue by myself. I just comment out all of header. like this.

/* Comment Out By User
#ifndef Q_MOC_RUN
#include "cvd/thread.h"
#include "tum_ardrone/filter_state.h"
#include "std_msgs/String.h"
#include "geometry_msgs/Twist.h"
#include "ardrone_autonomy/Navdata.h"
#include "ros/ros.h"
#include "sensor_msgs/Joy.h"
#include "std_srvs/Empty.h"
#include "std_msgs/Empty.h"
#endif
*/

Now it is working...
But I don't know wheather it'll make some other problem...

edit flag offensive delete link more

Comments

But I don't know wheather it'll make some other problem...

commenting all headers is not a good solution.

gvdhoorn gravatar imagegvdhoorn ( 2019-02-08 03:38:08 -0600 )edit

Hello, @gvdhoorn . But, I don't have any options. Someone who will want to use this way should understand this history to solve.

harderthan gravatar imageharderthan ( 2019-02-10 22:19:33 -0600 )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

1 follower

Stats

Asked: 2019-02-07 23:50:56 -0600

Seen: 110 times

Last updated: Feb 08