erpc-io / eRPC

Efficient RPCs for datacenter networks
Other
861 stars 140 forks source link

cannot find -ldpdk #106

Closed dxtaloha closed 7 months ago

dxtaloha commented 1 year ago

Hello, When I made make dpdk in eRPC/hello_world directory, it made an error and told me that I couldn't find the library file, but I didn't find the library file about libdpdk, instead, it was all the library files of librte. What might be wrong with me? Thank you. I use dpdk21.11 and ubuntu20.04.

23980f818fc17cc27e9f0e84dde70c5
jiangxiaosheng commented 1 year ago

Maybe try this in your Makefile

g++ -g -std=c++11 -o client client.cc \
                -Wno-deprecated-declarations \
                -DERPC_DPDK=true -march=native \
                -I ../src -I ../third_party/asio/include -I /usr/include/dpdk \
                -L ../build $(LIBS) \
                -Wl,--whole-archive $(shell pkg-config --static --libs-only-l libdpdk) -Wl,--no-whole-archive \
                -lnuma -ldl -libverbs -lmlx4 -lmlx5

If you followed the instructions to install dpdk it should work