Re: [lng-odp] can't configure ODP with DPDK pktio using DPDK package in Ubutnu

2018-10-29 Thread Maxim Uvarov
apt-get install dpdk-dev
cd odp.git
./configure

It has to take everything from repo. At least ubuntu 18.04 has dpdk for x86.

For cross compilation please take a look at .travis.yml file. It uses
docker to compile odp. But cross compilation for now is only for 16.04
becase it was well ported on arm.
https://github.com/Linaro/odp-docker-images that project we use to build
images which are used for CI by .travis.yml.

Best regard,
Maxim.



On Mon, 29 Oct 2018 at 20:15, gyanesh patra 
wrote:

> Hi,
> I see that newer ubuntu has an updated version of DPDK. How can I build/run
> ODP with this DPDK in ubuntu? For me it fails at configure step.
> *Steps:*
>  1)Install dpdk-dev, libdpdk-dev, dpdk
>  2) ./configure --prefix=/root/odp/build
> --with-dpdk-path=/usr/share/dpdk/arm64-armv8a-linuxapp-gcc/
>
> *I am getting an error in configure step:*
>
> configure: Using shared DPDK library found at
> /usr/share/dpdk/arm64-armv8a-linuxapp-gcc//lib
> checking rte_config.h usability... no
> checking rte_config.h presence... no
> checking for rte_config.h... no
> checking for rte_eal_init in -ldpdk ... yes
> configure: error: in `/root/odp':
> configure: error: can't find DPDK
> See `config.log' for more details
>
>
> *Output from config.log file:*
>
> configure:20358: Using shared DPDK library found at
> /usr/share/dpdk/arm64-armv8a-linuxapp-gcc//lib
> configure:20374: checking rte_config.h usability
> configure:20374: gcc -c -g -O2 -pthread -isystem
> /usr/share/dpdk/arm64-armv8a-linuxapp-gcc//include/dpdk  conftest.c >&5
> conftest.c:107:10: fatal error: rte_config.h: No such file or directory
>  #include 
>   ^~
> compilation terminated.
> configure:20374: $? = 1
>
>
> *The rte_config.h file is foud at:*
>
> root@cavium:~/odp# locate rte_config.h
> /usr/include/aarch64-linux-gnu/dpdk/rte_config.h
> /usr/share/dpdk/arm64-armv8a-linuxapp-gcc/include/rte_config.h
>
>
> It is ubuntu 18.04, DPDK 17.11 and AARCH64 system.
>
> Thanks,
> P Gyanesh Kumar Patra
>


[lng-odp] can't configure ODP with DPDK pktio using DPDK package in Ubutnu

2018-10-29 Thread gyanesh patra
Hi,
I see that newer ubuntu has an updated version of DPDK. How can I build/run
ODP with this DPDK in ubuntu? For me it fails at configure step.
*Steps:*
 1)Install dpdk-dev, libdpdk-dev, dpdk
 2) ./configure --prefix=/root/odp/build
--with-dpdk-path=/usr/share/dpdk/arm64-armv8a-linuxapp-gcc/

*I am getting an error in configure step:*

configure: Using shared DPDK library found at
/usr/share/dpdk/arm64-armv8a-linuxapp-gcc//lib
checking rte_config.h usability... no
checking rte_config.h presence... no
checking for rte_config.h... no
checking for rte_eal_init in -ldpdk ... yes
configure: error: in `/root/odp':
configure: error: can't find DPDK
See `config.log' for more details


*Output from config.log file:*

configure:20358: Using shared DPDK library found at
/usr/share/dpdk/arm64-armv8a-linuxapp-gcc//lib
configure:20374: checking rte_config.h usability
configure:20374: gcc -c -g -O2 -pthread -isystem
/usr/share/dpdk/arm64-armv8a-linuxapp-gcc//include/dpdk  conftest.c >&5
conftest.c:107:10: fatal error: rte_config.h: No such file or directory
 #include 
  ^~
compilation terminated.
configure:20374: $? = 1


*The rte_config.h file is foud at:*

root@cavium:~/odp# locate rte_config.h
/usr/include/aarch64-linux-gnu/dpdk/rte_config.h
/usr/share/dpdk/arm64-armv8a-linuxapp-gcc/include/rte_config.h


It is ubuntu 18.04, DPDK 17.11 and AARCH64 system.

Thanks,
P Gyanesh Kumar Patra