[libcamera-devel] [PATCH] build: Add 'std=c++11' compiler flag to libcamera

Jacopo Mondi jacopo at jmondi.org
Wed Dec 12 14:31:03 CET 2018


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 <jacopo at jmondi.org>
---
 src/libcamera/meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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')
--
2.7.4



More information about the libcamera-devel mailing list