From: Peter Seiderer Date: Mon, 19 Dec 2016 23:01:17 +0100 Subject: [Buildroot] [PATCH v1] libv4l: qv4l2 needs c++11 (since Qt5.7) Message-ID: <20161219220117.420-1-ps.report@gmx.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Fixes: .../host/usr/arm-buildroot-linux-gnueabihf/include/c++/5.4.0/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support \ ^ In file included from .../host/usr/arm-buildroot-linux-gnueabihf/include/c++/5.4.0/type_traits:35:0, from .../host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/qt5/QtCore/qglobal.h:45, Signed-off-by: Peter Seiderer --- Based on the 'qt5 bump to 5.8.0-rc' patch series by Andreas Naumann (see [1]) [1] http://lists.busybox.net/pipermail/buildroot/2016-December/179634.html --- package/libv4l/libv4l.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/libv4l/libv4l.mk b/package/libv4l/libv4l.mk index d55741426..f34ed4921 100644 --- a/package/libv4l/libv4l.mk +++ b/package/libv4l/libv4l.mk @@ -66,6 +66,8 @@ LIBV4L_CONF_ENV += \ ac_cv_prog_MOC=$(HOST_DIR)/usr/bin/moc \ ac_cv_prog_RCC=$(HOST_DIR)/usr/bin/rcc \ ac_cv_prog_UIC=$(HOST_DIR)/usr/bin/uic +# qt5 needs c++11 (since qt-5.7) +LIBV4L_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11" else ifeq ($(BR2_PACKAGE_QT_OPENGL_GL_DESKTOP),y) LIBV4L_CONF_OPTS += --enable-qv4l2 LIBV4L_DEPENDENCIES += qt -- 2.11.0