[libcamera-devel] [PATCH] build: Add 'std=c++11' compiler flag to libcamera
Kieran Bingham
kieran.bingham at ideasonboard.com
Wed Dec 12 14:35:31 CET 2018
Hi Jacopo,
On 12/12/2018 13:31, Jacopo Mondi wrote:
> 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')
Does this override - or add to the arguments I've already created in the
top level meson.build ?
As this will be a project wide requirement - could you add that argument
to the global cpp_arguments before they get added to the project please?
> --
> 2.7.4
>
> _______________________________________________
> libcamera-devel mailing list
> libcamera-devel at lists.libcamera.org
> https://lists.libcamera.org/listinfo/libcamera-devel
>
--
Regards
--
Kieran
More information about the libcamera-devel
mailing list