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

rqt_image_view: error with MOC generated code, having parsing problems with BOOST_JOIN #206

Closed
venabled opened this issue Jan 22, 2014 · 3 comments
Labels

Comments

@venabled
Copy link

When trying to compile rqt_image_view on OS X (10.9) using boost 1.55 and QT 4.8.5_1, I'm getting the following:

:info:build [ 14%] [ 28%] Generating include/rqt_image_view/moc_image_view.cxx
:info:build Generating include/rqt_image_view/moc_ratio_layouted_frame.cxx
:info:build opt/local/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"
:info:build make[2]: *** [include/rqt_image_view/moc_image_view.cxx] Error 1
:info:build make[1]: *** [CMakeFiles/rqt_image_view.dir/all] Error 2

Looks to be similar to the problems back in ros/ros_tutorials#6 related to the QT 4.8 bug https://bugreports.qt-project.org/browse/QTBUG-22829

@wjwwood It looks like the workaround is to wrap headers with some directives to only be included when MOC isn't being called. My question is which ones?

@wjwwood
Copy link
Member

wjwwood commented Jan 22, 2014

Yes, it is a collision with Boost and Qt macros. I did a similar patch in rviz:

ros-visualization/rviz#589

@dirk-thomas
Copy link
Contributor

I can not reproduce the problem on any platform (Quantal, Trusty, ...). Please consider creating a patch similar as for the linked other packages.

@dirk-thomas
Copy link
Contributor

Sicce there was no further response on this ticket I assume it is not a problem anymore. If it still is please comment with more information / consider providing a pull request to make it work on your platform. Then the ticket can be reopened,

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

No branches or pull requests

3 participants