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 B0046A0C4C; Thu, 19 Aug 2021 01:40:40 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 338EA4067E; Thu, 19 Aug 2021 01:40:40 +0200 (CEST) Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) by mails.dpdk.org (Postfix) with ESMTP id C986740141 for ; Thu, 19 Aug 2021 01:40:38 +0200 (CEST) Received: by mail-lj1-f179.google.com with SMTP id y6so8201133lje.2 for ; Wed, 18 Aug 2021 16:40:38 -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=+AW877W6vtlwQfHVylN3kSn/5BBvYpshA+n/2vO4BsY=; b=RIe7psBi0km055RrmG+0Ut/AHGsWf929IwJxG0QC4N34+uYE73Ri526qEVLXdpim15 LzP13ncMwfwHqc3NdT/lpFmBN6A/U29hEwqxp53CKS0kctap/9nEZHZEzY27DGbLwYwv AqVx/C1LEzDJU9smvfvIN8gokdYpo8bW6hEB8qjiIP+561iCdTS+BYFzbd6CoXM/rtLE on9yWFu5ka12SR2kNZAS4SnGTG2NyzNkfeQqAxiK6xiWNbsyjn0W4Gkk0xLUGDX64QX2 GPkQqpEMBSBLSGaiz9/GPatg74FbNyLn9Owhr4A4ajrwWv87EdtMODBew7nFiLoHPrvW wDJA== 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=+AW877W6vtlwQfHVylN3kSn/5BBvYpshA+n/2vO4BsY=; b=X/wjzFin+RmHBrU+TOAT4ac99dYFh/OrzXeIrweXorvZJMJXrKtWBbktVHWSpCS6J9 JcCgGQxlitWDpyEZxPJqAX+Hkb/9VDr73xYwC2gGBhs66E3MEfTZmzC94qG6H5u4u5tD +qt6BfEodPxJabSAV8A5Ls9ivJrY3ySkgaP+6NS5zcOME4OgLY2FfJONzpTwqMh6sQ7+ sK73LmL2O/wW3/Vj/08EJ3flzTLwdCQCH7FMO/j2oPYwlMiOWlnm7HImVH7qBg87LZbo 0ZkVWs1UGKFc+TvRKMf3PHBAJ28d2mfAL7ySsNJGPaVI+ShL1v6E76QzA389eHLpaU2+ UvTQ== X-Gm-Message-State: AOAM533VDJlyGSdMwcvCmOwxXS+A585mWW+aGnFCkfYdnnnTXURjpPH7 O/+0jSweGqkP//VnBs8HUxCY2L4qZxOBPHDjMXw= X-Google-Smtp-Source: ABdhPJynqciugndpwVWsI0P0T9IFsX1HMhJ6OPEirGiHIhdtGHV/V2JMMIDJLzjNtZoXzTZ/o0JYBc0ANgcE1OqGg9Y= X-Received: by 2002:a2e:2f0c:: with SMTP id v12mr9829278ljv.381.1629330038245; Wed, 18 Aug 2021 16:40:38 -0700 (PDT) MIME-Version: 1.0 References: <20210805221532.1d6b653a@sovereign> In-Reply-To: From: William Tu Date: Wed, 18 Aug 2021 16:40:02 -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" On Tue, Aug 17, 2021 at 7:14 AM Bruce Richardson wrote: > > On Fri, Aug 06, 2021 at 04:17:32PM -0700, William Tu wrote: > > On Thu, Aug 5, 2021 at 12:15 PM Dmitry Kozlyuk 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? Hi Bruce, Thanks! The log below: --- 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' > > 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. Sure, I'm new to Meson, will take a look at subproject support. Thanks William