From patchwork Thu Feb 2 19:08:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 723271 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vDqK16t9Gz9s4s for ; Fri, 3 Feb 2017 06:08:21 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4370188D32; Thu, 2 Feb 2017 19:08:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bFUdkRUXfXKs; Thu, 2 Feb 2017 19:08:16 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 150C688E8A; Thu, 2 Feb 2017 19:08:16 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 921D31C0412 for ; Thu, 2 Feb 2017 19:08:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9315888D32 for ; Thu, 2 Feb 2017 19:08:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vMGcFzFn36Pk for ; Thu, 2 Feb 2017 19:08:13 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by whitealder.osuosl.org (Postfix) with ESMTPS id 7119D88CD6 for ; Thu, 2 Feb 2017 19:08:13 +0000 (UTC) Received: from linux.local ([178.10.180.15]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MSduu-1d0yJa201s-00RbAi; Thu, 02 Feb 2017 20:08:10 +0100 From: Peter Seiderer To: buildroot@busybox.net Date: Thu, 2 Feb 2017 20:08:08 +0100 Message-Id: <20170202190808.25242-1-ps.report@gmx.net> X-Mailer: git-send-email 2.11.0 X-Provags-ID: V03:K0:BsoRuJp47llmb9JdPStWHKzSBVAjoyR/TEWTLMPAXslgI5NAXEO BLlrLzKzOIteGjV/QE03Mnbz8wkq+SikUDXyR4amjN2jR9UYcN5KwKcte+6rL0jNv/3QX/9 OQvPPKBV7BQg3oH9SGRzWLN5dBsoEt4UahhnyxfEWeiX3ePNfgFwnyXbBJU/TcFG2NMyvn6 IMi0qgTWrjMxyGuGjvKRw== X-UI-Out-Filterresults: notjunk:1; V01:K0:6wkYsDZwNLk=:qytJ9DMReF+biVl2Jv/wy1 fUo7+SdjBsoPgEwcuO/TRSpy5IWcwgjI8Z/3zi6EjNJqcQ1shWPpw9mV5SAZAw5o6dFvqd1Vh ZOHh3Jwo7CSm5n/sW1sMHAB2V14sC8aXyc3a3trU9PB0nvbPmhyGTFYZ+BBFZZQKK9QLwfpre maoDVqNdHFbS78mNWcoX+WEy4aucNR5IhkykOSKo7BNU4EQDAsNRpt3Yo88ADwAHhGFf9ivCa SFd0FWjr0fOAzmjJr3IsshqcgO/LYapz1TsEO/U3HtUe62ghH9xQa2G1gVSkrfoawCtHIX+hO ddVvf27qlP9BUpmOFECCJv3bIoE88T29Pz4cdikBUonzSvjWO22sXKTScC80WxwriwboniFsL j3WF0Ss/brhUE10eB6EeQnKpmKNPaSF81Bb8QzwWi4XDx7lh/l1UEPIvh8xFnOJbmYukqtCV2 +9AUYUGcm6YumbV8+B8DUaKlMRCR6TlCmmsoKAf33oc5yxOHIyDKWfkIx5nHal1g7wmBOJvMF Ga7vX61FAQMVWdlUOZjgDDW+gWIdOFcvFNNUu1iUhu+taqNGoZo2a8bpPJWdpqJwxeOFqxwMM XUwl8DLgzgXAfH8GLyRDVllgbHI7WQx5buyl7KTWyIGBgcPqDSU+edt3yHLVqQ+/TGznLoK2V +uMmFMVWv95kat9VKOuvf5xSRKFDTwu1X3m4cDPPjrYE/02AEb7roX+PNI5o11uoX6wNZcfax ZervXgLHRPbeUiiZC6B7ig0XxvLf7uupDmfPaY1cwWoNc/BieVgX6MorGEA= Subject: [Buildroot] [PATCH v2] libv4l: qv4l2 needs c++11 (since Qt5.7) X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" 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' patch series by Julien Corjon, Andreas Naumann and Zoltan Gyarmati (see [1]) [1] http://lists.busybox.net/pipermail/buildroot/2017-January/182603.html --- package/libv4l/libv4l.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/libv4l/libv4l.mk b/package/libv4l/libv4l.mk index d55741426..2bb088576 100644 --- a/package/libv4l/libv4l.mk +++ b/package/libv4l/libv4l.mk @@ -66,6 +66,10 @@ 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 +# since Qt5.7.x c++11 is needed (LTS Qt5.6.x is the last one without this requirement) +ifneq ($(BR2_QT5_VERSION_5_6),y) +LIBV4L_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11" +endif else ifeq ($(BR2_PACKAGE_QT_OPENGL_GL_DESKTOP),y) LIBV4L_CONF_OPTS += --enable-qv4l2 LIBV4L_DEPENDENCIES += qt