The name of the dpdk library changed between dpsk-2.0.0 and dpdk-2.1.0. Ovs-2.4 
builds against dpdk-2.0.0. You will need some patches to allow it to build 
against dpdk-2.1.0.

Gary

From: discuss [mailto:discuss-boun...@openvswitch.org] On Behalf Of wangrongs163
Sent: Tuesday, October 27, 2015 05:28
To: discuss@openvswitch.org
Subject: [ovs-discuss] ovs-dpdk:cannot link with dpdk

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>



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

Reply via email to