DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] dpdk shared lib build
@ 2013-11-01 23:24 Jose Gavine Cueto
  2013-11-02  9:19 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: Jose Gavine Cueto @ 2013-11-01 23:24 UTC (permalink / raw)
  To: dev

Hi,

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

Could somebody please tell me if I'm doing the right thing ?


Thanks
Pepe
-- 
To stop learning is like to stop loving.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] dpdk shared lib build
  2013-11-01 23:24 [dpdk-dev] dpdk shared lib build Jose Gavine Cueto
@ 2013-11-02  9:19 ` Thomas Monjalon
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2013-11-02  9:19 UTC (permalink / raw)
  To: Jose Gavine Cueto; +Cc: dev

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-02  9:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-01 23:24 [dpdk-dev] dpdk shared lib build Jose Gavine Cueto
2013-11-02  9:19 ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).