[dpdk-dev] dpdk shared lib build

Thomas Monjalon thomas.monjalon at 6wind.com
Sat Nov 2 10:19:46 CET 2013


Hi,

02/11/2013 07:24, Jose Gavine Cueto :
> Building dpdk app. as a shared library (.so) I believe is supported but I
> can't find any documentation for it.  I tried doing the same Makefile
> format as building an app, and that is placed the following:
> 
> rte.vars.mk   ---------> before everything
> rte.extshared.mk -----------> after everything
> 
> At first make, spits the following error:
> 
>   INSTALL-SHARED
> cp: missing destination file operand after ‘/home/mydpdklib/src/build/lib’
> Try 'cp --help' for more information.
> make: *** [/home/linc/src/erlpmd.git/src/build/lib] Error 1
> 
> Second make, will do nothing, and lib does not contain any .so file.
>  Additionally I added  LIB = mylib.so

I think you should define SHARED variable instead of LIB.
Please confirm it works.

By the way, it is the old way of doing shared library. It should be deprecated 
and replaced by the new option RTE_BUILD_SHARED_LIB.

Could you also try the new method by using rte.extlib.mk with option 
CONFIG_RTE_BUILD_SHARED_LIB=y ?

Thank you
-- 
Thomas


More information about the dev mailing list