[dpdk-dev] [PATCH v1] app/test-pmd: fix meson build failed when used latency stats lib
SteveX Yang
stevex.yang at intel.com
Thu Sep 10 04:20:18 CEST 2020
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 at 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
More information about the dev
mailing list