From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6153E42364; Thu, 12 Oct 2023 20:09:00 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D96274028A; Thu, 12 Oct 2023 20:08:59 +0200 (CEST) Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by mails.dpdk.org (Postfix) with ESMTP id 5A97140042 for ; Thu, 12 Oct 2023 20:08:58 +0200 (CEST) Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-32d89600755so154673f8f.0 for ; Thu, 12 Oct 2023 11:08:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=youngcopy-com.20230601.gappssmtp.com; s=20230601; t=1697134138; x=1697738938; darn=dpdk.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=kmERmOt5EDI+G+tPkn9bbH1LY8cQaFe01Ka3z1Wjmxg=; b=GcmExzNlLfDgmhl5DG4zOOt9wI2ZjSTstIuVLRt9Cg2PvXLqjWrePPySHFVp8UuacV VIlNum5uBU/S6nV1u8h/RdNhi5NLf6WwrYnyI4IrOhyR7j97L1FhzoXIAG8156SK4p5E o/YQdS5+dvP0RkLRspmemlo+de+gbfqmGYNyffqhdR64fbKE+m5HqZYRazFWqEz/mGtr uTuKZU8B6VfZ+A3DvJArKtzpirmpnboLAdfgtNyEjMOJMID3KuJ19qRVHgZggBzVJexq z4g5AzjD1jJQbObagp3iVyAL4Qosc0jkk7PdBET0nS/2LHxecJYBmLS9hkIieXhooExP DMrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697134138; x=1697738938; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kmERmOt5EDI+G+tPkn9bbH1LY8cQaFe01Ka3z1Wjmxg=; b=KA3JV+frRRBDCOlRaSOy4jBIqQfjZAbVbDuc0gb5rI/P82Z6IuCX/Ot2hMHee9+l8X 95g3xoN/F0uNCZN1LWsL7BdSXT73cZsk6QNS2aTJykPBqnyikAYLGlB7mCj6t1eWYMZV 4y+K8l2lwnJgdAgOIxs7bVKN05TDQmzjCvaL8ELHWKGvCO85mWagMPzO/gB1I8veWGol fq3O4X958GoTz/G3tZxvkldKqfnNDBMijRv0KQS9Z5azmjPp/1u+BpIqLn2UTdyvHdz+ GlUn/KAjPESvhAIW4/m59eaWg9szHn2ng1uCiOu0OUcmNHjfc9F4S2KzB3GKBz65eQsn MfgQ== X-Gm-Message-State: AOJu0YwQ0baZ9TMq+jswZ55smoJDvSgmVE9PG7kLfYcPeuT+QhF8Vufn qxZOScSG5Qb9QcJLsPl9TgU3hopLSbOSbsq4P9zmwQ== X-Google-Smtp-Source: AGHT+IEqXMgfo+EvhoaF9fenhnmxjy8Vrlk1uSp/Q0hX2SU+0CYN1aanFocwiZcbSWL4ZksABldzes0vdALDBca5PKE= X-Received: by 2002:a5d:4290:0:b0:317:3da0:7606 with SMTP id k16-20020a5d4290000000b003173da07606mr21520433wrq.4.1697134137723; Thu, 12 Oct 2023 11:08:57 -0700 (PDT) MIME-Version: 1.0 References: <20230920154817.617-1-dave@youngcopy.com> <20230920154817.617-3-dave@youngcopy.com> <20230925160516.GA28993@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> In-Reply-To: <20230925160516.GA28993@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> From: Dave Young Date: Thu, 12 Oct 2023 14:08:46 -0400 Message-ID: Subject: Re: [PATCH 2/6] Section 2: Install and Build DPDK To: Tyler Retzlaff Cc: dev@dpdk.org, Bruce Richardson Content-Type: multipart/alternative; boundary="0000000000006a8070060788d5dc" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org --0000000000006a8070060788d5dc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Tyler, can you provide an example of the OS specific section/title you're thinking would make sense to use? Can you confirm the following? 1. The Clang-LLVM C compiler (version >=3D 16.0.x) 2. Meson Build system (Required version: 0.57.0) 3. Updated commands: # Previous Command meson -Dexamples=3Dhelloworld build # Updated Command meson setup -Dexamples=3Dhelloworld build # Previous Command ninja -C build # Updated Command meson compile -C build 4. Since Ninja is bundled with Meson 0.57.0, a separate section for its installation may not be necessary. Is this correct? Thanks! David Young Professional Copywriter/Technical Writer Young Copy +1 (678) 500-9550 https://www.youngcopy.com On Mon, Sep 25, 2023 at 12:05=E2=80=AFPM Tyler Retzlaff < roretzla@linux.microsoft.com> wrote: > On Wed, Sep 20, 2023 at 11:48:06AM -0400, David Young wrote: > > --- > > .../building_from_sources.rst | 108 ++++++++++++++++++ > > .../install_and_build/index.rst | 15 +++ > > .../installing_prebuilt_packages.rst | 54 +++++++++ > > .../windows_install_build.rst | 93 +++++++++++++++ > > 4 files changed, 270 insertions(+) > > create mode 100644 > doc/guides/getting_started_guide/install_and_build/building_from_sources.= rst > > create mode 100644 > doc/guides/getting_started_guide/install_and_build/index.rst > > create mode 100644 > doc/guides/getting_started_guide/install_and_build/installing_prebuilt_pa= ckages.rst > > create mode 100644 > doc/guides/getting_started_guide/install_and_build/windows_install_build.= rst > > > > diff --git > a/doc/guides/getting_started_guide/install_and_build/building_from_source= s.rst > b/doc/guides/getting_started_guide/install_and_build/building_from_source= s.rst > > new file mode 100644 > > index 0000000000..e4ee8e436d > > --- /dev/null > > +++ > b/doc/guides/getting_started_guide/install_and_build/building_from_source= s.rst > > @@ -0,0 +1,108 @@ > > +.. SPDX-License-Identifier: BSD-3-Clause > > + Copyright(c) 2010-2025 Intel Corporation. > > + > > +.. _building_from_sources: > > + > > +Building and Installing DPDK from Sources > > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > + > > +This chapter provides a comprehensive guide for building DPDK from > sources on both > > +Linux and FreeBSD platforms. It covers the necessary steps, > prerequisites, > > +and considerations for different architectures and compilers. > > when the title of the section is general it shouldn't mention a specific > OS in the content. if the content is OS specific then the parent section > or the title of the section should identify to which OS it applies. in > general it would be nice to convey that windows is an equally supported > platform to the other operating systems. > > i know it's a bit of a dance i hope you can help interpret what i'm > trying to convey. > > > + > > +Required Tools > > +-------------- > > + > > +To build DPDK, you'll need the following tools: > > + > > +- A C compiler like ``gcc`` (version 5+) or ``clang`` (version 3.6+) > > +- ``pkg-config`` or ``pkgconf`` > > +- Python 3.6 or later > > +- ``meson`` (version 0.53.2+) and ``ninja`` > > +- ``pyelftools`` (version 0.22+) > > + > > +Here's how to install them: > > + > > +Linux > > +^^^^^ > > + > > +Alpine > > + > > +.. code-block:: bash > > + > > + sudo apk add alpine-sdk bsd-compat-headers > > + pip install meson ninja > > + > > +Debian and Ubuntu and derivatives > > + > > +.. code-block:: bash > > + > > + sudo apt install build-essential > > + pip install meson ninja > > + > > +Fedora and RedHat Enterprise Linux RHEL > > + > > +.. code-block:: bash > > + > > + sudo dnf groupinstall "Development Tools" > > + pip install meson ninja > > + > > +openSUSE > > + > > +.. code-block:: bash > > + > > + sudo zypper install -t pattern devel_basis python3-pyelftools > > + pip install meson ninja > > + > > +FreeBSD > > +^^^^^^^ > > + > > +FreeBSD (as root) > > + > > +.. code-block:: bash > > + > > + pkg install meson pkgconf py38-pyelftools > > + > > +Note: If you're using FreeBSD, you'll also need kernel sources. Make > sure they're included during the FreeBSD installation. > > + > > +Getting the DPDK Source > > +----------------------- > > + > > +Download the DPDK source code from the official repository > > +``https://fast.dpdk.org/rel/`` . > > + > > +Use ``wget`` to grab the DPDK version:: > > + > > + wget https://fast.dpdk.org/rel/dpdk-.tar.xz > > + > > +Extract the downloaded archive: > > + > > +.. code-block:: bash > > + > > + tar -xvf dpdk-.tar.gz > > + > > +Navigate to the DPDK directory: > > + > > +.. code-block:: bash > > + > > + cd dpdk- > > + > > +Building DPDK > > +------------- > > + > > +Configure the build based on your needs, hardware, and environment. > > +This might include setting specific flags or options. For example: > =E2=80=9Cmeson setup -Dbuildtype=3Ddebugoptimized build=E2=80=9D. Then co= mpile using =E2=80=9Cninja=E2=80=9D > and install using =E2=80=9Cmeson install=E2=80=9D. > > + > > +.. code-block:: bash > > + > > + ninja -C build > > + cd build > > + sudo ninja install > > + ldconfig > > + > > +For detailed information on Meson build configuration options specific > to DPDK, see :ref:`DPDK Meson Build Configuration Options > `. > > + > > +Cross-Compilation Instructions for Different Architectures > > +---------------------------------------------------------- > > + > > +For instructions on building DPDK for ARM64, LoongArch, and RISC-V, > refer to :ref:`cross_compile_dpdk`. > > diff --git > a/doc/guides/getting_started_guide/install_and_build/index.rst > b/doc/guides/getting_started_guide/install_and_build/index.rst > > new file mode 100644 > > index 0000000000..f4d8740fb6 > > --- /dev/null > > +++ b/doc/guides/getting_started_guide/install_and_build/index.rst > > @@ -0,0 +1,15 @@ > > +.. SPDX-License-Identifier: BSD-3-Clause > > + Copyright(c) 2010-2025 Intel Corporation. > > + > > +.. _install_and_build: > > + > > +Install and Build DPDK > > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > + > > +.. toctree:: > > + :maxdepth: 2 > > + > > + > > + installing_prebuilt_packages > > + building_from_sources > > + windows_install_build > > \ No newline at end of file > > diff --git > a/doc/guides/getting_started_guide/install_and_build/installing_prebuilt_= packages.rst > b/doc/guides/getting_started_guide/install_and_build/installing_prebuilt_= packages.rst > > new file mode 100644 > > index 0000000000..3e395d65f1 > > --- /dev/null > > +++ > b/doc/guides/getting_started_guide/install_and_build/installing_prebuilt_= packages.rst > > @@ -0,0 +1,54 @@ > > +.. SPDX-License-Identifier: BSD-3-Clause > > + Copyright(c) 2010-2025 Intel Corporation. > > + > > +.. _installing_prebuilt_packages: > > + > > +Installing Pre-built Packages > > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > > + > > +Pre-built packages provide a convenient way to install DPDK without th= e > need to compile > > +the source code manually. These packages are created and maintained by > the DPDK > > +community or OS vendors and are available for various operating system= s > and > > +distributions. > > + > > +Available Distributions > > +----------------------- > > + > > +Linux > > +^^^^^ > > + > > +Pre-built DPDK packages are available for several popular Linux > distributions, > > +including but not limited to: > > + > > +Alpine > > + > > +.. code-block:: bash > > + > > + sudo apk add dpdk > > + > > +Debian and Ubuntu and derivatives > > + > > +.. code-block:: bash > > + > > + sudo apt-get install dpdk > > + > > +Fedora and RedHat Enterprise Linux RHEL > > + > > +.. code-block:: bash > > + > > + sudo dnf install dpdk > > + > > +openSUSE > > + > > +.. code-block:: bash > > + > > + sudo zypper install dpdk > > + > > +FreeBSD > > +^^^^^^^ > > + > > +To install DPDK on FreeBSD, use the following command: > > + > > +.. code-block:: bash > > + > > + sudo pkg install dpdk > > \ No newline at end of file > > diff --git > a/doc/guides/getting_started_guide/install_and_build/windows_install_buil= d.rst > b/doc/guides/getting_started_guide/install_and_build/windows_install_buil= d.rst > > new file mode 100644 > > index 0000000000..ea0e131766 > > --- /dev/null > > +++ > b/doc/guides/getting_started_guide/install_and_build/windows_install_buil= d.rst > > @@ -0,0 +1,93 @@ > > +.. SPDX-License-Identifier: BSD-3-Clause > > + Copyright(c) 2010-2015 Intel Corporation. > > + > > +.. _windows_install_build: > > + > > +Windows DPDK Build > > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > + > > +Before you begin the process of building DPDK on Windows, > > +make sure your system meets all the necessary requirements as outlined > below. > > + > > +Windows System Requirements > > +--------------------------- > > + > > +Building the DPDK and its applications on Windows requires one of the > following > > +environments: > > + > > +- The Clang-LLVM C compiler and Microsoft MSVC linker. > > would it be overly objectionable to state specific LLVM >=3D 16.0.x as > required? > > > +- The MinGW-w64 toolchain (either native or cross). > > + > > +The Meson Build system is used to prepare the sources for compilation > with the Ninja backend. > > + > > +Option 1: Clang-LLVM C Compiler and Microsoft MSVC Linker > > +--------------------------------------------------------- > > + > > +1. Install the Compiler: Download and install the clang compiler from > the > > +`LLVM website `_. > > + > > +2. Install the Linker: Download and install the Build Tools for Visual > Studio from the > > +`Microsoft website `_. > > +When installing build tools, select the =E2=80=9CVisual C++ build tool= s=E2=80=9D option > and make sure > > +the Windows SDK is selected. > > + > > +Option 2: MinGW-w64 Toolchain > > +----------------------------- > > + > > +1. On Linux (for cross-compilation): Install MinGW-w64 via a package > manager. > > +Version 4.0.4 for Ubuntu 16.04 cannot be used due to a MinGW-w64 bug. > > + > > +2. On Windows: Obtain the latest version installer from the > > +`MinGW-w64 repository `_. > > +Any thread model (POSIX or Win32) can be chosen, DPDK does not rely on > it. > > +Install to a folder without spaces in its name, like ``C:\MinGW``. > > +This path is assumed for the rest of this guide. > > + > > +Install the Build System > > +------------------------ > > + > > +Download and install the build system from the > > +`Meson website < > http://mesonbuild.com/Getting-meson.html#installing-meson-and-ninja-with-= the-msi-installer>`_. > > > +A good option to choose is the MSI installer for both meson and ninja > together. > > +Recommended version is either Meson 0.57.0 (baseline) or the latest > release. > > s/Recommended/Required/ is 0.57.0 i do not believe their latest release > works? > > > + > > +Install the Backend > > +------------------- > > + > > +If using Ninja, download and install the backend from the > > +`Ninja website `_ or install along with the > meson build > > +system. > > i'm not sure we need to mention the installation of the ninja backend > since you acquire it along with meson 0.57.0? anyone call me wrong on > this or does windows use any other backend that we are aware? if not i > think we can delete the 'install the backend' section entirely. > > > + > > +Once you have verified that your system meets these requirements, > > +you can proceed with the following steps to build DPDK. > > + > > +Build the Code > > +-------------- > > + > > +The build environment is setup to build the EAL and the helloworld > example by default. > > +To compile the examples, the flag -Dexamples is required. > > + > > +**Option 1. Native Build on Windows** > > + > > +When using Clang-LLVM, specifying the compiler might be required to > complete the meson > > +command:: > > + > > + set CC=3Dclang > > + > > +When using MinGW-w64, it is sufficient to have toolchain executables i= n > PATH:: > > + > > + set PATH=3DC:\MinGW\mingw64\bin;%PATH% > > + > > +To compile the examples:: > > + > > + cd C:\Users\me\dpdk > > + meson -Dexamples=3Dhelloworld build > > meson setup -Dexamples=3Dhelloworld build > > > + ninja -C build > > meson compile -C build > > > + > > +**Option 2. Cross-Compile with MinGW-w64** > > + > > +The cross-file option must be specified for Meson. > > +Depending on the distribution, paths in this file may need adjustments= :: > > + > > + meson --cross-file config/x86/cross-mingw -Dexamples=3Dhellowo= rld > build > > + ninja -C build > > \ No newline at end of file > > -- > > 2.41.0.windows.1 > --0000000000006a8070060788d5dc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Tyler, can you provide an example of the OS specific = section/title you're thinking would make sense to use?

