Skip to content

Instantly share code, notes, and snippets.

@g-sherman
Created February 19, 2018 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save g-sherman/2763ba7f337106a9375d95c92432333d to your computer and use it in GitHub Desktop.
Save g-sherman/2763ba7f337106a9375d95c92432333d to your computer and use it in GitHub Desktop.
OS X Compile error / master 7701ea6
[ 57%] Building CXX object src/providers/grass/7/CMakeFiles/qgisgrass7.dir/__/qgsgrassoptions.cpp.o
In file included from /Users/gsherman/development/QGIS_3_new/src/providers/grass/qgsgrassoptions.cpp:22:
In file included from /Users/gsherman/development/QGIS_3_new/src/providers/grass/qgsgrassoptions.h:21:
In file included from /Users/gsherman/development/QGIS_3_new/src/gui/qgsoptionsdialogbase.h:21:
In file included from /Users/gsherman/development/QGIS_3_new/src/core/qgssettings.h:21:
In file included from /usr/local/opt/qt5/lib/QtCore.framework/Headers/QMetaEnum:1:
/usr/local/opt/qt5/lib/QtCore.framework/Headers/qmetaobject.h:231:9: error: static_assert failed "QMetaEnum::fromType
only works with enums declared as Q_ENUM or Q_FLAG"
Q_STATIC_ASSERT_X(QtPrivate::IsQEnumHelper<T>::Value,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/opt/qt5/include/QtCore/qglobal.h:732:47: note: expanded from macro 'Q_STATIC_ASSERT_X'
#define Q_STATIC_ASSERT_X(Condition, Message) static_assert(bool(Condition), Message)
^ ~~~~~~~~~~~~~~~
/Users/gsherman/development/QGIS_3_new/src/core/qgssettings.h:240:39: note: in instantiation of function template
specialization 'QMetaEnum::fromType<QgsRasterProjector::Precision>' requested here
QMetaEnum metaEnum = QMetaEnum::fromType<T>();
^
/Users/gsherman/development/QGIS_3_new/src/providers/grass/qgsgrassoptions.cpp:74:57: note: in instantiation of function
template specialization 'QgsSettings::enumSettingValue<QgsRasterProjector::Precision>' requested here
QgsRasterProjector::Precision crsTransform = settings.enumSettingValue( mImportSettingsPath + "/crsTransform"...
^
In file included from /Users/gsherman/development/QGIS_3_new/src/providers/grass/qgsgrassoptions.cpp:22:
In file included from /Users/gsherman/development/QGIS_3_new/src/providers/grass/qgsgrassoptions.h:21:
In file included from /Users/gsherman/development/QGIS_3_new/src/gui/qgsoptionsdialogbase.h:21:
In file included from /Users/gsherman/development/QGIS_3_new/src/core/qgssettings.h:21:
In file included from /usr/local/opt/qt5/lib/QtCore.framework/Headers/QMetaEnum:1:
/usr/local/opt/qt5/lib/QtCore.framework/Headers/qmetaobject.h:233:41: error: use of undeclared identifier
'qt_getEnumMetaObject'
const QMetaObject *metaObject = qt_getEnumMetaObject(T());
^
/usr/local/opt/qt5/lib/QtCore.framework/Headers/qmetaobject.h:234:28: error: use of undeclared identifier
'qt_getEnumName'
const char *name = qt_getEnumName(T());
^
3 errors generated.
make[2]: *** [src/providers/grass/7/CMakeFiles/qgisgrass7.dir/__/qgsgrassoptions.cpp.o] Error 1
make[1]: *** [src/providers/grass/7/CMakeFiles/qgisgrass7.dir/all] Error 2
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment