Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catkin_make error for drone_gui on Ubuntu 14.04 + ROS Indigo #78

Open
azwadsabik opened this issue Mar 13, 2016 · 7 comments
Open

catkin_make error for drone_gui on Ubuntu 14.04 + ROS Indigo #78

azwadsabik opened this issue Mar 13, 2016 · 7 comments

Comments

@azwadsabik
Copy link

Hi,

I'm attempting to build your package using the following:

cd catkin_ws/src
git clone https://github.com/tum-vision/tum_ardrone.git -b indigo-devel
cd ..
rosdep install tum_ardrone
catkin_make

but run into the following error:

[ 69%] Built target drone_autopilot
[ 89%] Built target drone_stateestimation
usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"
make[2]: *** [tum_ardrone/src/UINode/moc_RosThread.cxx] Error 1
make[1]: *** [tum_ardrone/CMakeFiles/drone_gui.dir/all] Error 2
make: *** [all] Error 2
Invoking "make -j4 -l4" failed

I am unsure how to approach this - any advice?

This is on Ubuntu 14.04, and I believe I have Boost 1.54 installed.

Any help would be appreciated.

@DirtOnTheWire
Copy link

DirtOnTheWire commented Jan 12, 2017

Hey I'm late but I just got started messing with drones. QT and boost seems to not always play nice together. In 16.04 it gets the same error because of qt5.
Adding this to workaround your #include for all packages giving issues will work around qt5 since things are ported to qt5.

Basically you are adding 2 lines.
#ifndef Q_MOC_RUN
#endif

It ends up looking like this in RosThread.h.

#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

@shubhraD
Copy link

shubhraD commented Apr 9, 2017

@SpaceMingebag I had the same issue and your solution worked thanks a lot

@tiralonghipol
Copy link

solved my problem too !
ros-kinetic ubuntu 16.04

@ashibhuvan
Copy link

Worked for me! Great thank you so much @SpaceMingebag
Also running ROS-KINETIC:

Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial

If anyone needs the actual RosThread file that worked for compiling message me

@melhazzouri
Copy link

Hi I am trying to use tum_ardrone on ros kinetic. where do I add these two lines. Any help would be really appreciated!

@20chix
Copy link

20chix commented Feb 26, 2019

Hi I am trying to use tum_ardrone on ros kinetic. where do I add these two lines. Any help would be really appreciated!

RosThread.h

@Fred159
Copy link

Fred159 commented Feb 6, 2020

Hey I'm late but I just got started messing with drones. QT and boost seems to not always play nice together. In 16.04 it gets the same error because of qt5.
Adding this to workaround your #include for all packages giving issues will work around qt5 since things are ported to qt5.

Basically you are adding 2 lines.
#ifndef Q_MOC_RUN
#endif

It ends up looking like this in RosThread.h.

#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

Also work for me~ 16.04 ubuntu and ROS Kinetic.
Thank you so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants