'/usr/bin/ld: cannot find -ldpdk
I'm trying to link static dpdk with libpcap and whenever I run the command make it shows me this error
/usr/bin/ld: cannot find -ldpdk
collect2: error: ld returned 1 exit status
make: *** [Makefile:419: libpcap.so] Error 1
how can I slove this please ? note: O.S: ubuntu 20.04.4 dpdk : 19.11
Solution 1:[1]
Libpcap's configure script now only uses pkg-config to try to find DPDK, so the configure script no longer attempts to guess with what libraries to link; this means that if there is no "libdpdk" library, just the libraries that DPDK provides (of which there are at least 48, and possibly over 100), DPDK's pkg-config file won't list a -ldpdk and the libpcap configure script and build process won't try to build with it.
That's in the tip of the main and 1.10 branches and, if there's a 1.10.2 release, will be in that release as well.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | user16139739 |
