> > Mr Dear: > I am using ovs on DPDK platform,and encountered the following > issue: "configure: error: cannot link with dpdk". > Bellows are the details of the commands. > Here are my files-list: > [root@root /home/wangrong]#ls > dpdk-2.1.0 iperf-2.0.2 openvswitch-2.4.0 ovs-2.4.0 pcap tar-gz test > > (1)Make DPDK > export DPDK_DIR=/home/wangrong/dpdk-2.1.0 > > cd $DPDK_DIR > vim config/common_linuxapp <修改之后编译成单个lib大文件,支持 > vhost> > CONFIG_RTE_BUILD_COMBINE_LIBS=y > CONFIG_RTE_LIBRTE_VHOST=y > CONFIG_RTE_LIBRTE_VHOST_USER=n > > make install T=x86_64-native-linuxapp-gcc //若提示fuse头文件错误,解 > 决方法见附1. > export RTE_SDK=/home/wangrong/dpdk-2.1.0 > export RTE_TARGET=x86_64-native-linuxapp-gcc > export EXTRA_CFLAGS="-O0 -g" > cd $DPDK_DIR/lib/librte_vhost/eventfd_link <为了支持vhost,需要编译 > 该内核模块> > make > (2)Make OVS > export OVS_DIR=/home/wangrong/ovs-2.4.0 > export DPDK_BUILD=$DPDK_DIR/x86_64-native-linuxapp-gcc > cd $OVS_DIR > ./boot.sh > ./configure --with-dpdk=$DPDK_BUILD CFLAGS="-g -O2 -Wno-cast-align" < > 编译OVS的时候指定加入DPDK>
Hi, If using OVS v2.4 please ensure that --with-dpdk=/home/wangrong/dpdk-2.1.0/x86_64-native-linuxapp-gcc Do not use a relative path. Or else if using a relative path, you need to apply this patch https://patchwork.ozlabs.org/patch/518491/ If including additional CFLAGS, you can follow this format: ./configure --with-dpdk=/home/wangrong/dpdk-2.1.0/x86_64-native-linuxapp-gcc 'CFLAGS=-g -O2 -Wno-cast-align' Ciara > > Here comes the ERROR:configure: error: cannot link with dpdk > This error confuses me and I come to for help. > Thanks a lot. > Sincerely youres WangRong > > > > > > > _______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss