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