DPDK patches and discussions
 help / color / mirror / Atom feed
From: William Tu <u9012063@gmail.com>
To: Bruce Richardson <bruce.richardson@intel.com>
Cc: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>, dpdk-dev <dev@dpdk.org>
Subject: Re: [dpdk-dev] Windows community call: MoM 2021-08-04
Date: Thu, 19 Aug 2021 05:36:55 -0700	[thread overview]
Message-ID: <CALDO+SY28rpwQCu08AyFy5uX4+T1=09tvNoZQS3j6Mbzm_nHqQ@mail.gmail.com> (raw)
In-Reply-To: <YR4gjaTbIgw164q9@bricha3-MOBL.ger.corp.intel.com>

[...]
> > 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

      reply	other threads:[~2021-08-19 12:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-05 19:15 Dmitry Kozlyuk
2021-08-06 23:17 ` William Tu
2021-08-17 14:14   ` Bruce Richardson
2021-08-18 23:40     ` William Tu
2021-08-19  9:12       ` Bruce Richardson
2021-08-19 12:36         ` William Tu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CALDO+SY28rpwQCu08AyFy5uX4+T1=09tvNoZQS3j6Mbzm_nHqQ@mail.gmail.com' \
    --to=u9012063@gmail.com \
    --cc=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=dmitry.kozliuk@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).