From patchwork Sat Mar 27 19:20:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vedant Paranjape X-Patchwork-Id: 11737 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 04A19C32ED for ; Sat, 27 Mar 2021 19:21:35 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 2F33C60519; Sat, 27 Mar 2021 20:21:34 +0100 (CET) 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="u+2ByrMi"; dkim-atps=neutral Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 6EF1B602D7 for ; Sat, 27 Mar 2021 20:21:32 +0100 (CET) Received: by mail-pl1-x636.google.com with SMTP id v8so2501456plz.10 for ; Sat, 27 Mar 2021 12:21:32 -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=zUNel4Chlui2OzAdOFB63gglo1vz4IgwuN/671ACBIQ=; b=u+2ByrMiS5qgnYY1smxeWuvr4AHSoZ10BVYU+nQZaPmvwn7dnhK8Dsex6kMwMPaGwq WkSKAs1eq0ELiUCfr8VxzPlvKE26m3s4qm8xo052ze1A7No31vQ1Itz/+ZLJIXRxihdf 3C0ajPlTR794GRB7m50xZVVwnRdlukpwS6fjRzHPzWXcI+a4e+g/+6KG+ZYhEWU4Ov9V 7qWoE/ZSkpESQ8P+AQn8H0gVOn0gGTvKPzUBDjfBwuFWbtpmvMgnSdnyp44OOzY7Ab4L uPKPGwYXOLpTMJEDOgYI5P3IWvVjtfE67eNAd3cIK6Tobv9LbKYLF26uzxJ/Dn8xElsk Uowg== 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=zUNel4Chlui2OzAdOFB63gglo1vz4IgwuN/671ACBIQ=; b=sSGAcfKv7eaadM2E44wAgsWYmQgZGKdpU/J4t4Ql+SymE/9cDWH8Ad8JH554TwccRj NrZulKvHQ7vX9UkIhvaIJX2Jwja2tgWVO4eQsUhZYgkbbInTITCPeWOSRGAsgOnt15Uj HO8muUlJBxqwSOEtwiYkPIVKYtXAVHRaSOHJjRuROx1WbPkT2aWuccF2iPIaKxDKJhyj urSj+kRD3FobtBE1fbfazVY7aqEEoSGYGbD5pb3bB+bTM84DFurgfqEJwOICdHnawLOw xVgXmKSO5TYqprRqKp1Isy5MZcX/8D1vpo1tljY6gNR8zjRdAk6MHofLo4ZeXdCmLS46 05gQ== X-Gm-Message-State: AOAM533a7uFSR4O+/TK6CQV5S2xx/g1UNCutDJwz4ptWbiDQDtJPqg3P n9j2RaNFF+7ThYitRCBeOwco5EEd5Mxruw== X-Google-Smtp-Source: ABdhPJyCoMWr6uYpMHVC5benuFKr4cPsS4N53v9WyJwZmsU5OMniQT2GcEohsLJ1boQnBUQyvpaNLg== X-Received: by 2002:a17:902:e54b:b029:e6:b39f:63ab with SMTP id n11-20020a170902e54bb02900e6b39f63abmr21548467plf.55.1616872890236; Sat, 27 Mar 2021 12:21:30 -0700 (PDT) Received: from localhost.localdomain ([1.186.77.76]) by smtp.googlemail.com with ESMTPSA id 14sm12324157pgz.48.2021.03.27.12.21.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Mar 2021 12:21:29 -0700 (PDT) From: Vedant Paranjape To: libcamera-devel@lists.libcamera.org Date: Sun, 28 Mar 2021 00:50:48 +0530 Message-Id: <20210327192048.121809-1-vedantparanjape160201@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v6] 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" Changes in v6: * 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 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 --- README.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.rst b/README.rst index 1427c714..fff67762 100644 --- a/README.rst +++ b/README.rst @@ -104,3 +104,22 @@ 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 meson which is different from system-wide is already installed, +uninstall that meson using pip3, and install again without the --user +argument. \ No newline at end of file