Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id CFCF3C48BC3 for ; Wed, 14 Feb 2024 15:46:52 +0000 (UTC) Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by mx.groups.io with SMTP id smtpd.web10.44169.1707925608979350496 for ; Wed, 14 Feb 2024 07:46:49 -0800 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: kernel.crashing.org, ip: 63.228.1.57, mailfrom: mark.hatle@kernel.crashing.org) Received: from [192.168.2.236] ([70.99.78.137]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 41EFjjro006895; Wed, 14 Feb 2024 09:45:45 -0600 Message-ID: Date: Wed, 14 Feb 2024 09:45:41 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [oe] opencv - python3-opencv not building properly Content-Language: en-US To: Khem Raj Cc: openembeded-devel References: <7fffaa90-0e3c-4f71-a385-e6248df3b27f@kernel.crashing.org> From: Mark Hatle In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by gate.crashing.org id 41EFjjro006895 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 14 Feb 2024 15:46:52 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/108741 On 2/13/24 2:35 PM, Khem Raj wrote: > On Tue, Feb 13, 2024 at 8:38=E2=80=AFAM Mark Hatle > wrote: >> >> With master as of yesterday (February 12, 2024), the python3-opencv pa= ckage is >> not building. There is no error during the build of the opencv recipe= , but the >> package itself never builds. >> >> During the do_configure step there is a non-fatal error generated: >> >> -- Found PythonInterp: .../opencv/4.9.0/recipe-sysroot-native/usr/bin/= python3 >> (found suitable version "3.12.1", minimum required is "3.2") >> -- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE= _DIRS) >> (Required is at least version "3.12") >> >> I've been unable to figure out what is causing the failure. Was hopin= g someone >> else might be able to figure this out or provide a clue to be able to = figure out >> what Cmake is trying to do that it can't. >=20 > Just shooting in dark here, but can you try inheriting > python3targetconfig in the recipe and see if that helps ? This seems to have changed the error message (or something else updated i= n the=20 last day causing it to change). It's now: Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)= =20 (Required is at least "3.12") Cannot probe for Python/Numpy support (because we are cross-compiling Ope= nCV) If you want to enable Python/Numpy support, set the following variables: PYTHON2_INCLUDE_PATH PYTHON2_LIBRARIES (optional on Unix-like systems) PYTHON2_NUMPY_INCLUDE_DIRS PYTHON3_INCLUDE_PATH PYTHON3_LIBRARIES (optional on Unix-like systems) PYTHON3_NUMPY_INCLUDE_DIRS So the issue may be the above now that I'm getting further diagnostics. = I'll=20 continue to explore, thanks! --Mark >> >> >> >> >> >> -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- >> Links: You receive all messages sent to this group. >> View/Reply Online (#108731): https://lists.openembedded.org/g/openembe= dded-devel/message/108731 >> Mute This Topic: https://lists.openembedded.org/mt/104335555/3616948 >> Group Owner: openembedded-devel+owner@lists.openembedded.org >> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub= [mark.hatle@kernel.crashing.org] >> -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- >>