From patchwork Fri Feb 23 17:47:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 19533 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 94DEFC3263 for ; Fri, 23 Feb 2024 17:47:26 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 0373C62861; Fri, 23 Feb 2024 18:47:25 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="ZdCcSfU+"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 35E73627FD for ; Fri, 23 Feb 2024 18:47:23 +0100 (CET) Received: from Monstersaurus.local (aztw-30-b2-v4wan-166917-cust845.vm26.cable.virginm.net [82.37.23.78]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 925119CA; Fri, 23 Feb 2024 18:47:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1708710433; bh=FV3bMk5fYo9RTRrntdSl3g9Ue4jDQFf2DPcHXr6TPX4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZdCcSfU+g+2WfLLNeCXEqBWEiUr0BFTU8/lW2gOhjqwcOftlqedsiWx8NSwLYr6HL OynP2Z38Hvl4Koauxj3rzwICu9T3BrO8KAcRO7YYIvAqkzeuJKcfrwGH5WENNhRwlK kzcQA3lULZ857oaunFL5mXid/XxWGnP03qvC2fdI= From: Kieran Bingham To: libcamera devel Subject: [PATCH v2 1/2] README.rst: Report py dependencies Date: Fri, 23 Feb 2024 17:47:17 +0000 Message-Id: <20240223174718.198950-2-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240223174718.198950-1-kieran.bingham@ideasonboard.com> References: <20240223174718.198950-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The Python bindings were supported by a subproject when they were first contributed to be able to directly make use of the smart pointers branch. This requirement has now been removed to prefer using released versions of pybind11 directly, however the README.rst was not updated to reference and reflect this. Update the README.rst to report the pybind11 package which needs to be installed to make use of the optional Python bindings component. Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart Signed-off-by: Kieran Bingham --- README.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.rst b/README.rst index cb73c1a0218d..1da7a3d65496 100644 --- a/README.rst +++ b/README.rst @@ -96,6 +96,9 @@ for tracing with lttng: [optional] for android: [optional] libexif-dev libjpeg-dev +for Python bindings: [optional] + pybind11-dev + for lc-compliance: [optional] libevent-dev libgtest-dev From patchwork Fri Feb 23 17:47:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 19534 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id C2272C0F1B for ; Fri, 23 Feb 2024 17:47:27 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id E530B62813; Fri, 23 Feb 2024 18:47:25 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="ujblBtiB"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 3FAF461CA1 for ; Fri, 23 Feb 2024 18:47:23 +0100 (CET) Received: from Monstersaurus.local (aztw-30-b2-v4wan-166917-cust845.vm26.cable.virginm.net [82.37.23.78]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id CAAB514B1; Fri, 23 Feb 2024 18:47:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1708710433; bh=8mVtX8l+ezpYxLbdX2mHQU0eCEMZYgkNmWCPhM0zNqE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ujblBtiBRC0CvQuaENM1Div6uTl1z/4Rg1Jrbz2vXOiI+aRc5qasHlUDk2798ltqv pHIhigkJv7vld6tOtNb9UaCbeByPlVqi9kOZ6fLYprSXQZ8Y4Qmk93tAHNXCtlWl2H y/q1ZWLcd1a8heNXA9cTloqs8d71xvIPzs9I89S4= From: Kieran Bingham To: libcamera devel Subject: [PATCH v2 2/2] meson_options: Autodetect pycamera support Date: Fri, 23 Feb 2024 17:47:18 +0000 Message-Id: <20240223174718.198950-3-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240223174718.198950-1-kieran.bingham@ideasonboard.com> References: <20240223174718.198950-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The pycamera was defaulted to be disabled due to a requirement on a specialised branch of the pybind dependency. This requirement on a subproject has been removed and we can now build the pycamera component provided that the distribution packages pybind directly which is common. Enable the pycamera build option to be selected automatically when both Python and pybind are detected on the system. Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- meson_options.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson_options.txt b/meson_options.txt index 5fdc7be87a54..99dab96d7b21 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -53,7 +53,7 @@ option('pipelines', option('pycamera', type : 'feature', - value : 'disabled', + value : 'auto', description : 'Enable libcamera Python bindings (experimental)') option('qcam',