From patchwork Wed Mar 31 07:16:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vedant Paranjape X-Patchwork-Id: 11803 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 DC793C0DA3 for ; Wed, 31 Mar 2021 07:16:29 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 4CACE68783; Wed, 31 Mar 2021 09:16:29 +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="EFrEfzBm"; dkim-atps=neutral Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 733826051B for ; Wed, 31 Mar 2021 09:16:27 +0200 (CEST) Received: by mail-pg1-x529.google.com with SMTP id k8so4394282pgf.4 for ; Wed, 31 Mar 2021 00:16:27 -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=INZaBRYLWnl1JW8mrGGLCqbOwvNiBZPaHhDzsDVYXig=; b=EFrEfzBmQYaZH5QCbaq1vmFvfJYwbIFKvRbqCTUJ35C02dsZC2odAt4Wdj898EU2Mw OrlazzR0AS9rJf+fOHWk2EHGtUQOh8n6GrWFWScpgPSgj49RejLRlJMKIk/LrUL1R0xR Pe0XQ2uBAzuptzxu8cKOmBuxJu9J4XO8UVC9J9Mkpl3Tpw5qk+17Z6MfytBzNzCLQgAo nc6oNPfTI6KjxJCuGcbyuc0I0KkunJhcFv9Cr/pVuPfeDMPoYzMjfkkMFIOFlneyY0Gq w9RxRMs5qsjADir4mnkmIUw6CiDywQW9iMStcm0dNbnn8zo8i0Zt+q3JyY9aVbZs39hx 1MFg== 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=INZaBRYLWnl1JW8mrGGLCqbOwvNiBZPaHhDzsDVYXig=; b=b0DQfphO0rKYPsa0iYAXBoQ6r6h7fWiu3Hfh0cTk0qG8kZu5ZZB89WAPL8ebLAPeZN V2ZrtBjckPkefstz8cRaklGfdVLhE3O/ui8A27YCIVUV6h2T4KJN+Xh5PKOcMgK/z8oq N5v1ZIorRkWaO+JLR+Uf5fPaaLUwvoyAJXjr0P2UnxtwUzgHM6HlPHkaseiVFQrzXOvd 8msiPVh7qegi6eiOp9aJHOZ0dpBiyFUPAexHSi6lzJgdpxi5/paDpyNKiFziuJxrPoMN zfWC19d9YAw1xPA9h0vh0cmrPYWVvcQJvDXrFB73Z39bEegWxzZp2lZ3xUmjEtTIg6kc S/dg== X-Gm-Message-State: AOAM533VSABD7fBMuSo3IcBUJjJuD7fer0hPsPlbxmc6aZTvgmfTXj9G hDsLNxX3Ik5RWoZMqpIQzRkwIr3Ej/i3OCh1 X-Google-Smtp-Source: ABdhPJykNPR7uTL1UV6UwhEkrCsVuz0pdSRE0Zgvk5CNvrljGDGWpo+63uXRN+rC3Ljsa3+Mtwndtg== X-Received: by 2002:a63:5f0c:: with SMTP id t12mr1903051pgb.381.1617174985605; Wed, 31 Mar 2021 00:16:25 -0700 (PDT) Received: from localhost.localdomain ([1.186.78.76]) by smtp.googlemail.com with ESMTPSA id y9sm1506900pgc.9.2021.03.31.00.16.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Mar 2021 00:16:25 -0700 (PDT) From: Vedant Paranjape To: libcamera-devel@lists.libcamera.org Date: Wed, 31 Mar 2021 12:46:00 +0530 Message-Id: <20210331071600.33845-1-vedantparanjape160201@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v8] 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 Reviewed-by: Paul Elder --- Changes in v8: * Updated README.rst to describe meson install issue * Removed "changelog" heading from commit message * Fixed few grammatical mistakes * Reworded few sentences * Fixed line width issues and some grammatical mistakes * Added a troubleshooting section to the readme to describe this issue and suggest possible solutions. README.rst | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.rst b/README.rst index 1427c714..5ebe3938 100644 --- a/README.rst +++ b/README.rst @@ -104,3 +104,25 @@ 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 is a snippet of the 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. +