Can you confirm the following?

1. The Clang-LLVM C compiler= (version >=3D 16.0.x)
2. Meson Build system (Required version= : 0.57.0)
3. Updated commands:

# Previou= s Command
meson -Dexamples=3Dhelloworld build
# Updated Command
me= son setup -Dexamples=3Dhelloworld build

# Previous Command
ninja = -C build
# Updated Command
meson compile -C build

4. Since Ninja is bundled with Meson 0.57.0, a separate section for i= ts installation may not be necessary. Is this correct?

Thanks!
Dav= id Young
Professional Copywriter/Technical Writer
Young Copy
+1 (678) 500-9550


On Mon, Sep 25, 2023 at 12:05=E2=80=AFPM Tyler Retzl= aff <roretzla@linux.micr= osoft.com> wrote:
On Wed, Sep 20, 2023 at 11:48:06AM -0400, David Young wrote:
> ---
>=C2=A0 .../building_from_sources.rst=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0| 108 ++++++++++++++++++
>=C2=A0 .../install_and_build/index.rst=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 15 +++
>=C2=A0 .../installing_prebuilt_packages.rst=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 |=C2=A0 54 +++++++++
>=C2=A0 .../windows_install_build.rst=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 93 +++++++++++++++
>=C2=A0 4 files changed, 270 insertions(+)
>=C2=A0 create mode 100644 doc/guides/getting_started_guide/install_and_= build/building_from_sources.rst
>=C2=A0 create mode 100644 doc/guides/getting_started_guide/install_and_= build/index.rst
>=C2=A0 create mode 100644 doc/guides/getting_started_guide/install_and_= build/installing_prebuilt_packages.rst
>=C2=A0 create mode 100644 doc/guides/getting_started_guide/install_and_= build/windows_install_build.rst
>
> diff --git a/doc/guides/getting_started_guide/install_and_build/buildi= ng_from_sources.rst b/doc/guides/getting_started_guide/install_and_build/bu= ilding_from_sources.rst
> new file mode 100644
> index 0000000000..e4ee8e436d
> --- /dev/null
> +++ b/doc/guides/getting_started_guide/install_and_build/building_from= _sources.rst
> @@ -0,0 +1,108 @@
> +..=C2=A0 SPDX-License-Identifier: BSD-3-Clause
> +=C2=A0 =C2=A0 Copyright(c) 2010-2025 Intel Corporation.
> +
> +.. _building_from_sources:
> +
> +Building and Installing DPDK from Sources
> +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> +
> +This chapter provides a comprehensive guide for building DPDK from so= urces on both
> +Linux and FreeBSD platforms. It covers the necessary steps, prerequis= ites,
> +and considerations for different architectures and compilers.

