Skip to contentSkip to conversation

libv4l: qv4l2 needs c++11 (since Qt5.7)

PATCH Superseded Peter Seiderer 1 participant 1 message Dec 19, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libv4l: qv4l2 needs c++11 (since Qt5.7)

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,

---
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(+)
package/libv4l/libv4l.mk +2 -0
index d55741426..f34ed4921 100644
@@ -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
Signature · 1 line
2.11.0