From patchwork Mon Mar 22 19:24: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: 11643 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 E281DBD80C for ; Mon, 22 Mar 2021 19:24:33 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 4F6C468D62; Mon, 22 Mar 2021 20:24:33 +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="DHMEqKXu"; dkim-atps=neutral Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 4BB5168D50 for ; Mon, 22 Mar 2021 20:24:32 +0100 (CET) Received: by mail-pf1-x433.google.com with SMTP id x26so11715194pfn.0 for ; Mon, 22 Mar 2021 12:24: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=64doREAeK3/ejZpYBf79uIB5xPszAfxct9AkAfMQlp8=; b=DHMEqKXufo4tErijP2Sph9ElFluBvu/Xi0WSEI5Iq/jeSCk4n2q7G8+KTnGlQiVaOO p/el9eGhTYy/1Qgdqh7lYVFJPx+C6ice73n6HPRhjZQoFeYONWbscNydu3jdcgczZ6U2 YA/JLdN178yQONDQw/H6xj/vLpRba60CaH3a04bdqxq/QLdaAkXuMh5RPqteN2JT3RBJ gT1jaryxcfU9053l/k70VQLZSm0N0lZxzt5elcOjA/fwB9B656YEUYmwuR0aSGGiy5ZP dmI18l38M8jD7htAX9ekNCq5YuE7BibF5Gj+vfqAD8iHPp4V/+XTTqSr2y7PlNd5Q4fd TtSA== 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=64doREAeK3/ejZpYBf79uIB5xPszAfxct9AkAfMQlp8=; b=RI0QW/4FPFB9XmKigodTQOzdO4jbamx7nopnaSJZEW9MY3Qwmj4kFcYFJbXCZ2eDVk NpicW7fJ/2druJMQfKrj6E/9CdUu4Y6PZIbsVaDzOIuMdCCn/aqaOFaNJUGgojMQBNQg 1tE6jk1SYLH26uSW8Lqw70TBOZoYaZgxJofNH4M9KgKkrBZw3An3PR0SU3F1H4Zz6QGX 2AOtvyMRnUASPSIMZ4+V6w3UWKso88eqMx/WM1rOZe5UF7mVmPTl3V/W+qubXGXKC1m+ HDCYCEzcRX9JwWpFJakrT695wd/Qjj1vV/qCHp4VfDp3/AOcqIEhoHibYwjggmqM1jLm YUGQ== X-Gm-Message-State: AOAM5332itGNLVA/Lvg4FZraNP2MjOU0rLdq7LoG6ZgXlvUzW4WfrS/j bXF4xDV9b4mOsudsPuISpYcvG27Y9fWv4vEb X-Google-Smtp-Source: ABdhPJzpIczc6Bkr5HWpeR4thhWsYNd/j2rD6HrdnrEnfrlO+ix2WBEBFquX4kU2KF9TuAXZORYAmw== X-Received: by 2002:a62:e70f:0:b029:1fd:6bae:235d with SMTP id s15-20020a62e70f0000b02901fd6bae235dmr1004751pfh.43.1616441070450; Mon, 22 Mar 2021 12:24:30 -0700 (PDT) Received: from localhost.localdomain ([1.186.78.76]) by smtp.googlemail.com with ESMTPSA id j20sm700689pji.3.2021.03.22.12.24.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Mar 2021 12:24:29 -0700 (PDT) From: Vedant Paranjape To: libcamera-devel@lists.libcamera.org Date: Tue, 23 Mar 2021 00:54:00 +0530 Message-Id: <20210322192400.76427-1-vedantparanjape160201@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v5] 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 v5: * Updated README.rst to describe meson install issue * Removed "changelog" heading from commit message * Fixed few grammatical mistakes * Reworded few sentences 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 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.rst b/README.rst index 1427c714..39213dc4 100644 --- a/README.rst +++ b/README.rst @@ -37,6 +37,22 @@ To fetch the sources, build and install: meson build ninja -C build install +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. + Dependencies ~~~~~~~~~~~~