From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by dpdk.org (Postfix) with ESMTP id 2E3DC156 for ; Sat, 2 Nov 2013 10:17:57 +0100 (CET) Received: by mail-wi0-f171.google.com with SMTP id f4so2004667wiw.10 for ; Sat, 02 Nov 2013 02:18:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=esumsKlTapLi4DPPKwttq3Zew1pupqLdwSVX2GFBm3E=; b=T3EHHIj/xAIgGs61jvKTNOnxZ3iIgl8WBGNu8QzvNMPTZV95Qgw3uw6nJ3s0ey+Fgj wvnGvC1MzLdW9PkX0Kp4i1/yyTVUib6oDIqQjh/QD2v2bwyyvyXPjkqZDOKGrNc4tcjB sYEkqyxG7S2un3cOZUSXSHdN9jJciSjCYmGtv4JiZeBY+RCLFIwvp/Lq3zWCYxBFDP6l U6p2nlu2MHeg3bbAiZKkm+G6Wly8IwLvmXP7HTThRAACQ1rC8XIOrMhEvebZySqHc6SW 8n6oHGWtt56VLshy5+po9YDahrl8RR0au3drVEqvEm+w2sVoijFdoWaBOIdh0tjp8APT bdpw== X-Gm-Message-State: ALoCoQn7rFIvKjmLp4rrPY/fVNsfyCyvfiAc4YTB/4ioDH5w2sAsB+6Upy0L1cu58eQhEHVF8450 X-Received: by 10.194.63.228 with SMTP id j4mr5407742wjs.34.1383383929224; Sat, 02 Nov 2013 02:18:49 -0700 (PDT) Received: from x220.localnet (APoitiers-651-1-165-137.w86-201.abo.wanadoo.fr. [86.201.160.137]) by mx.google.com with ESMTPSA id w10sm15412176wia.4.2013.11.02.02.18.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Nov 2013 02:18:48 -0700 (PDT) From: Thomas Monjalon To: Jose Gavine Cueto Date: Sat, 02 Nov 2013 10:19:46 +0100 Message-ID: <6749068.Cu70FoguaT@x220> Organization: 6WIND User-Agent: KMail/4.11.2 (Linux/3.11.4-1-ARCH; KDE/4.11.2; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] dpdk shared lib build X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Nov 2013 09:17:57 -0000 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