[dpdk-dev] meson: wrong dependency in cross compilation on ARM

Bruce Richardson bruce.richardson at intel.com
Mon Dec 21 15:04:02 CET 2020


On Mon, Dec 21, 2020 at 12:19:17PM +0000, Hemant Agrawal wrote:
> Hi,
>                 I am trying to cross compile DPDK for arm64 on a ubuntu machine, which has a zlib pre-installed for native env.
> 
> I am encountering following build error in net_bnx2x as it has dependency on zlib.  It is trying to link with x86 arch based zlib.
> 
> Cross compiling zlib and setting the PKG_CONFIG_PATH solve the issue. But, Is their an easy way to disable these dependencies?
> 
Can you try with setting PKG_CONFIG_LIBDIR rather than PKG_CONFIG_PATH?
PKG_CONFIG_PATH simply extends the search locations, which means that
host-paths will still be searched, while PKG_CONFIG_LIBDIR replaces the
default path, eliminating the host-based search paths.

/Bruce


More information about the dev mailing list