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 960B6A04B5 for ; Thu, 29 Oct 2020 03:34:10 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 40BC65A8C; Thu, 29 Oct 2020 03:34:09 +0100 (CET) Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) by dpdk.org (Postfix) with ESMTP id 489C954AE for ; Thu, 29 Oct 2020 03:34:07 +0100 (CET) Received: by mail-ed1-f53.google.com with SMTP id v19so1530024edx.9 for ; Wed, 28 Oct 2020 19:34:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=CPgYJ9QM2FuAbojBwhGHxg8DDWgtFocdZjkNN957vcI=; b=rJbjiPdkyPXeYIQJvFzDWlzXJD6JemGPUikEQHh6nJVKfmkR5FPrUpuyyycRqFZ02A T0QVqugPGyC4ugN17KrBxiIR9wpFmhqFxZ/uZE5KMHnCUtiqBv34OhasNjFOxaU/L+03 rSpbRboIfPMtj0DQRE5J0qFDhTmuf5h6LS45SXmxlPx3Fbz6zarGOg60Y/dVtpH2xbCX UCm0akWmWEpAbsUg3/FB2WJpPE7zujYMyaS+oZBZQu9LndDWhWSxscAu2z7I8vJC+YOn Q7QJEzmHozk9mGSu6bsnj7VHCppruzLsvoc4imOS/ZeiUfcHZmYo/FQnia7WPXW135lk IwAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=CPgYJ9QM2FuAbojBwhGHxg8DDWgtFocdZjkNN957vcI=; b=hHFrO9qFfUklohfZD0dWI4kHT9vtPAl0CfiZIZ3ttYMWrGpsIgUJTDMsLLoHBH6GYi NsEFUDF7uBVDf1FWnD7edymBVLS9HpvNg0+fSOYtdBRJN/UO+kTWx05Kl67xk7v25pvg J4gScb2U0sTK+hPANKHTrl3mVpXBG81Dl3NaD8xWemTNE++CdG60G55GhoYu2nQPKJu/ KxITK3zXu3qCEr1wy/8FPBgXmVuOkAg74nCb3nlHDsej/42bdi/2LIKrywRM+vSOsGNO K4Hv+fpexllNbAWOcGRBb30VgKGp8YRO3EonVbsvTFBwxAPyv8fvUXqP4nMglolGO43S XJ6A== X-Gm-Message-State: AOAM532Z5lDrRULw4L66D+BrB/6EnBEUVmAUiGM3RaDrZ6YrBaD78g5Z JJu2NAHJXI3lMzmwInupuo3gHDHx1fxyAmogj4xHLQKl/t0vaA== X-Google-Smtp-Source: ABdhPJxeQt76XcQzSYT9PMaSDSufI9fzTG9SMJd1cdjnlkyV9gi0plePuyY3gS8XbjWK+bpUzOTlsEsYGvS2TdyJXXU= X-Received: by 2002:a50:fd83:: with SMTP id o3mr1905201edt.17.1603938845382; Wed, 28 Oct 2020 19:34:05 -0700 (PDT) MIME-Version: 1.0 From: Sudharshan Krishnakumar Date: Wed, 28 Oct 2020 19:33:54 -0700 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] question related to build issue with Pktgen-DPDK tool X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" 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=E2=80=99t find the libdpdk library(not sure why, that is= the case). ~/new_pktgen_dpdk/Pktgen-DPDK$ export PKG_CONFIG_PATH=3D/home/my_userid/new_dpdk/dpdk-20.08/install/lib/x86_64-li= nux-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=3Dfalse' >>> gui_enabled : '-Denable_gui=3Dfalse' >>> 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=3D'release' meson -Dbuildtype=3Drelease -Denable_lua=3Dfalse -Denable_gui=3Dfalse Build= dir 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