From 0be5c478db11e577dea655b2dd37f45462d77592 Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Thu, 1 Aug 2024 13:30:08 -0400 Subject: [PATCH 1/3] Update PKG_CONFIG_PATH for dpdk setup on Ubuntu --- docs/INTERNAL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/INTERNAL.md b/docs/INTERNAL.md index be66d534..1b5050e7 100644 --- a/docs/INTERNAL.md +++ b/docs/INTERNAL.md @@ -64,7 +64,7 @@ cd dpdk-23.11 meson build --prefix=${PWD}/build/install/usr/local ninja -C build ninja -C build install -export PKG_CONFIG_PATH="${PWD}/build/install/usr/local/lib/pkgconfig" +export PKG_CONFIG_PATH="${PWD}/build/install/usr/local/lib/x86_64-linux-gnu/pkgconfig" ``` ### Build Machnet From 148d8140387d82961b1c31da2d613fde0ce02522 Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Fri, 2 Aug 2024 13:24:08 -0400 Subject: [PATCH 2/3] Update INTERNAL.md Use find instead to get the PKG_CONFIG_PATH for dpdk --- docs/INTERNAL.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/INTERNAL.md b/docs/INTERNAL.md index 1b5050e7..456a12d1 100644 --- a/docs/INTERNAL.md +++ b/docs/INTERNAL.md @@ -64,9 +64,11 @@ cd dpdk-23.11 meson build --prefix=${PWD}/build/install/usr/local ninja -C build ninja -C build install -export PKG_CONFIG_PATH="${PWD}/build/install/usr/local/lib/x86_64-linux-gnu/pkgconfig" +export PKG_CONFIG_PATH="${PWD}/build/install/usr/local/lib/x86_64-linux-gnu/pkgconfig" or export PKG_CONFIG_PATH="${PWD}/build/install/usr/local/lib/pkgconfig" ``` +Note: You can find the PKG_CONFIG_PATH by the following command: find *path_to_dpdk* -name "*.pc". + ### Build Machnet Then, from `${REPOROOT}`: From cd66218c3830794171879b5f7424999c2adc2095 Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Fri, 2 Aug 2024 13:35:08 -0400 Subject: [PATCH 3/3] add two possible paths in PKG_CONFIG_PATH --- docs/INTERNAL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/INTERNAL.md b/docs/INTERNAL.md index 456a12d1..67abd251 100644 --- a/docs/INTERNAL.md +++ b/docs/INTERNAL.md @@ -64,7 +64,7 @@ cd dpdk-23.11 meson build --prefix=${PWD}/build/install/usr/local ninja -C build ninja -C build install -export PKG_CONFIG_PATH="${PWD}/build/install/usr/local/lib/x86_64-linux-gnu/pkgconfig" or export PKG_CONFIG_PATH="${PWD}/build/install/usr/local/lib/pkgconfig" +export PKG_CONFIG_PATH="${PWD}/build/install/usr/local/lib/x86_64-linux-gnu/pkgconfig:${PWD}/build/install/usr/local/lib/pkgconfig" ``` Note: You can find the PKG_CONFIG_PATH by the following command: find *path_to_dpdk* -name "*.pc".