From patchwork Wed Dec 12 13:31:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 40 Return-Path: Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id E4B6560A71 for ; Wed, 12 Dec 2018 14:31:09 +0100 (CET) X-Originating-IP: 2.224.242.101 Received: from w540.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 75C801BF208; Wed, 12 Dec 2018 13:31:09 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Wed, 12 Dec 2018 14:31:03 +0100 Message-Id: <1544621463-4512-1-git-send-email-jacopo@jmondi.org> X-Mailer: git-send-email 2.7.4 Subject: [libcamera-devel] [PATCH] build: Add 'std=c++11' compiler flag to libcamera X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Dec 2018 13:31:10 -0000 Building the current master branch fails with: ./src/libcamera/include/log.h:25:34: error: defaulted and deleted functions only available with -std=c++11 \ or -std=gnu++11 [-Werror] LogMessage(const LogMessage&) = delete; Fix this by adding the 'std=c++11' compiler argument to the src/libcamera build file. Signed-off-by: Jacopo Mondi --- src/libcamera/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build index 0c44b5a..4457cde 100644 --- a/src/libcamera/meson.build +++ b/src/libcamera/meson.build @@ -16,4 +16,5 @@ includes = [ libcamera = shared_library('camera', libcamera_sources, install : true, - include_directories : includes) + include_directories : includes, + cpp_args : '-std=c++11')