DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH v1] app/test-pmd: fix meson build failed when used latency stats lib
@ 2020-09-10  2:20 SteveX Yang
  2020-09-10  9:23 ` Bruce Richardson
  2020-09-15  2:08 ` [dpdk-dev] [PATCH v2] " SteveX Yang
  0 siblings, 2 replies; 5+ messages in thread
From: SteveX Yang @ 2020-09-10  2:20 UTC (permalink / raw)
  To: dev; +Cc: wenzhuo.lu, beilei.xing, qiming.yang, SteveX Yang

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 <stevex.yang@intel.com>
---
 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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-09-30 16:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-10  2:20 [dpdk-dev] [PATCH v1] app/test-pmd: fix meson build failed when used latency stats lib SteveX Yang
2020-09-10  9:23 ` Bruce Richardson
     [not found]   ` <DM6PR11MB4362CE65DBD5BA111A43A0FAF9230@DM6PR11MB4362.namprd11.prod.outlook.com>
2020-09-14  8:34     ` Bruce Richardson
2020-09-15  2:08 ` [dpdk-dev] [PATCH v2] " SteveX Yang
2020-09-30 16:25   ` Ferruh Yigit

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).