From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8170AA0C4C; Thu, 19 Aug 2021 14:37:33 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 66B064067E; Thu, 19 Aug 2021 14:37:33 +0200 (CEST) Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) by mails.dpdk.org (Postfix) with ESMTP id 34DBA40141 for ; Thu, 19 Aug 2021 14:37:32 +0200 (CEST) Received: by mail-lf1-f48.google.com with SMTP id t9so12662157lfc.6 for ; Thu, 19 Aug 2021 05:37:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RnjtgB8vpNWVidpoUfuMOUJ0eFFg9XLgUjsEhd7hDQ8=; b=EmGsRYd03BM795ik+wt1DuCZZ1WTONYAqjMsj5wLiaGJJRGLcu84NWoyiZz5gY0R7C 8P7WMOJEvNsSCSDPKg3u6Bl9rrLnm1lu6V592yfq0rZXIIe2Q45jB+qvzEQiYDvu6ema rxSI5/PIZmdiKylj5HSbJn0uCAc681i32BOeSV2ee/fi+XQoAXwPsHg8n/TCzNsHs6OW anT/uTGvxWGzKNKfStXJNKGEmsLc4MkPLUKXmJZHbh+31rXd/jmegFWvC23M1U/1DX/R AKxU5qavjocNEUMw6WPhFikjXQa1Q4huGEJ/wTnZ3OiQOrsa2pssBXniUle5z4DPXiXu t5qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RnjtgB8vpNWVidpoUfuMOUJ0eFFg9XLgUjsEhd7hDQ8=; b=nO/HVoLZogHjTqEKeSSaWn9B+x62Dkp9xOqaHVch47s+zmgvngtyhvPXtEgBw0rMiv LwviQWtYV401+wugW3wyTrbAwtpoY+SXdEoW0+q0auS45AOjdx+9P6/Ya7HtKeaGaTau htbLJDAE2OvTMaJr+8i8kqRuK3/AK4Y0/fn6nx8hSNXW338PdCfuo4LE1l6N82KZuQ4I X5YVO9xzTB1/NV4X1jtcgFCCrq2n6cAkPDDmotXv/QeHgMHouRAb2pB1YSPQz1IpYF6B qX88XNO196+4ZEOWLkn6RYRV24QRMDZi9yjcmvktZ0kSDj+8az281arGOBmd89bierZY ge4Q== X-Gm-Message-State: AOAM532MON/HG3YkPZ1f3+DyOjCFeghRy35YCKoxqv5BPlNzrersimPf o+h7VlxGLqRokvrVROJJ52nAh7jQ33cfL5BNFHg= X-Google-Smtp-Source: ABdhPJzTBa4g9dmLmrmG7opfW+ywIWslDGpR8+KdWwiIRFdMT+6akQ/r5/x7lohfAQtQjbDfm0ufynxWG99RVZtjEk4= X-Received: by 2002:a05:6512:2248:: with SMTP id i8mr10598659lfu.258.1629376651700; Thu, 19 Aug 2021 05:37:31 -0700 (PDT) MIME-Version: 1.0 References: <20210805221532.1d6b653a@sovereign> In-Reply-To: From: William Tu Date: Thu, 19 Aug 2021 05:36:55 -0700 Message-ID: To: Bruce Richardson Cc: Dmitry Kozlyuk , dpdk-dev Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] Windows community call: MoM 2021-08-04 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" [...] > > Target machine cpu: x86_64 > > Pkg-config binary for MachineChoice.HOST is not cached. > > Pkg-config binary missing from cross or native file, or env var undefined. > > Trying a default Pkg-config fallback at pkg-config > > Found pkg-config: > > C:\ProgramData\chocolatey\lib\pkgconfiglite\tools\pkg-config-lite-0 > > .28-1\bin\pkg-config.EXE (0.28) > > Determining dependency 'libdpdk' with pkg-config executable > > 'C:\\ProgramData\\chocola > > tey\\lib\\pkgconfiglite\\tools\\pkg-config-lite-0.28-1\\bin\\pkg-config.EXE' > > env[PKG_CONFIG_PATH]: > > Called `C:\ProgramData\chocolatey\lib\pkgconfiglite\tools\pkg-config-lite-0.28-1\bin\ > > pkg-config.EXE --modversion libdpdk` -> 1 > > > > Run-time dependency libdpdk found: NO (tried pkgconfig) > > --- > > However, I copy the command and run it on powershell > > PS C:\k8s-antrea-dpdk-win\ovs> > > C:\ProgramData\chocolatey\lib\pkgconfiglite\tools\pkg- > > config-lite-0.28-1\bin\pkg-config.EXE --modversion libdpdk > > 21.08.0-rc1 > > > > Yes, for example: > > $env:PKG_CONFIG_PATH = 'C:\temp\DPDK\lib\pkgconfig' > > > > Looking at the meson log, it appears that the PKG_CONFIG_PATH is empty for > the meson call to pkg-config "env[PKG_CONFIG_PATH]:", which may explain why > DPDK is not found. I suspect meson only uses the PKG_CONFIG_PATH from the > environment on first run, but beyond that you can configure a > PKG_CONFIG_PATH using a meson configuration option "-Dpkg_config_path". Can > you try explicitly setting that in your build and see if it fixes it for > you? Hi Bruce, It works, thanks a lot! I did PS C:\k8s-antrea-dpdk-win\ovs> meson --reconfigure build -Dpkg_config_path=C:\temp\dpdk\lib\pkgconfig\ Log below, if you're interested ---- The Meson build system Version: 0.59.1 ... Pkg-config binary for MachineChoice.HOST is not cached. Pkg-config binary missing from cross or native file, or env var undefined. Trying a default Pkg-config fallback at pkg-config Found pkg-config: C:\ProgramData\chocolatey\lib\pkgconfiglite\tools\pkg-config-lite-0.28-1\bin\pkg-config.EXE (0.28) Determining dependency 'libdpdk' with pkg-config executable 'C:\\ProgramData\\chocolatey\\lib\\pkgconfiglit e\\tools\\pkg-config-lite-0.28-1\\bin\\pkg-config.EXE' env[PKG_CONFIG_PATH]: C:/temp/dpdk/lib/pkgconfig Called `C:\ProgramData\chocolatey\lib\pkgconfiglite\tools\pkg-config-lite-0.28-1\bin\pkg-config.EXE --modversion libdpdk` -> 0 21.08.0-rc1 env[PKG_CONFIG_PATH]: C:/temp/dpdk/lib/pkgconfig Called `C:\ProgramData\chocolatey\lib\pkgconfiglite\tools\pkg-config-lite-0.28-1\bin\pkg-config.EXE --cflag s libdpdk` -> 0 -include rte_config.h -march=native -IC:/temp/dpdk/include env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1 env[PKG_CONFIG_PATH]: C:/temp/dpdk/lib/pkgconfig --- William