Skip to content

macOS Qt compilation errors apparently due to incorrect C++ standard  #51

@ljexplore

Description

@ljexplore

I'm trying to get Quarter to compile under macOS 10.15.7 (after running into X11 library issues with SoXt).

I have Coin3d installed via Homebrew, apparently version 4.0.0_1. I first tried automake configure, but that failed, then cmake. Cmake gets further, but I get a ton of Qt related compilation errors (see below) which appear to be due to the use of recent c++ language features. I tried setting the CXX_STANDARD in the CMakeLists.txt file and also setting the c++ standard also in Qmake .pro files but neither had any effect.

Any guidance would be much appreciated. Thanks!

make
[ 1%] Generating moc_SignalThread.cpp
[ 2%] Generating //include/Quarter/eventhandlers/moc_DragDropHandler.cpp
[ 4%] Generating //include/Quarter/eventhandlers/moc_EventFilter.cpp
[ 5%] Generating //include/Quarter/eventhandlers/moc_FocusHandler.cpp
[ 7%] Generating //include/Quarter/moc_QuarterWidget.cpp
[ 8%] Generating moc_ContextMenu.cpp
[ 10%] Generating moc_InteractionMode.cpp
[ 11%] Generating moc_SensorManager.cpp
[ 13%] Building CXX object src/Quarter/CMakeFiles/Quarter.dir/ContextMenu.cpp.o
In file included from /Users//Packages/src/quarter/src/Quarter/ContextMenu.cpp:34:
In file included from /Users//Packages/src/quarter/src/Quarter/ContextMenu.h:36:
In file included from /Users//Packages/homebrew/Cellar/qt@5/5.15.2/lib/QtCore.framework/Headers/QObject:1:
In file included from /Users//Packages/homebrew/Cellar/qt@5/5.15.2/lib/QtCore.framework/Headers/qobject.h:46:
In file included from /Users//Packages/homebrew/include/QtCore/qobjectdefs.h:48:
In file included from /Users//Packages/homebrew/include/QtCore/qnamespace.h:44:
/Users//Packages/homebrew/include/QtCore/qglobal.h:675:26: error: no template named 'enable_if_t' in namespace 'std'; did you mean
'enable_if'?
typename = std::enable_if_t<std::is_arithmetic_v && std::is_arithmetic_v &&
~~~~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:451:63: note: 'enable_if'
declared here
template <bool, class _Tp = void> struct _LIBCPP_TEMPLATE_VIS enable_if {};
^
In file included from /Users//Packages/src/quarter/src/Quarter/ContextMenu.cpp:34:
In file included from /Users//Packages/src/quarter/src/Quarter/ContextMenu.h:36:
In file included from /Users//Packages/homebrew/Cellar/qt@5/5.15.2/lib/QtCore.framework/Headers/QObject:1:
In file included from /Users//Packages/homebrew/Cellar/qt@5/5.15.2/lib/QtCore.framework/Headers/qobject.h:46:
In file included from /Users//Packages/homebrew/include/QtCore/qobjectdefs.h:48:
In file included from /Users//Packages/homebrew/include/QtCore/qnamespace.h:44:
/Users//Packages/homebrew/include/QtCore/qglobal.h:675:43: error: no template named 'is_arithmetic_v' in namespace 'std'; did you mean
'is_arithmetic'?
typename = std::enable_if_t<std::is_arithmetic_v && std::is_arithmetic_v &&

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions