要查看DPDK(Data Plane Development Kit)的版本,可以采用以下几种方法。以下是详细的步骤说明: 方法一:使用pkg-config查询版本 如果DPDK是通过标准的安装过程安装的,并且使用了pkg-config来管理库文件,可以使用以下命令来查询DPDK的版本: bash pkg-config --modversion libdpdk 或者,如
然后,可以尝试通过运行以下命令来验证pkg-config是否能够找到DPDK: pkg-config--exists libdpdk 如果上述命令返回成功(exit code为0),则说明pkg-config可以找到DPDK。否则,可能是由于PKG_CONFIG_PATH未正确配置或者没有正确安装DPDK导致的。 请确保你在终端中运行make命令时,PKG_CONFIG_PATH环境变量已经设置并包含了DPDK...
需要先把这个网卡down掉,再修改 sudo ifconfig eth160 down 输入60退出 完成dpdk编译配置 使用过程 进入examples目录的helloworld案例 cdexamples/helloworld 执行make make 报错一 /bin/sh: 1: pkg-config: not found 报错原因是没有安装pkg-config 解决方式 sudoapt-get install pkg-config 继续make 报错二 Makef...
这个错误提示说明在编译 QEMU 过程中没有找到pkg-config工具。pkg-config是一个常用的软件包配置工具,用于检索安装的库和相关依赖的信息。 要解决这个问题,你需要确保已经正确安装了pkg-config工具,并且该工具所在路径被正确添加到系统的环境变量$PATH中。 如果你使用的是 Ubuntu 或类似的 Linux 发行版,可以通过以下命...
app可以用meson,也可以用makefile。下面用makefile,makefile用了pkg-config。 例子:https://elixir.bootlin.com/dpdk/v21.11.5/source/examples/l2fwd/Makefile 重点是这三行 PKGCONF ?= pkg-config CFLAGS+= -O3 $(shell $(PKGCONF) --cflags libdpdk) ...
/usr/lib64/pkgconfig:/usr/share/pkgconfig 找到libdpdk.pc的位置,比如/opt/dpdk/libdpdk.pc,然后用export PKG_CONFIG_PATH=/opt/dpdk指定文件路径,再次编译即可 可以使用pkg-config --modversion libdpdk查看加载的dpdk的版本,如果正确加载,会输出对应的dpdk的版本号,如果没有,会有错误提示。
DPDK provides avalid pkg-config fileto simplify setting the proper variables and options: sudo apt-get install dpdk-dev libdpdk-dev gcc testdpdkprog.c $(pkg-config --libs --cflags libdpdk) -o testdpdkprog An example of a complex (auto-configure) user of pkg-config of DPDK includingfall...
在redhat/centos系列的系统上pkgconfig版本比较低,导致生成的LDFLAGS错误,不能完全静态编译。升级pkgconfig非常麻烦,不建议升级,可以使用本文介绍的方法规避。 非redhat/centos系列OS LDFLAGS += $(shell $(PKGCONF) --static --libs libdpdk) redhat/centos系列OS LDFLAGS0 = $(shell $(PKGCONF) --static --...
DPDK通过pkg-config管理器安装。我使用这些命令从源代码构建:cd dpdkcd buildninja相反,我的所有其他包都位于/usr/lib/x86_64-linux-gnu/pkgconfig。由于这个原因,pkg-config --list-all找不 浏览0提问于2023-03-02得票数 0 回答已采纳 1回答 如何处理通过WebRTC记录视频对等服务器时的丢包问题 、、、 我们使...
= pkg-config# 判断dpdk是否安装,必须配置PKG_CONFIG_PATH# Build using pkg-config variables if possibleifneq($(shell$(PKGCONF)--exists libdpdk && echo 0),0)$(error"no installation of DPDK found")endif# 定义全局变量,是编译静态库版本还是共享库版本all: shared.PHONY: shared staticshared: build/...