Hi Bruce, 

Thank you for the response.

There is no errors when I run the makefile, however I do see a difference in 
the programs. I don't believe the makefile is linking all the libraries 
together as intended.

For example, when I run the ethtool sample program and compile it using meson, 
it works fine and rte_eth_dev_count_avail() returns the correct amount. 
However, when I compile ethtool with the makefile and run it 
rte_eth_dev_count_avail() returns 0.

pkg-config --path libdpdk returns: /usr/lib64/pkgconfig/libdpdk.pc (I am using 
Redat 8.7)


V/r,
--------------------------------------------------------- 
Name       : Gilbert Carrillo | Software Engineer
Company : Ampex Data Systems
Address    : 26460 Corporate Ave, Ste 200
           Hayward, CA 94545
Office        : +1-650-367-2011
Mobile      : +1-575-312-7477
Website   : ampex.com 



-----Original Message-----
From: Bruce Richardson <bruce.richard...@intel.com> 
Sent: Wednesday, May 3, 2023 2:28 AM
To: Gilbert Carrillo <gcarri...@ampex.com>
Cc: dev@dpdk.org
Subject: Re: DPDK 22.11 Troubleshooting

On Mon, May 01, 2023 at 10:27:05PM +0000, Gilbert Carrillo wrote:
>    Hello,
> 
> 
>    I installed DPDK version 22.11 and the QDMA DPDK driver. However, I am
>    having trouble compiling the test applications.
> 
> 
>    I have a c++ program that has an external buffer and my end goal is to
>    attach/map an mbuf to my external buffer for zero-copy DMA.
> 
> 
>    Currently I use CMAKE to compile my program, so I was curious if this
>    application has to be run on meson/ninja or is there a cmake option? I
>    tried compiling the test applications with the makefile but had no
>    luck, I could only compile using meson/ninja.
> 

If you have installed DPDK on your system, then a pkg-config file for it should 
be available, allowing applications to be built against it using any build 
system. The makefiles for the sample applications demonstrate how this can be 
done.

If building the example applications with make is failing, can you share the 
error messages got here, as it should work ok, once DPDK is correctly installed 
on the system. An additional test you can run is "pkg-config --path libdpdk" to 
check where DPDK is installed [though not all versions of pkg-config support 
--path, I think].

Regards,
/Bruce

Reply via email to