DPDK patches and discussions
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: William Tu <u9012063@gmail.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: Tue, 17 Aug 2021 15:14:00 +0100	[thread overview]
Message-ID: <YRvEKBU2F8DB6WH1@bricha3-MOBL.ger.corp.intel.com> (raw)
In-Reply-To: <CALDO+SYwWou9Ddxrrb_wVO2_iZX7YG46uZKGy=Ojyo+x4o3Sgg@mail.gmail.com>

On Fri, Aug 06, 2021 at 04:17:32PM -0700, William Tu wrote:
> On Thu, Aug 5, 2021 at 12:15 PM Dmitry Kozlyuk <dmitry.kozliuk@gmail.com> wrote:
> >
> snip
> 
> > # Porting OvS build system to meson (William Tu)
> >
> > Status: OvS compiles with some features disabled, with a lot of warnings.
> > Issues:
> >
> > * vhost-user is Linux-specific.
> >   [Omar] Microsoft is working on functional equivalent.
> > * rte_version* not exported.
> >   AI William to send patches.
> > * rte_open_logstream() implementation relies on Linux-specific fopencookie().
> >   We need a more generic facility to redirect logs.
> >   AI William and DmitryK to discuss.
> > * meson not finding DPDK with pkg-config, maybe meson bug.
> 
> To give more details about this for people who are interested.
> At OVS side, we tried to link the DPDK library, by doing below at
> meson.build file
>     libdpdk = dependency('libdpdk', method: 'pkg-config')" , or give
> it a specific path
>     libdpdk = cc.find_library('dpdk', dirs: ['C:\\temp\\dpdk\\lib'])
> 
> However, it doesn't work, with error below
>     Run-time dependency libdpdk found: NO (tried pkgconfig)
>     meson.build:45:4: ERROR: Dependency "libdpdk" not found, tried pkgconfig
> 

Can you share the meson log file snippet where it tries the pkg-config
call? Does PKG_CONFIG_PATH have to be set to a special value to get the .pc
files found?

For the "find_library" calls, that would not be expected to work since
there is no single "libdpdk.so" file.

By any chance are you looking to investigate meson subproject support in
future? [1] It should provide an easy way to provide DPDK with OVS for
systems without it already installed, but may require some small changes to
DPDK meson files to work neatly. I've always meant to investigate how to
use it for applications using DPDK but never actually got around to it.

/Bruce

[1] https://mesonbuild.com/Subprojects.html

  reply	other threads:[~2021-08-17 14:14 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 [this message]
2021-08-18 23:40     ` William Tu
2021-08-19  9:12       ` Bruce Richardson
2021-08-19 12:36         ` William Tu

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=YRvEKBU2F8DB6WH1@bricha3-MOBL.ger.corp.intel.com \
    --to=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=dmitry.kozliuk@gmail.com \
    --cc=u9012063@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).