DPDK usage discussions
 help / color / mirror / Atom feed
From: Sudharshan Krishnakumar <sudhar.ckrishna@gmail.com>
To: users@dpdk.org
Subject: [dpdk-users] question related to build issue with Pktgen-DPDK tool
Date: Wed, 28 Oct 2020 19:33:54 -0700
Message-ID: <CAEm3rUnZTo9ueOQ5hdBgbzXqWCHJVzho7A3ZEk-UJeoeXedDgg@mail.gmail.com> (raw)

Hi All,

This is the first time, I am posting to this group, please excuse if there
are any errors.

I have a much older version of DPDK(17.08) and corresponding old version of
PktGen both built using Makefiles,
working fine on my system.

Trying to move to latest DPDK(20.08) and PktGen tool.
Based on what I read, I am guessing it is NOT possible to build latest
version of Pktgen using make,
needs to be built using meson/ninja. So I have tried to build both DPDK and
Pktgen tool using meson/ninja.

Running into a build issue with latest Pktgen(using meson/ninja)->seeing
this error->
meson.build:58:0: ERROR:  Native dependency 'libdpdk' not found.

I have the 20.08 DPDK built and installed(in a different prefix path, other
than the default /usr/local):

DPDK Build/install steps:
meson build --prefix /home/my_userid/new_dpdk/dpdk-20.08/install
ninja -C build
ninja -C build install

~/new_dpdk/dpdk-20.08$ find . -name libdpdk.a
./x86_64-native-linux-gcc/lib/libdpdk.a
./install/lib/x86_64-linux-gnu/libdpdk.a

~/new_dpdk/dpdk-20.08$ find . -name *.pc
./build/meson-private/libdpdk.pc
./build/meson-private/libdpdk-libs.pc
./install/lib/x86_64-linux-gnu/pkgconfig/libdpdk.pc
./install/lib/x86_64-linux-gnu/pkgconfig/libdpdk-libs.pc

For building Pktgen-DPDK, I am setting the path PKG_CONFIG_PATH to point to
the libdpdk.pc file,
but it still doesn’t find the libdpdk library(not sure why, that is the
case).

~/new_pktgen_dpdk/Pktgen-DPDK$
export
PKG_CONFIG_PATH=/home/my_userid/new_dpdk/dpdk-20.08/install/lib/x86_64-linux-gnu/pkgconfig/libdpdk.pc

When building PktGen seeing this error-> meson.build:58:0: ERROR:  Native
dependency 'libdpdk' not found.

Have the build logs below, can you please let me know.

~/new_pktgen_dpdk/Pktgen-DPDK$ make
>>> Use 'make help' for more commands

./tools/pktgen-build.sh build
>>> lua_enabled      : '-Denable_lua=false'
>>> gui_enabled      : '-Denable_gui=false'
>>> SDK Directory    : '/home/my_userid/new_pktgen_dpdk/Pktgen-DPDK'
>>> Build Directory  :
'/home/my_userid/new_pktgen_dpdk/Pktgen-DPDK/Builddir'
>>> Target Directory : '/home/my_userid/new_pktgen_dpdk/Pktgen-DPDK/usr'

>>> Ninja build in '/home/my_userid/new_pktgen_dpdk/Pktgen-DPDK/Builddir'
buildtype='release'
meson -Dbuildtype=release -Denable_lua=false -Denable_gui=false Builddir
The Meson build system
Version: 0.47.1
Source dir: /home/my_userid/new_pktgen_dpdk/Pktgen-DPDK
Build dir: /home/my_userid/new_pktgen_dpdk/Pktgen-DPDK/Builddir
Build type: native build
Program cat found: YES (/bin/cat)
Project name: pktgen
Project version: 20.10.0
Native C compiler: cc (gcc 7.5.0 "cc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Compiler for C supports arguments -mavx2: YES
Compiler for C supports arguments -Wno-pedantic -Wpedantic: YES
Compiler for C supports arguments -Wno-format-truncation
-Wformat-truncation: YES
Found pkg-config: /usr/bin/pkg-config (0.29.1)

meson.build:58:0: ERROR:  Native dependency 'libdpdk' not found


Thanks,



Sudha

             reply	other threads:[~2020-10-29  2:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-29  2:33 Sudharshan Krishnakumar [this message]
2020-10-29 14:20 ` Wiles, Keith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEm3rUnZTo9ueOQ5hdBgbzXqWCHJVzho7A3ZEk-UJeoeXedDgg@mail.gmail.com \
    --to=sudhar.ckrishna@gmail.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ https://inbox.dpdk.org/users \
		users@dpdk.org
	public-inbox-index users

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.users


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git