From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id BC479A04B5; Thu, 10 Sep 2020 04:27:18 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BF9101B9B7; Thu, 10 Sep 2020 04:27:17 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 6D4BF1DB8 for ; Thu, 10 Sep 2020 04:27:15 +0200 (CEST) IronPort-SDR: HFC8reERc7ecVmLFbql3aQfYlC2YbCsp+SRTR3O1WJOH7d65m1+eOGvcYPYMkZfzCyGsOvQ9vl y3GO8TNDvhNQ== X-IronPort-AV: E=McAfee;i="6000,8403,9739"; a="155855869" X-IronPort-AV: E=Sophos;i="5.76,411,1592895600"; d="scan'208";a="155855869" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Sep 2020 19:27:14 -0700 IronPort-SDR: nXEExp3OP/KUJQBCV97t497o32Vfq0KxtKp2GmyMPYrn54dwG1MmIq8+9XSbH1lqn9uUnObwNJ sDvahE2qnlrg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,411,1592895600"; d="scan'208";a="317741944" Received: from intel-npg-odc-srv01.cd.intel.com ([10.240.178.136]) by orsmga002.jf.intel.com with ESMTP; 09 Sep 2020 19:27:12 -0700 From: SteveX Yang To: dev@dpdk.org Cc: wenzhuo.lu@intel.com, beilei.xing@intel.com, qiming.yang@intel.com, SteveX Yang Date: Thu, 10 Sep 2020 02:20:18 +0000 Message-Id: <20200910022018.8955-1-stevex.yang@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH v1] app/test-pmd: fix meson build failed when used latency stats lib X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" meson build cannot find the header rte_latencystats.h when build DPDK first time or never installed DPDK lib after build via meson/ninja. Because the corresponding header directory isn't included after enabled RTE_LIBRTE_LATENCY_STATS flag. Add the header file location and link library to meson.build of test-pmd Signed-off-by: SteveX Yang --- app/test-pmd/meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/test-pmd/meson.build b/app/test-pmd/meson.build index db0ff02eb..6ee7af750 100644 --- a/app/test-pmd/meson.build +++ b/app/test-pmd/meson.build @@ -9,6 +9,10 @@ if dpdk_conf.has('RTE_LIBRTE_BOND_PMD') cflags += '-I' + meson.source_root() + '/drivers/net/bonding' endif +if dpdk_conf.has('RTE_LIBRTE_LATENCYSTATS') + cflags += '-I' + meson.source_root() + '/lib/librte_latencystats' +endif + sources = files('5tswap.c', 'cmdline.c', 'cmdline_flow.c', -- 2.17.1