Error compiling a qt5 application
lobo at bsd.com.br
Mon Aug 21 23:16:14 UTC 2017
I'm trying to compile a qt5 application.
OS: reeBSD 11.1-STABLE #0 r321652: Sat Jul 29 10:49:43 BRT 2017
clang version 4.0.1 (tags/RELEASE_401/final)
Thread model: posix
When I compile, I get this:
In file included from ../../../../../contrib/gtqtc/gtqtc1.cpp:48:
In file included from ../../../../../contrib/gtqtc/gtqtc.h:53:
In file included from /usr/local/include/qt5/QtCore/QThread:1:
In file included from /usr/local/include/qt5/QtCore/qthread.h:43:
In file included from /usr/local/include/qt5/QtCore/qobject.h:46:
In file included from /usr/local/include/qt5/QtCore/qobjectdefs.h:48:
In file included from /usr/local/include/qt5/QtCore/qnamespace.h:43:
In file included from /usr/local/include/qt5/QtCore/qglobal.h:83:
/usr/local/include/qt5/QtCore/qcompilerdetection.h:563: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.
I tried this in make.conf:
and export CXXFLAGS=-std=c++11
and nothing seems to work.
It seems to me that my clang is new enough to support that standard.
What am i missing here?
FreeBSD since 2.2.8 [not Pro-Audio.... YET!!]
"UNIX was not designed to stop you from doing stupid things,
because that would also stop you from doing clever things."
More information about the freebsd-questions