when the title of the section is general it shouldn't mention a specifi= c
OS in the content. if the content is OS specific then the parent section or the title of the section should identify to which OS it applies. in
general it would be nice to convey that windows is an equally supported
platform to the other operating systems.

i know it's a bit of a dance i hope you can help interpret what i'm=
trying to convey.

> +
> +Required Tools
> +--------------
> +
> +To build DPDK, you'll need the following tools:
> +
> +- A C compiler like ``gcc`` (version 5+) or ``clang`` (version 3.6+)<= br> > +- ``pkg-config`` or ``pkgconf``
> +- Python 3.6 or later
> +- ``meson`` (version 0.53.2+) and ``ninja``
> +- ``pyelftools`` (version 0.22+)
> +
> +Here's how to install them:
> +
> +Linux
> +^^^^^
> +
> +Alpine
> +
> +.. code-block:: bash
> +
> +=C2=A0 =C2=A0sudo apk add alpine-sdk bsd-compat-headers
> +=C2=A0 =C2=A0pip install meson ninja
> +
> +Debian and Ubuntu and derivatives
> +
> +.. code-block:: bash
> +
> +=C2=A0 =C2=A0sudo apt install build-essential
> +=C2=A0 =C2=A0pip install meson ninja
> +
> +Fedora and RedHat Enterprise Linux RHEL
> +
> +.. code-block:: bash
> +
> +=C2=A0 =C2=A0sudo dnf groupinstall "Development Tools"
> +=C2=A0 =C2=A0pip install meson ninja
> +
> +openSUSE
> +
> +.. code-block:: bash
> +
> +=C2=A0 =C2=A0sudo zypper install -t pattern devel_basis python3-pyelf= tools
> +=C2=A0 =C2=A0pip install meson ninja
> +
> +FreeBSD
> +^^^^^^^
> +
> +FreeBSD (as root)
> +
> +.. code-block:: bash
> +
> +=C2=A0 =C2=A0pkg install meson pkgconf py38-pyelftools
> +
> +Note: If you're using FreeBSD, you'll also need kernel source= s. Make sure they're included during the FreeBSD installation.
> +
> +Getting the DPDK Source
> +-----------------------
> +
> +Download the DPDK source code from the official repository
> +``https://fast.dpdk.org/rel/``.
> +
> +Use ``wget`` to grab the DPDK version::
> +
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 wget https://fast.dpdk.org/rel/dpdk= -<version>.tar.xz
> +
> +Extract the downloaded archive:
> +
> +.. code-block:: bash
> +
> +=C2=A0 =C2=A0tar -xvf dpdk-<version>.tar.gz
> +
> +Navigate to the DPDK directory:
> +
> +.. code-block:: bash
> +
> +=C2=A0 =C2=A0cd dpdk-<version>
> +
> +Building DPDK
> +-------------
> +
> +Configure the build based on your needs, hardware, and environment. <= br> > +This might include setting specific flags or options. For example: = =E2=80=9Cmeson setup -Dbuildtype=3Ddebugoptimized build=E2=80=9D. Then comp= ile using =E2=80=9Cninja=E2=80=9D and install using =E2=80=9Cmeson install= =E2=80=9D.
> +
> +.. code-block:: bash
> +
> +=C2=A0 =C2=A0ninja -C build
> +=C2=A0 =C2=A0cd build
> +=C2=A0 =C2=A0sudo ninja install
> +=C2=A0 =C2=A0ldconfig
> +
> +For detailed information on Meson build configuration options specifi= c to DPDK, see :ref:`DPDK Meson Build Configuration Options <dpdk_meson_= build_options>`.
> +
> +Cross-Compilation Instructions for Different Architectures
> +----------------------------------------------------------
> +
> +For instructions on building DPDK for ARM64, LoongArch, and RISC-V, r= efer to :ref:`cross_compile_dpdk`.
> diff --git a/doc/guides/getting_started_guide/install_and_build/index.= rst b/doc/guides/getting_started_guide/install_and_build/index.rst
> new file mode 100644
> index 0000000000..f4d8740fb6
> --- /dev/null
> +++ b/doc/guides/getting_started_guide/install_and_build/index.rst
> @@ -0,0 +1,15 @@
> +..=C2=A0 SPDX-License-Identifier: BSD-3-Clause
> +=C2=A0 =C2=A0 Copyright(c) 2010-2025 Intel Corporation.
> +
> +.. _install_and_build:
> +
> +Install and Build DPDK
> +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +
> +.. toctree::
> +=C2=A0 =C2=A0 :maxdepth: 2
> +
> +=C2=A0 =C2=A0
> +=C2=A0 =C2=A0 installing_prebuilt_packages
> +=C2=A0 =C2=A0 building_from_sources
> +=C2=A0 =C2=A0 windows_install_build
> \ No newline at end of file
> diff --git a/doc/guides/getting_started_guide/install_and_build/instal= ling_prebuilt_packages.rst b/doc/guides/getting_started_guide/install_and_b= uild/installing_prebuilt_packages.rst
> new file mode 100644
> index 0000000000..3e395d65f1
> --- /dev/null
> +++ b/doc/guides/getting_started_guide/install_and_build/installing_pr= ebuilt_packages.rst
> @@ -0,0 +1,54 @@
> +..=C2=A0 SPDX-License-Identifier: BSD-3-Clause
> +=C2=A0 =C2=A0 Copyright(c) 2010-2025 Intel Corporation.
> +
> +.. _installing_prebuilt_packages:
> +
> +Installing Pre-built Packages
> +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D
> +
> +Pre-built packages provide a convenient way to install DPDK without t= he need to compile
> +the source code manually. These packages are created and maintained b= y the DPDK
> +community or OS vendors and are available for various operating syste= ms and
> +distributions.
> +
> +Available Distributions
> +-----------------------
> +
> +Linux
> +^^^^^
> +
> +Pre-built DPDK packages are available for several popular Linux distr= ibutions,
> +including but not limited to:
> +
> +Alpine
> +
> +.. code-block:: bash
> +
> +=C2=A0 =C2=A0sudo apk add dpdk
> +
> +Debian and Ubuntu and derivatives
> +
> +.. code-block:: bash
> +
> +=C2=A0 =C2=A0sudo apt-get install dpdk
> +
> +Fedora and RedHat Enterprise Linux RHEL
> +
> +.. code-block:: bash
> +
> +=C2=A0 =C2=A0sudo dnf install dpdk
> +
> +openSUSE
> +
> +.. code-block:: bash
> +
> +=C2=A0 =C2=A0sudo zypper install dpdk
> +
> +FreeBSD
> +^^^^^^^
> +
> +To install DPDK on FreeBSD, use the following command:
> +
> +.. code-block:: bash
> +
> +=C2=A0 =C2=A0sudo pkg install dpdk
> \ No newline at end of file
> diff --git a/doc/guides/getting_started_guide/install_and_build/window= s_install_build.rst b/doc/guides/getting_started_guide/install_and_build/wi= ndows_install_build.rst
> new file mode 100644
> index 0000000000..ea0e131766
> --- /dev/null
> +++ b/doc/guides/getting_started_guide/install_and_build/windows_insta= ll_build.rst
> @@ -0,0 +1,93 @@
> +..=C2=A0 SPDX-License-Identifier: BSD-3-Clause
> +=C2=A0 =C2=A0 Copyright(c) 2010-2015 Intel Corporation.
> +
> +.. _windows_install_build:
> +
> +Windows DPDK Build
> +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> +
> +Before you begin the process of building DPDK on Windows,
> +make sure your system meets all the necessary requirements as outline= d below.
> +
> +Windows System Requirements
> +---------------------------
> +
> +Building the DPDK and its applications on Windows requires one of the= following
> +environments:
> +
> +- The Clang-LLVM C compiler and Microsoft MSVC linker.

