f1c7d55458
Fixes: - http://autobuild.buildroot.net/results/2db7292e251ce81d31187c3a9eb36dbc9236bd07 ../src/libcamera/v4l2_videodevice.cpp: In member function 'int libcamera::V4L2VideoDevice::allocateBuffers(unsigned int, std::vector<std::unique_ptr<libcamera::FrameBuffer> >*)': ../src/libcamera/v4l2_videodevice.cpp:1139:39: error: 'new' of type 'libcamera::V4L2BufferCache' with extended alignment 8 [-Werror=aligned-new=] 1139 | cache_ = new V4L2BufferCache(*buffers); | ^ ../src/libcamera/v4l2_videodevice.cpp:1139:39: note: uses 'void* operator new(std::size_t)', which does not have an alignment parameter ../src/libcamera/v4l2_videodevice.cpp:1139:39: note: use '-faligned-new' to enable C++17 over-aligned new support ../src/libcamera/v4l2_videodevice.cpp: In member function 'int libcamera::V4L2VideoDevice::importBuffers(unsigned int)': ../src/libcamera/v4l2_videodevice.cpp:1315:36: error: 'new' of type 'libcamera::V4L2BufferCache' with extended alignment 8 [-Werror=aligned-new=] 1315 | cache_ = new V4L2BufferCache(count); | ^ ../src/libcamera/v4l2_videodevice.cpp:1315:36: note: uses 'void* operator new(std::size_t)', which does not have an alignment parameter ../src/libcamera/v4l2_videodevice.cpp:1315:36: note: use '-faligned-new' to enable C++17 over-aligned new support Signed-off-by: Peter Seiderer <ps.report@gmx.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
83 lines
2.3 KiB
Makefile
83 lines
2.3 KiB
Makefile
################################################################################
|
|
#
|
|
# libcamera
|
|
#
|
|
################################################################################
|
|
|
|
LIBCAMERA_SITE = https://git.linuxtv.org/libcamera.git
|
|
LIBCAMERA_VERSION = 96fab38e02792a109c0d35ca2154e95a7b4c8fcb
|
|
LIBCAMERA_SITE_METHOD = git
|
|
LIBCAMERA_DEPENDENCIES = \
|
|
host-openssl \
|
|
host-pkgconf \
|
|
host-python3-pyyaml \
|
|
gnutls
|
|
LIBCAMERA_CONF_OPTS = \
|
|
-Dandroid=false \
|
|
-Ddocumentation=false \
|
|
-Dtest=false
|
|
LIBCAMERA_INSTALL_STAGING = YES
|
|
LIBCAMERA_LICENSE = \
|
|
LGPL-2.1+ (library), \
|
|
GPL-2.0+ (utils), \
|
|
MIT (qcam/assets/feathericons), \
|
|
BSD-2-Clause (raspberrypi), \
|
|
GPL-2.0 with Linux-syscall-note or BSD-3-Clause (linux kernel headers), \
|
|
CC0-1.0 (meson build system), \
|
|
CC-BY-SA-4.0 (doc)
|
|
LIBCAMERA_LICENSE_FILES = \
|
|
LICENSES/LGPL-2.1-or-later.txt \
|
|
LICENSES/GPL-2.0-or-later.txt \
|
|
LICENSES/MIT.txt \
|
|
LICENSES/BSD-2-Clause.txt \
|
|
LICENSES/GPL-2.0-only.txt \
|
|
LICENSES/Linux-syscall-note.txt \
|
|
LICENSES/BSD-3-Clause.txt \
|
|
LICENSES/CC0-1.0.txt \
|
|
LICENSES/CC-BY-SA-4.0.txt
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_7),y)
|
|
LIBCAMERA_CXXFLAGS = -faligned-new
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAMERA_V4L2),y)
|
|
LIBCAMERA_CONF_OPTS += -Dv4l2=true
|
|
else
|
|
LIBCAMERA_CONF_OPTS += -Dv4l2=false
|
|
endif
|
|
|
|
LIBCAMERA_PIPELINES-$(BR2_PACKAGE_LIBCAMERA_PIPELINE_IPU3) += ipu3
|
|
ifeq ($(BR2_PACKAGE_LIBCAMERA_PIPELINE_RASPBERRYPI),y)
|
|
LIBCAMERA_PIPELINES-y += raspberrypi
|
|
LIBCAMERA_DEPENDENCIES += boost
|
|
endif
|
|
LIBCAMERA_PIPELINES-$(BR2_PACKAGE_LIBCAMERA_PIPELINE_RKISP1) += rkisp1
|
|
LIBCAMERA_PIPELINES-$(BR2_PACKAGE_LIBCAMERA_PIPELINE_SIMPLE) += simple
|
|
LIBCAMERA_PIPELINES-$(BR2_PACKAGE_LIBCAMERA_PIPELINE_UVCVIDEO) += uvcvideo
|
|
LIBCAMERA_PIPELINES-$(BR2_PACKAGE_LIBCAMERA_PIPELINE_VIMC) += vimc
|
|
|
|
LIBCAMERA_CONF_OPTS += -Dpipelines=$(subst $(space),$(comma),$(LIBCAMERA_PIPELINES-y))
|
|
|
|
# gstreamer-video-1.0, gstreamer-allocators-1.0
|
|
ifeq ($(BR2_PACKAGE_GSTREAMER1)$(BR2_PACKAGE_GST1_PLUGINS_BASE),yy)
|
|
LIBCAMERA_CONF_OPTS += -Dgstreamer=enabled
|
|
LIBCAMERA_DEPENDENCIES += gstreamer1 gst1-plugins-base
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_QT5BASE_WIDGETS),y)
|
|
LIBCAMERA_DEPENDENCIES += qt5base
|
|
ifeq ($(BR2_PACKAGE_QT5TOOLS_LINGUIST_TOOLS),y)
|
|
LIBCAMERA_DEPENDENCIES += qt5tools
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_TIFF),y)
|
|
LIBCAMERA_DEPENDENCIES += tiff
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
LIBCAMERA_DEPENDENCIES += udev
|
|
endif
|
|
|
|
$(eval $(meson-package))
|