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 86304A0548; Tue, 17 Aug 2021 16:14:08 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1E548407FF; Tue, 17 Aug 2021 16:14:08 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 8B79B4014E for ; Tue, 17 Aug 2021 16:14:05 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10079"; a="216103588" X-IronPort-AV: E=Sophos;i="5.84,329,1620716400"; d="scan'208";a="216103588" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Aug 2021 07:14:04 -0700 X-IronPort-AV: E=Sophos;i="5.84,329,1620716400"; d="scan'208";a="531086742" Received: from bricha3-mobl.ger.corp.intel.com ([10.252.21.74]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 17 Aug 2021 07:14:03 -0700 Date: Tue, 17 Aug 2021 15:14:00 +0100 From: Bruce Richardson To: William Tu Cc: Dmitry Kozlyuk , dpdk-dev Message-ID: References: <20210805221532.1d6b653a@sovereign> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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? 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