would it be overly objectionable to state specific LLVM >=3D 16.0.x as required?

> +- The MinGW-w64 toolchain (either native or cross).
> +
> +The Meson Build system is used to prepare the sources for compilation= with the Ninja backend.
> +
> +Option 1: Clang-LLVM C Compiler and Microsoft MSVC Linker
> +---------------------------------------------------------
> +
> +1. Install the Compiler: Download and install the clang compiler from= the
> +`LLVM website <http://releases.llvm.org/>`_.
> +
> +2. Install the Linker: Download and install the Build Tools for Visua= l Studio from the
> +`Microsoft website <https://visualstudio.micro= soft.com/downloads/>`_.
> +When installing build tools, select the =E2=80=9CVisual C++ build too= ls=E2=80=9D option and make sure
> +the Windows SDK is selected.
> +
> +Option 2: MinGW-w64 Toolchain
> +-----------------------------
> +
> +1. On Linux (for cross-compilation): Install MinGW-w64 via a package = manager.
> +Version 4.0.4 for Ubuntu 16.04 cannot be used due to a MinGW-w64 bug.=
> +
> +2. On Windows: Obtain the latest version installer from the
> +`MinGW-w64 repository <https://mingw-w64.org/doku.php>= `_.
> +Any thread model (POSIX or Win32) can be chosen, DPDK does not rely o= n it.
> +Install to a folder without spaces in its name, like ``C:\MinGW``. > +This path is assumed for the rest of this guide.
> +
> +Install the Build System
> +------------------------
> +
> +Download and install the build system from the
> +`Meson website <http://mesonbuild.com/Getting-meson.html#installing-meson-an= d-ninja-with-the-msi-installer>`_.
> +A good option to choose is the MSI installer for both meson and ninja= together.
> +Recommended version is either Meson 0.57.0 (baseline) or the latest r= elease.

s/Recommended/Required/ is 0.57.0 i do not believe their latest release
works?

> +
> +Install the Backend
> +-------------------
> +
> +If using Ninja, download and install the backend from the
> +`Ninja website <https://ninja-build.org/>`_ or install along= with the meson build
> +system.

i'm not sure we need to mention the installation of the ninja backend since you acquire it along with meson 0.57.0? anyone call me wrong on
this or does windows use any other backend that we are aware? if not i
think we can delete the 'install the backend' section entirely.

> +
> +Once you have verified that your system meets these requirements, > +you can proceed with the following steps to build DPDK.
> +
> +Build the Code
> +--------------
> +
> +The build environment is setup to build the EAL and the helloworld ex= ample by default.
> +To compile the examples, the flag -Dexamples is required.
> +
> +**Option 1. Native Build on Windows**
> +
> +When using Clang-LLVM, specifying the compiler might be required to c= omplete the meson
> +command::
> +
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 set CC=3Dclang
> +
> +When using MinGW-w64, it is sufficient to have toolchain executables = in PATH::
> +
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 set PATH=3DC:\MinGW\mingw64\bin;%PATH% > +
> +To compile the examples::
> +
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 cd C:\Users\me\dpdk
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 meson -Dexamples=3Dhelloworld build

=C2=A0 =C2=A0 =C2=A0 =C2=A0 meson setup -Dexamples=3Dhelloworld build

> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 ninja -C build

=C2=A0 =C2=A0 =C2=A0 =C2=A0 meson compile -C build

> +
> +**Option 2. Cross-Compile with MinGW-w64**
> +
> +The cross-file option must be specified for Meson.
> +Depending on the distribution, paths in this file may need adjustment= s::
> +
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 meson --cross-file config/x86/cross-mingw= -Dexamples=3Dhelloworld build
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 ninja -C build
> \ No newline at end of file
> --
> 2.41.0.windows.1
--0000000000006a8070060788d5dc--