Opened 4 years ago

Closed 4 years ago

#60643 closed defect (fixed)

pyotherside: error: Qt requires a C++11 compiler and yours does not seem to be that

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: amake (Aaron Madlon-Kay)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc:
Port: pyotherside

Description

pyotherside fails to build at least on Mavericks:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -mmacosx-version-min=10.9  -Os -Wall -W -fPIC -DQUICK_TEST_SOURCE_DIR="\"/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_pyotherside/pyotherside/work/thp-pyotherside-373cac2/qtquicktests\"" -DQT_NO_DEBUG -DQT_QMLTEST_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_TESTLIB_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR='"/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_pyotherside/pyotherside/work/thp-pyotherside-373cac2/qtquicktests"' -I. -I/opt/local/libexec/qt5/lib/QtQuickTest.framework/Headers -I/opt/local/libexec/qt5/lib/QtWidgets.framework/Headers -I/opt/local/libexec/qt5/lib/QtGui.framework/Headers -I/opt/local/libexec/qt5/lib/QtQml.framework/Headers -I/opt/local/libexec/qt5/lib/QtNetwork.framework/Headers -I/opt/local/libexec/qt5/lib/QtTest.framework/Headers -I/opt/local/libexec/qt5/lib/QtCore.framework/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/AGL.framework/Headers -I/opt/local/libexec/qt5/mkspecs/macx-clang -F/opt/local/libexec/qt5/lib -o qtquicktests.o qtquicktests.cpp
In file included from qtquicktests.cpp:1:
In file included from /opt/local/libexec/qt5/lib/QtQuickTest.framework/Headers/quicktest.h:43:
In file included from /opt/local/libexec/qt5/lib/QtQuickTest.framework/Headers/quicktestglobal.h:43:
In file included from /opt/local/libexec/qt5/lib/QtCore.framework/Headers/qglobal.h:97:
/opt/local/libexec/qt5/lib/QtCore.framework/Headers/qcompilerdetection.h:562:6: error: Qt requires a C++11 compiler and yours does not seem to be that.
#    error Qt requires a C++11 compiler and yours does not seem to be that.
     ^

clang++ on Mavericks does indeed support C++11 but is not in C++11 mode by default. You have to put it into C++11 mode by using the -std=c++11 flag in CXXFLAGS.

The port also needs compiler.cxx_standard 2011 to tell MacPorts to ensure that a C++11-capable compiler is used.

Change History (1)

comment:1 Changed 4 years ago by Aaron Madlon-Kay <aaron@…>

Resolution: fixed
Status: assignedclosed

In 0d43c0f13cfc2b5cc86e9bff5d5fc2ca54487f92/macports-ports (master):

pyotherside: specify C++11

Fixes #60643

Note: See TracTickets for help on using tickets.