-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to compile the pktperf example application #292
Comments
The pktperf application is built when you do a I would pick |
I executed the make rebuild command in the main branch the way you said, and then tried to find the pktperf app in the usr/local/bin folder and found that there was only one pktgen app. Am I doing something wrong? [root@localhost Pktgen-DPDK]# git status
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
[root@localhost Pktgen-DPDK]# make rebuild
>>> Use 'make help' for more commands\n
./tools/pktgen-build.sh clean build
>> SDK Path : /root
>> Install Path : /root/Pktgen-DPDK
>> Build Directory : /root/Pktgen-DPDK/builddir
>> Target Directory : usr/local
>> Build Path : /root/Pktgen-DPDK/builddir
>> Target Path : /root/Pktgen-DPDK/usr/local
Build and install values:
lua_enabled : -Denable_lua=false
*** Removing '/root/Pktgen-DPDK/builddir' directory
Build and install values:
lua_enabled : -Denable_lua=false
>>> Ninja build in '/root/Pktgen-DPDK/builddir' buildtype=release
meson setup -Dbuildtype=release -Denable_lua=false /root/Pktgen-DPDK/builddir
The Meson build system
Version: 0.59.4
Source dir: /root/Pktgen-DPDK
Build dir: /root/Pktgen-DPDK/builddir
Build type: native build
Program cat found: YES (/usr/bin/cat)
Project name: pktgen
Project version: 24.10.0
C compiler for the host machine: cc (gcc 10.3.1 "cc (GCC) 10.3.1")
C linker for the host machine: cc ld.bfd 2.37
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -mavx: YES
Compiler for C supports arguments -mavx2: YES
Compiler for C supports arguments -Wno-pedantic: YES
Compiler for C supports arguments -Wno-format-truncation: YES
Found pkg-config: /usr/bin/pkg-config (1.8.0)
Found CMake: /usr/bin/cmake (3.22.0)
Run-time dependency libfgen found: NO (tried pkgconfig and cmake)
Run-time dependency libdpdk found: YES 24.11.0-rc1
Message: prefix: /usr/local libdir: lib64
Message: DPDK lib path: /usr/local/lib64
Library rte_net_bond found: YES
Program python3 found: YES (/usr/bin/python3)
Library rte_net_i40e found: YES
Library rte_net_ixgbe found: YES
Library rte_net_ice found: YES
Library rte_bus_vdev found: YES
Run-time dependency threads found: YES
Run-time dependency numa found: YES 2.0.16
Run-time dependency pcap found: YES 1.10.3
Library dl found: YES
Library m found: YES
Library bsd found: YES
Program doxygen found: NO
Program sphinx-build found: YES (/usr/bin/sphinx-build)
Program echo found: YES (/usr/bin/echo)
Build targets in project: 10
Found ninja-1.10.2 at /usr/bin/ninja
ninja: Entering directory `/root/Pktgen-DPDK/builddir'
[64/64] Linking target app/pktgen
>>> Ninja install to '/root/Pktgen-DPDK/usr/local'
ninja: Entering directory `/root/Pktgen-DPDK/builddir'
[0/1] Installing files.
Installing app/pktgen to /root/Pktgen-DPDK/usr/local/bin
Installing /root/Pktgen-DPDK/doc/source/custom.css to /root/Pktgen-DPDK/usr/local/share/doc/dpdk/_static/css
[root@localhost Pktgen-DPDK]# tree usr/local/bin/
usr/local/bin/
└── pktgen
0 directories, 1 file
[root@localhost Pktgen-DPDK]# tree usr/local
usr/local
├── bin
│ └── pktgen
└── share
└── doc
└── dpdk
└── _static
└── css
└── custom.css
6 directories, 2 files
[root@localhost Pktgen-DPDK]# |
Here is my build. I also did Pktgen version is 24.10.0, what version are you using? (cat VERSION file)
|
interesting i use version 24.10.0 too [root@localhost Pktgen-DPDK]# git pull
Already up to date.
[root@localhost Pktgen-DPDK]# git status
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
[root@localhost Pktgen-DPDK]# cat VERSION
24.10.0
[root@localhost Pktgen-DPDK]# |
I found that the build output complained to me that the libfgen runtime did not exist. Is this the reason? i try to rebuild this project, However, the pktperf tool is still not built successfully, which is very strange. [root@localhost Pktgen-DPDK]# make rebuild
>>> Use 'make help' for more commands\n
./tools/pktgen-build.sh clean build
>> SDK Path : /root
>> Install Path : /root/Pktgen-DPDK
>> Build Directory : /root/Pktgen-DPDK/builddir
>> Target Directory : usr/local
>> Build Path : /root/Pktgen-DPDK/builddir
>> Target Path : /root/Pktgen-DPDK/usr/local
Build and install values:
lua_enabled : -Denable_lua=false
*** Removing '/root/Pktgen-DPDK/builddir' directory
Build and install values:
lua_enabled : -Denable_lua=false
>>> Ninja build in '/root/Pktgen-DPDK/builddir' buildtype=release
meson setup -Dbuildtype=release -Denable_lua=false /root/Pktgen-DPDK/builddir
The Meson build system
Version: 0.59.4
Source dir: /root/Pktgen-DPDK
Build dir: /root/Pktgen-DPDK/builddir
Build type: native build
Program cat found: YES (/usr/bin/cat)
Project name: pktgen
Project version: 24.10.0
C compiler for the host machine: cc (gcc 10.3.1 "cc (GCC) 10.3.1")
C linker for the host machine: cc ld.bfd 2.37
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -mavx: YES
Compiler for C supports arguments -mavx2: YES
Compiler for C supports arguments -Wno-pedantic: YES
Compiler for C supports arguments -Wno-format-truncation: YES
Found pkg-config: /usr/bin/pkg-config (1.8.0)
Found CMake: /usr/bin/cmake (3.22.0)
Run-time dependency libfgen found: NO (tried pkgconfig and cmake)
Run-time dependency libdpdk found: YES 24.11.0-rc1
Message: prefix: /usr/local libdir: lib64
Message: DPDK lib path: /usr/local/lib64
Library rte_net_bond found: YES
Program python3 found: YES (/usr/bin/python3)
Library rte_net_i40e found: YES
Library rte_net_ixgbe found: YES
Library rte_net_ice found: YES
Library rte_bus_vdev found: YES
Run-time dependency threads found: YES
Run-time dependency numa found: YES 2.0.16
Run-time dependency pcap found: YES 1.10.3
Library dl found: YES
Library m found: YES
Library bsd found: YES
Program doxygen found: YES (/usr/bin/doxygen)
Program generate_doxygen.sh found: YES (/root/Pktgen-DPDK/doc/api/generate_doxygen.sh)
Program generate_examples.sh found: YES (/root/Pktgen-DPDK/doc/api/generate_examples.sh)
Program doxy-html-custom.sh found: YES (/root/Pktgen-DPDK/doc/api/doxy-html-custom.sh)
WARNING: Project targeting '>= 0.58.0' but tried to use feature deprecated since '0.56.0': meson.source_root. use meson.project_source_root() or meson.global_source_root() instead.
WARNING: Project targeting '>= 0.58.0' but tried to use feature deprecated since '0.56.0': meson.build_root. use meson.project_build_root() or meson.global_build_root() instead.
Configuring doxy-api.conf using configuration
Program sphinx-build found: YES (/usr/bin/sphinx-build)
Program echo found: YES (/usr/bin/echo)
Build targets in project: 12
WARNING: Deprecated features used:
* 0.56.0: {'meson.build_root', 'meson.source_root'}
Found ninja-1.10.2 at /usr/bin/ninja
ninja: Entering directory `/root/Pktgen-DPDK/builddir'
[64/64] Linking target app/pktgen
>>> Ninja install to '/root/Pktgen-DPDK/usr/local'
ninja: Entering directory `/root/Pktgen-DPDK/builddir'
[0/1] Installing files.
Installing app/pktgen to /root/Pktgen-DPDK/usr/local/bin
Installing /root/Pktgen-DPDK/doc/source/custom.css to /root/Pktgen-DPDK/usr/local/share/doc/dpdk/_static/css |
Sorry, I have not finished the fgen library and I need to do a bit of cleanup before I can release it. The fgen code is located here https://github.com/pktgen/fgen if you want to look at it. I will fixup and release it at some point. The fgen repo does contain example code, but it needs to be cleaned up a fair bit. I would suggest you wait until it is released. |
Ok, thank you very much for your help. |
Hello, I am new to this project. I would like to ask how to compile the pktperf application in examples. I did not find the corresponding guidance tutorial in the makefile or the docs guidance file of the program.
The text was updated successfully, but these errors were encountered: