* How to build DPDK without usertools/dpdk-setup.sh?
@ 2024-09-11 13:39 David Aldrich
2024-09-11 15:52 ` David Marchand
0 siblings, 1 reply; 5+ messages in thread
From: David Aldrich @ 2024-09-11 13:39 UTC (permalink / raw)
To: users
Hi
With dpdk v.19.11.14 I built dpdk for target 'x86_64-native-linux-gcc'
using usertools/dpdk-setup.sh (option 44).
The resulting directory structure included:
$ ls dpdk-stable-19.11.14/x86_64-native-linux-gcc
app build include kmod lib Makefile
I am now moving to dpdk v.20.11.10 in which usertools/dpdk-setup.sh is
deprecated. I build with:
$ meson -Dexamples=all build
$ cd build
$ ninja
which results in:
$ ls build
app buildtools config drivers lib
meson-logs meson-uninstalled usertools
build.ninja compile_commands.json doc examples meson-info
meson-private rte_build_config.h
which is quite different to the v.19 build. For example, there is now
no 'include' directory.
I don't want to 'install' because I am experimenting with different
dpdk versions.
Is it possible to produce a target directory in v.20.11.10 similar to
that of dpdk-stable-19.11.14/x86_64-native-linux-gcc?
Best regards
David
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to build DPDK without usertools/dpdk-setup.sh?
2024-09-11 13:39 How to build DPDK without usertools/dpdk-setup.sh? David Aldrich
@ 2024-09-11 15:52 ` David Marchand
2024-09-11 15:59 ` David Aldrich
2024-09-11 16:11 ` Richardson, Bruce
0 siblings, 2 replies; 5+ messages in thread
From: David Marchand @ 2024-09-11 15:52 UTC (permalink / raw)
To: David Aldrich; +Cc: users, Bruce Richardson
Hello,
On Wed, Sep 11, 2024 at 3:39 PM David Aldrich
<david.aldrich.ntml@gmail.com> wrote:
>
> I don't want to 'install' because I am experimenting with different
> dpdk versions.
Well, I live with many different versions of DPDK.
The only trick is to pass a -Dprefix=$(pwd)/install and make your
application use this directory.
>
> Is it possible to produce a target directory in v.20.11.10 similar to
> that of dpdk-stable-19.11.14/x86_64-native-linux-gcc?
An installed dpdk should be quite similar.
--
David Marchand
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to build DPDK without usertools/dpdk-setup.sh?
2024-09-11 15:52 ` David Marchand
@ 2024-09-11 15:59 ` David Aldrich
2024-09-11 16:11 ` Richardson, Bruce
1 sibling, 0 replies; 5+ messages in thread
From: David Aldrich @ 2024-09-11 15:59 UTC (permalink / raw)
To: David Marchand; +Cc: users, Bruce Richardson
Hi David
Thanks for your reply,
> The only trick is to pass a -Dprefix=$(pwd)/install and make your
> application use this directory.
meson -Dexamples=all -Dprefix="/" build
is doing what I need.
I do have a further problem. The resulting build has no pmd drivers.
It is probably relevant that the output of the first meson command
includes:
=================
Content Skipped
=================
libs:
drivers:
common/mvep: missing dependency, "libmusdk"
common/mlx5: missing dependency, "mlx5"
crypto/qat: missing dependency, libcrypto
net/af_xdp: missing dependency, "libbpf"
net/ipn3ke: missing dependency, "libfdt"
net/mlx4: missing dependency, "mlx4"
net/mlx5: missing internal dependency, "common_mlx5"
net/mvneta: missing dependency, "libmusdk"
net/mvpp2: missing dependency, "libmusdk"
etc.
Many of those libraries are installed, but not libmusdk. Is that
essential? (I am using a Broadwell NIC).
Best regards
David
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: How to build DPDK without usertools/dpdk-setup.sh?
2024-09-11 15:52 ` David Marchand
2024-09-11 15:59 ` David Aldrich
@ 2024-09-11 16:11 ` Richardson, Bruce
2024-09-11 17:01 ` David Aldrich
1 sibling, 1 reply; 5+ messages in thread
From: Richardson, Bruce @ 2024-09-11 16:11 UTC (permalink / raw)
To: Marchand, David, David Aldrich; +Cc: users
> -----Original Message-----
> From: David Marchand <david.marchand@redhat.com>
> Sent: Wednesday, September 11, 2024 4:52 PM
> To: David Aldrich <david.aldrich.ntml@gmail.com>
> Cc: users <users@dpdk.org>; Richardson, Bruce
> <bruce.richardson@intel.com>
> Subject: Re: How to build DPDK without usertools/dpdk-setup.sh?
>
> Hello,
>
> On Wed, Sep 11, 2024 at 3:39 PM David Aldrich
> <david.aldrich.ntml@gmail.com> wrote:
> >
> > I don't want to 'install' because I am experimenting with different
> > dpdk versions.
>
> Well, I live with many different versions of DPDK.
> The only trick is to pass a -Dprefix=$(pwd)/install and make your
> application use this directory.
>
You can also build and link against an uninstalled DPDK by using the pkg-config files in the "meson-uninstalled" directory of your build.
For example, to get linker line use:
"PKG_CONFIG_PATH=./build/meson-uninstalled/ pkg-config --libs libdpdk"
> >
> > Is it possible to produce a target directory in v.20.11.10 similar to
> > that of dpdk-stable-19.11.14/x86_64-native-linux-gcc?
>
> An installed dpdk should be quite similar.
>
Agreed.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to build DPDK without usertools/dpdk-setup.sh?
2024-09-11 16:11 ` Richardson, Bruce
@ 2024-09-11 17:01 ` David Aldrich
0 siblings, 0 replies; 5+ messages in thread
From: David Aldrich @ 2024-09-11 17:01 UTC (permalink / raw)
To: Richardson, Bruce; +Cc: Marchand, David, users
Thanks for your reply. That problem is fixed now. I am going to start
a new thread for my driver problem.
Best regards
David
On Wed, Sep 11, 2024 at 5:12 PM Richardson, Bruce
<bruce.richardson@intel.com> wrote:
>
>
>
> > -----Original Message-----
> > From: David Marchand <david.marchand@redhat.com>
> > Sent: Wednesday, September 11, 2024 4:52 PM
> > To: David Aldrich <david.aldrich.ntml@gmail.com>
> > Cc: users <users@dpdk.org>; Richardson, Bruce
> > <bruce.richardson@intel.com>
> > Subject: Re: How to build DPDK without usertools/dpdk-setup.sh?
> >
> > Hello,
> >
> > On Wed, Sep 11, 2024 at 3:39 PM David Aldrich
> > <david.aldrich.ntml@gmail.com> wrote:
> > >
> > > I don't want to 'install' because I am experimenting with different
> > > dpdk versions.
> >
> > Well, I live with many different versions of DPDK.
> > The only trick is to pass a -Dprefix=$(pwd)/install and make your
> > application use this directory.
> >
>
> You can also build and link against an uninstalled DPDK by using the pkg-config files in the "meson-uninstalled" directory of your build.
>
> For example, to get linker line use:
> "PKG_CONFIG_PATH=./build/meson-uninstalled/ pkg-config --libs libdpdk"
>
> > >
> > > Is it possible to produce a target directory in v.20.11.10 similar to
> > > that of dpdk-stable-19.11.14/x86_64-native-linux-gcc?
> >
> > An installed dpdk should be quite similar.
> >
> Agreed.
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-09-11 17:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-11 13:39 How to build DPDK without usertools/dpdk-setup.sh? David Aldrich
2024-09-11 15:52 ` David Marchand
2024-09-11 15:59 ` David Aldrich
2024-09-11 16:11 ` Richardson, Bruce
2024-09-11 17:01 ` David Aldrich
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).