1 .. SPDX-License-Identifier: BSD-3-Clause
2 Copyright(c) 2015 Intel Corporation.
4 Compiling the Sample Applications
5 =================================
7 This section explains how to compile the DPDK sample applications.
9 To compile all the sample applications
10 --------------------------------------
12 Go to DPDK build directory:
14 .. code-block:: console
18 Enable examples compilation:
20 .. code-block:: console
22 meson configure -Dexamples=all
26 .. code-block:: console
30 For additional information on compiling see
31 :ref:`Compiling DPDK on Linux <linux_gsg_compiling_dpdk>` or
32 :ref:`Compiling DPDK on FreeBSD <building_from_source>`.
33 Applications are output to: ``dpdk/<build_dir>/examples``.
36 To compile a single application
37 -------------------------------
43 Go to DPDK build directory:
45 .. code-block:: console
49 Enable example app compilation:
51 .. code-block:: console
53 meson configure -Dexamples=helloworld
57 .. code-block:: console
65 Pkg-config is used when building an example app standalone using make, please
66 see :ref:`building_app_using_installed_dpdk` for more information.
68 Go to the sample application directory. Unless otherwise specified the sample
69 applications are located in ``dpdk/examples/``.
71 Build the application:
73 .. code-block:: console
77 To build the application for debugging use the ``DEBUG`` option.
78 This option adds some extra flags, disables compiler optimizations and
81 .. code-block:: console