Hi ,

     What is the best way to compile the vpp with external dpdk ?
    I tried to change the build-data/platforms/vpp.mk : vpp_uses_external_dpdk 
, vpp_dpdk_inc_dir , vpp_dpdk_lib_dir but it fails to compile .
     There is a compilation error :" rte_config.h: No such file or directory" , 
but the rte_config.h is under /home/ubuntu/install/include/dpdk/
     and the vpp.mk is changed like : vpp_dpdk_inc_dir = 
/home/ubuntu/install/include/dpdk/ ?!
             -Shachar Beiser.

Error:
/home/ubuntu/vpp.bin/build-data/../src/plugins/dpdk/thread.c:16:24: fatal 
error: rte_config.h: No such file or directory
compilation terminated.
Makefile:2172: recipe for target 'dpdk/dpdk_plugin_la-thread.lo' failed

The rte_config.h file location :
The rte_config.h is under /home/ubuntu/install/include/dpdk/ and the 
vpp_dpdk_inc_dir = /home/ubuntu/install/include/dpdk/ ?!

The patch I did:
diff --git a/build-data/platforms/vpp.mk b/build-data/platforms/vpp.mk
index 7745717..69249f6 100644
--- a/build-data/platforms/vpp.mk
+++ b/build-data/platforms/vpp.mk
@@ -39,10 +39,10 @@ vpp_uses_dpdk = yes
vpp_root_packages = vpp

# DPDK configuration parameters
-# vpp_uses_dpdk_mlx5_pmd = yes
-# vpp_uses_external_dpdk = yes
-# vpp_dpdk_inc_dir = /usr/include/dpdk
-# vpp_dpdk_lib_dir = /usr/lib
+vpp_uses_dpdk_mlx5_pmd = yes
+vpp_uses_external_dpdk = yes
+vpp_dpdk_inc_dir = /home/ubuntu/install/include/dpdk/
+vpp_dpdk_lib_dir = /home/ubuntu/install/lib


_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to