From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id EED74A054F; Tue, 18 Feb 2020 15:07:04 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 637DA1C0B3; Tue, 18 Feb 2020 15:07:04 +0100 (CET) Received: from mail-vs1-f68.google.com (mail-vs1-f68.google.com [209.85.217.68]) by dpdk.org (Postfix) with ESMTP id EC6211C0B1 for ; Tue, 18 Feb 2020 15:07:02 +0100 (CET) Received: by mail-vs1-f68.google.com with SMTP id a2so13059943vso.3 for ; Tue, 18 Feb 2020 06:07:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IHeAmqD07uf9C8QAIN+olBEYsEvH3WGn0KuuU+yodow=; b=hZgZn9SrUoz1/BUTTI/shkvs4q0lZ9ZBIgZzehoe9Qh5dXdKOD+sQkcTqxrN84zJkv y4NxKmBWmMneFwHEWYb85vRnbt+9/9+bHcxzya0d767yoW+m75sd1otncfztVn1VdgwD 7WM5L/N1GjCJPxGXpuMkTSIRbiBaL2tRB01jYiGXp06RZVbT5QNTjyXf0U9Vjw1lIozk GlOCrjmToCtlkQ28rp7mZzZOBbMkN//AJafetopvFwnYnjJ6671OuV/LRUcbtCpan3rx e6LLLfCD5xd/pAe2cmgDhFvgJ3uGQ48dNXnRv8HApn67OHsGPWM3J0tlPziNTLvRvO1E dEhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IHeAmqD07uf9C8QAIN+olBEYsEvH3WGn0KuuU+yodow=; b=EkpzrfQkGT1xP9skevcpZpxImn1Ti+z3EVVXsCnfpcxk/zveMsayRcQZa+8lvtP9NQ DIFtByRVscyTeAXrXFfHixb2xFmQclnfyatYdzsU7olvg/go+bczbtX5IGIQKmfkEH3W /k/yJt0uzZf3m2xa2bmn92+y3kfLhcTLuHRI3UrUAs3lpCRvbOg63a8/f/jq0P4483t3 i9phjkfF4gfSTl+AdQeLooy5SudgdfWmwpAuyUnYzabLkiJR8N5e21VCznToHy6eyhog 7nh6j/0ucnpne0uYK33lkcBtX8Pe+n/9ZHPWDkgYIpwd/qc+4TSQgUxBmAZfp0wzhtZM oCqg== X-Gm-Message-State: APjAAAVqaa8bhlPyydxdMGQov09K4/n57wERN0c1ulPBWsRIaZJEGAKm 68AVGTj0CueVfPygLw9qeOKToA3blXlYEyOLBws= X-Google-Smtp-Source: APXvYqzsZmhKn0WUkAE4Q2hVr/qgfog4LoWACStjVGMmkB1gGQkQe25/qY2fTia2oLP/x/lrKxPdpJ0AplXQx7MzPVw= X-Received: by 2002:a67:8704:: with SMTP id j4mr11460222vsd.106.1582034822238; Tue, 18 Feb 2020 06:07:02 -0800 (PST) MIME-Version: 1.0 References: <20200217143958.GA866@bricha3-MOBL.ger.corp.intel.com> <20200218131256.GA250991@hmswarspite.think-freely.org> In-Reply-To: <20200218131256.GA250991@hmswarspite.think-freely.org> From: Victor Huertas Date: Tue, 18 Feb 2020 15:06:51 +0100 Message-ID: To: Neil Horman Cc: Bruce Richardson , dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] Proposal to add a new toolchain for dpdk: g++ X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Thanks Neil for your answer, I think I will try the first option you posted without touching the makefiles from the dpdk-stable and I will tell how it goes. So, as a conclusion, it seems that all the modifications I have done are not necessary in order to build your DPDK application using g++. Regards, El mar., 18 feb. 2020 a las 14:13, Neil Horman () escribi=C3=B3: > On Mon, Feb 17, 2020 at 02:39:58PM +0000, Bruce Richardson wrote: > > On Mon, Feb 17, 2020 at 11:01:21AM +0100, Victor Huertas wrote: > > > Hi all, > > > > > > I am using DPDK development environment to develop an application fro= m > > > which I have to access C++ code. > > > I managed to modify some internal mk files in the dpdk-stable > repository to > > > allow g++ compiler to be supported. > > > > > > I have all the modified files well identified and I wonder if the > support > > > team is interested to add this toolchain in future DPDK releases. > > > > > Rather than trying to build DPDK with g++, or to use the DPDK makefiles > > with your C++ application, can I recommend instead that you treat DPDK = as > > any third-party library and build it independently of your application. > > > > If you compile and install DPDK using meson and ninja - or install the > > DPDK package from your linux distro - you will have a 'libdpdk.pc' file > > installed for use by pkg-config. Then for building your application, pu= t > in > > the relevant calls to pkg-config i.e. 'pkg-config --cflags libdpdk' and > > 'pkg-config --libs libdpdk', into your app makefile and work from there= . > > > yes, exactly this. The proscribed method of handling issues like this is > to > either: > > 1) Build dpdk separately (or just install it from whatever distribution > you are > using, if thats an option), and just link against it (either statically o= r > dynamically) when you build your application. > > 2) If you embed dpdk source in your > environment, and build it at the same time as your application, you shoul= d > interface to its build system, by just calling ninja/meson or make from a > build > target in your application - the dpdk build file should properly select g= cc > instead of g++, which you should already have if you have g++ installed. > > Neil > > > Note too, that all DPDK header files should already be safe for inclusi= on > > in C++ code - if not, please log a bug. > > > > Regards, > > /Bruce > > > --=20 Victor