From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: dpdk shared lib build Date: Sat, 02 Nov 2013 10:19:46 +0100 Message-ID: <6749068.Cu70FoguaT@x220> References: Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Cc: dev-VfR2kkLFssw@public.gmane.org To: Jose Gavine Cueto Return-path: In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Hi, 02/11/2013 07:24, Jose Gavine Cueto : > Building dpdk app. as a shared library (.so) I believe is supported b= ut 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: >=20 > rte.vars.mk ---------> before everything > rte.extshared.mk -----------> after everything >=20 > At first make, spits the following error: >=20 > INSTALL-SHARED > cp: missing destination file operand after =E2=80=98/home/mydpdklib/s= rc/build/lib=E2=80=99 > Try 'cp --help' for more information. > make: *** [/home/linc/src/erlpmd.git/src/build/lib] Error 1 >=20 > Second make, will do nothing, and lib does not contain any .so file. > Additionally I added LIB =3D 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 dep= recated=20 and replaced by the new option RTE_BUILD_SHARED_LIB. Could you also try the new method by using rte.extlib.mk with option=20= CONFIG_RTE_BUILD_SHARED_LIB=3Dy ? Thank you --=20 Thomas