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

qt moc fails during build #7

Open
vbargsten opened this issue Jul 19, 2021 · 0 comments
Open

qt moc fails during build #7

vbargsten opened this issue Jul 19, 2021 · 0 comments

Comments

@vbargsten
Copy link

Getting a similar error as described here rock-core/base-types#131
or here https://forum.qt.io/topic/22458/semi-solved-qt5-moc-error-in-combination-with-boost/3

/usr/include/boost/predef/language/stdc.h:52: Parse error at "defined"

System: Ubuntu 18.04.5 LTS

Compilation continues with the following changes:

diff --git a/viz/SpatioTemporalContourMapVisualization.hpp b/viz/SpatioTemporalContourMapVisualization.hpp
index a0144e3..dd9ed1c 100644
--- a/viz/SpatioTemporalContourMapVisualization.hpp
+++ b/viz/SpatioTemporalContourMapVisualization.hpp
@@ -27,12 +27,14 @@
 #ifndef envire_maps_SpatioTemporalContourMapVisualization_H
 #define envire_maps_SpatioTemporalContourMapVisualization_H
 
+#ifndef Q_MOC_RUN
 #include <boost/noncopyable.hpp>
 #include <vizkit3d/Vizkit3DPlugin.hpp>
 #include <osg/Geode>
 #include <envire_core/items/SpatioTemporal.hpp>
 #include <vizkit3d/ContourMapVisualization.hpp>
 #include <maps/geometric/ContourMap.hpp>
+#endif
 
 namespace vizkit3d
 {
diff --git a/viz/SpatioTemporalElevationMapVisualization.hpp b/viz/SpatioTemporalElevationMapVisualization.hpp
index 28e056d..7af51f6 100644
--- a/viz/SpatioTemporalElevationMapVisualization.hpp
+++ b/viz/SpatioTemporalElevationMapVisualization.hpp
@@ -27,12 +27,14 @@
 #ifndef envire_maps_SpatioTemporalElevationMapVisualization_H
 #define envire_maps_SpatioTemporalElevationMapVisualization_H
 
+#ifndef Q_MOC_RUN
 #include <boost/noncopyable.hpp>
 #include <vizkit3d/Vizkit3DPlugin.hpp>
 #include <osg/Geode>
 #include <envire_core/items/SpatioTemporal.hpp>
 #include <maps/grid/ElevationMap.hpp>
 #include <vizkit3d/ElevationMapVisualization.hpp>
+#endif
 
 namespace vizkit3d
 {
diff --git a/viz/SpatioTemporalGridMapVisualization.hpp b/viz/SpatioTemporalGridMapVisualization.hpp
index c88b16f..bcf61c0 100644
--- a/viz/SpatioTemporalGridMapVisualization.hpp
+++ b/viz/SpatioTemporalGridMapVisualization.hpp
@@ -27,12 +27,14 @@
 #ifndef envire_maps_SpatioTemporalGridMapVisualization_H
 #define envire_maps_SpatioTemporalGridMapVisualization_H
 
+#ifndef Q_MOC_RUN
 #include <boost/noncopyable.hpp>
 #include <vizkit3d/Vizkit3DPlugin.hpp>
 #include <osg/Geode>
 #include <envire_core/items/SpatioTemporal.hpp>
 #include <vizkit3d/GridMapVisualization.hpp>
 #include <maps/grid/GridMap.hpp>
+#endif
 
 namespace vizkit3d
 {
diff --git a/viz/SpatioTemporalTraversabilityGridVisualization.hpp b/viz/SpatioTemporalTraversabilityGridVisualization.hpp
index b89422c..df3f0d7 100644
--- a/viz/SpatioTemporalTraversabilityGridVisualization.hpp
+++ b/viz/SpatioTemporalTraversabilityGridVisualization.hpp
@@ -26,13 +26,14 @@
 
 #ifndef envire_maps_SpatioTemporalTraversabilityGridVisualization_H
 #define envire_maps_SpatioTemporalTraversabilityGridVisualization_H
-
+#ifndef Q_MOC_RUN
 #include <boost/noncopyable.hpp>
 #include <vizkit3d/Vizkit3DPlugin.hpp>
 #include <osg/Geode>
 #include <envire_core/items/SpatioTemporal.hpp>
 #include <vizkit3d/TraversabilityGridVisualization.hpp>
 #include <maps/grid/TraversabilityGrid.hpp>
+#endif
 
 namespace vizkit3d
 {

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

1 participant