From patchwork Tue Mar 30 14:39:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vedant Paranjape X-Patchwork-Id: 11795 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 A059FC0DA4 for ; Tue, 30 Mar 2021 14:40:14 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 0054B68781; Tue, 30 Mar 2021 16:40:13 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Dacu/rp7"; dkim-atps=neutral Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 70742602D2 for ; Tue, 30 Mar 2021 16:40:12 +0200 (CEST) Received: by mail-pj1-x1032.google.com with SMTP id a22-20020a17090aa516b02900c1215e9b33so9553288pjq.5 for ; Tue, 30 Mar 2021 07:40:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pd+6+xTNAUc6P78DyTWX/ZRUf6fP9SHkRHqVWLCVeGw=; b=Dacu/rp7VHgO7EK56Gkde3zgc4Xi0GPRZknN2N7Mk61yKz8LGbQK58tj8fT4437HpG 1vlOE7RjQ2cjeUExqx3unyu8XrnRc2Qhe+bQJOPIbvw2N1BmXuNs5PxGQ1XngYl/+sO1 OppTih25JBMb7GY4upchdBXN0uBlHezyHg9pakZG/WRYrl9nGtc7fj0CRqYsoSXxFrtC 0BIsEBVNjuoP4pGu/Oj1j79BI+lzScetRG9Jkpo7ugVCxwNwcGV+oDuqSENIV+Smgynx KO8HkJva/4IdRX5nh41StyTLEvKyxhTWyLdEygqoZPJpbCcCk8fdVgMpqKi4WlxD7e32 ULJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pd+6+xTNAUc6P78DyTWX/ZRUf6fP9SHkRHqVWLCVeGw=; b=CM5Wplgq0FIiyZMOnD6+EZguucfT/3BO3nZxdCf97zE2kz5OQvC2hLYBj91xp8WTRi g0kIwQibFWI/Pn7zQxX+H6oq1xry4Uq/IGGkn65SgKQOANhLzfmvUv27P/3HPpxQD7oP bEy/YJCp9pl0svpvERE/6XgOJPaTGQI14JjjfI0GN2pmVDw94QmZUjHIOREKS5Fsv0hH WQ8PnD/EEtAgnA5HrekO+SmnSfHmViVFmguBF8hJIetRT9lN66S3qnTnXhQZkjlUlItD 8iXw+/2exzA6m4HunivQx4eE61x88SsAMTPP/zZ8t1v91d/sj1trWGm0Ve53oXL1TGhB 1stg== X-Gm-Message-State: AOAM530mxQ5qQP/wMq9P9G4tJmef22gbxWl/UrTM3gjOmXra996OqiNs nEv7V6XKs0HUhnECWSAbsoCj+DdmtQY8qId3 X-Google-Smtp-Source: ABdhPJz+B7XkNWEU2YGcUAH5ufbq617GrjyCzDy7a4A6xSPqM88irHNQYiuIp5fMtXlodXBYIvU7tA== X-Received: by 2002:a17:902:c14c:b029:e5:cd82:a0b with SMTP id 12-20020a170902c14cb02900e5cd820a0bmr33837679plj.34.1617115210497; Tue, 30 Mar 2021 07:40:10 -0700 (PDT) Received: from localhost.localdomain ([1.186.78.76]) by smtp.googlemail.com with ESMTPSA id mp19sm6659842pjb.2.2021.03.30.07.40.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Mar 2021 07:40:10 -0700 (PDT) From: Vedant Paranjape To: libcamera-devel@lists.libcamera.org Date: Tue, 30 Mar 2021 20:09:23 +0530 Message-Id: <20210330143923.9664-1-vedantparanjape160201@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v7] Add alternative meson install command 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: Vedant Paranjape Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" While installing meson using pip3 install --user meson, due to python path issues, build.ninja can't be located by ninja. meson generates ninja files fine, but then when you run ninja, it is unable to find meson's build.ninja python module due to path issues. It gives the following error on ninja -C build install: ninja: Entering directory `build' ninja: error: loading 'build.ninja': No such file or directory After uninstalling meson using pip3 and installing it again using pip without --user argument solved the issue. Signed-off-by: Vedant Paranjape --- Changes in v7: * Updated README.rst to describe meson install issue * Removed "changelog" heading from commit message * Fixed few grammatical mistakes * Reworded few sentences * Added a new troubleshooting section in readme, and shifted meson issue to that section * Fixed line width issues and some grammatical mistakes README.rst | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.rst b/README.rst index 1427c714..d46109c8 100644 --- a/README.rst +++ b/README.rst @@ -104,3 +104,31 @@ onto the default video display element on your system. gst-launch-1.0 libcamerasrc camera-name="Camera 1" ! videoconvert ! autovideosink .. section-end-getting-started + +Troubleshooting +~~~~~~~~~~~~~~~ + +Several users have reported issues with meson installation, crux of the issue +is a potential version mismatch between the version that root uses, and the +version that the normal user uses. On calling `ninja -C build`, it can't find +the build.ninja module. This the snippet of error message, + +:: + + ninja: Entering directory `build' + ninja: error: loading 'build.ninja': No such file or directory + +This can be solved in two ways: + +1) Don't install meson again if it is already installed system-wide. 2) If a +version of meson which is different from the system-wide version is already +installed, uninstall that meson using pip3, and install again without the +--user argument. + +Solution to this was installing meson as root, this is not ideal, and should be +done as a last resort + +:: + + sudo pip3 install meson +