From patchwork Tue Jul 20 10:17:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 13059 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 C3736C0109 for ; Tue, 20 Jul 2021 10:17:55 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 3F4EE68536; Tue, 20 Jul 2021 12:17:55 +0200 (CEST) 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="byU0iK33"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 29F7568521 for ; Tue, 20 Jul 2021 12:17:53 +0200 (CEST) Received: from pyrite.rasen.tech (unknown [IPv6:2400:4051:61:600:2c71:1b79:d06d:5032]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 2ED60443; Tue, 20 Jul 2021 12:17:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1626776272; bh=sBgxrElGdkWcp7QgcDRx/MAdwqjF1yDp0p0YM1LF+/U=; h=From:To:Cc:Subject:Date:From; b=byU0iK33qyhP+Q+5n3132/AJwZa09fVpdu8Oeht0bU6Kot96GXGM1vVLgIepMout6 /+Wk42CKuCPOBnahvDYbUwKwIIudHkMwtiXk1sRt4tbgMdimccF3Zxb/DAVUj5YNhP iD8K2dxt0LLfLKYfimlNQCwsArO263yeRc+BZgHU= From: Paul Elder To: libcamera-devel@lists.libcamera.org Date: Tue, 20 Jul 2021 19:17:43 +0900 Message-Id: <20210720101743.26676-1-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2] Documentation: guides: application-developer: update pkgconfig name 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: , Cc: carl_wikstrom@hotmail.com Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The pkgconfig name was changed from camera to libcamera, but the application developer guide wasn't updated. Update it to refer to the new name. Bug: https://bugs.libcamera.org/show_bug.cgi?id=65 Fixes: ec7afef6 ("libcamera: Rename libcamera pkg-config generation") Signed-off-by: Paul Elder Reviewed-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- Changes in v2: - fix another line that went unnoticed --- Documentation/guides/application-developer.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Documentation/guides/application-developer.rst b/Documentation/guides/application-developer.rst index e3430f03..e0bbbad4 100644 --- a/Documentation/guides/application-developer.rst +++ b/Documentation/guides/application-developer.rst @@ -596,12 +596,12 @@ has been installed in your system. export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ -Verify that ``pkg-config`` can identify the ``camera`` library with +Verify that ``pkg-config`` can identify the ``libcamera`` library with .. code:: shell - $ pkg-config --libs --cflags camera - -I/usr/local/include/libcamera -L/usr/local/lib -lcamera + $ pkg-config --libs --cflags libcamera + -I/usr/local/include/libcamera -L/usr/local/lib -lcamera -lcamera-base ``meson`` can alternatively use ``cmake`` to locate packages, please refer to the ``meson`` documentation if you prefer to use it in place of ``pkgconfig`` @@ -621,11 +621,11 @@ accordingly. In this example, the application file has been named simpler_cam = executable('simple-cam', 'simple-cam.cpp', - dependencies: dependency('camera', required : true)) + dependencies: dependency('libcamera', required : true)) The ``dependencies`` line instructs meson to ask ``pkgconfig`` (or ``cmake``) to -locate the ``camera`` library, (libcamera without the lib prefix) which the test -application will be dynamically linked against. +locate the ``libcamera`` library, which the test application will be +dynamically linked against. With the build file in place, compile and run the application with: