[ovs-discuss] ovs-dpdk:cannot link with dpdk

wangrongs163 wangrongs163 at 163.com
Tue Oct 27 09:27:48 UTC 2015


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 at 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








-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20151027/7041fc0f/attachment-0002.html>


More information about the discuss mailing list