acfr / snark

generic c++ libraries and utilities for robotics
Other
69 stars 41 forks source link

qmake vs boost 1.58 #111

Closed andrew-hill closed 8 years ago

andrew-hill commented 8 years ago

It looks like #29 has resurfaced for me in some form...

Ubuntu 15.10 Boost 1.58.0 CMake 3.2.2 Qt4.8.6

[ 28%] Generating moc_view.cxx
usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"
graphics/qt3d/CMakeFiles/snark_graphics_qt3d.dir/build.make:54: recipe for target 'graphics/qt3d/moc_view.cxx' failed
make[3]: *** [graphics/qt3d/moc_view.cxx] Error 1
CMakeFiles/Makefile2:259: recipe for target 'graphics/qt3d/CMakeFiles/snark_graphics_qt3d.dir/all' failed
make[2]: *** [graphics/qt3d/CMakeFiles/snark_graphics_qt3d.dir/all] Error 2
CMakeFiles/Makefile2:221: recipe for target 'graphics/applications/CMakeFiles/view-points.dir/rule' failed
make[1]: *** [graphics/applications/CMakeFiles/view-points.dir/rule] Error 2
Makefile:206: recipe for target 'view-points' failed
make: *** [view-points] Error 2

I've confirmed that the QT4_WRAP_CPP( snark_graphics_qt3d_moc ${dir}/view.h OPTIONS -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED ) workaround is being called within CMake for the correct version of Qt, but don't know how the MOC and moc_view.cxx stuff works to know really where to look further than this...