Parse error at "BOOST_JOIN" with Boost 1.58 in moveit_ros/visalization package
enricovillagrossi opened this issue · comments
ERROR:
usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"
appear compiling visulization package.
It seems to be a known problem as reported here:
stonier/qt_ros#8
#399
already fixed after 0.5.13 (2014-02-06), but I still have the same problem, some workarounds proposed:
https://bugreports.qt.io/browse/QTBUG-22829
don't work for me. I'm trying to compiling both indigo-devel and jade-devel under debian/stretch with Boost 1.58 and Qt4 4.8.
Can anyone help me?
Thank you in advance!
Enrico
Make the following changes in files
trajectory_rviz_plugin/include/..../trajectory_display.h
#ifndef MOVEIT_TRAJECTORY_RVIZ_PLUGIN__TRAJECTORY_DISPLAY
#define MOVEIT_TRAJECTORY_RVIZ_PLUGIN__TRAJECTORY_DISPLAY
#include <rviz/display.h>
#include <moveit/rviz_plugin_render_tools/trajectory_visualization.h>
#ifndef Q_MOC_RUN
#include <ros/ros.h>
#include <moveit/rdf_loader/rdf_loader.h>
#endif
rviz_plugin_render_tools/include/..../trajectory_visualization
#ifndef MOVEIT_TRAJECTORY_RVIZ_PLUGIN__TRAJECTORY_VISUALIZATION
#define MOVEIT_TRAJECTORY_RVIZ_PLUGIN__TRAJECTORY_VISUALIZATION
#include <moveit/macros/class_forward.h>
#include <rviz/display.h>
#ifndef Q_MOC_RUN
#include <moveit/rviz_plugin_render_tools/robot_state_visualization.h>
#include <ros/ros.h>
#include <moveit/robot_model/robot_model.h>
#include <moveit/robot_state/robot_state.h>
#include <moveit/robot_trajectory/robot_trajectory.h>
#include <moveit_msgs/DisplayTrajectory.h>
#endif
namespace rviz
I was able to compile after this, but I am not sure if that is the right way of adding #ifndef
.
Thank you @nikhilkalige !
Your suggestion fix the problem.
Enrico
pull request?