xref: /dpdk/doc/guides/testpmd_app_ug/build_app.rst (revision 25d11a86c56d50947af33d0b79ede622809bd8b9)
1..  SPDX-License-Identifier: BSD-3-Clause
2    Copyright(c) 2010-2014 Intel Corporation.
3
4Compiling the Application
5=========================
6
7The ``testpmd`` application is compiled as part of the main compilation of the DPDK libraries and tools.
8Refer to the DPDK Getting Started Guides for details.
9The basic compilation steps are:
10
11#.  Set the required environmental variables and go to the source directory:
12
13    .. code-block:: console
14
15        export RTE_SDK=/path/to/rte_sdk
16        cd $RTE_SDK
17
18#.  Set the compilation target. For example:
19
20    .. code-block:: console
21
22        export RTE_TARGET=x86_64-native-linuxapp-gcc
23
24#.  Build the application:
25
26    .. code-block:: console
27
28        make install T=$RTE_TARGET
29
30    The compiled application will be located at:
31
32    .. code-block:: console
33
34        $RTE_SDK/$RTE_TARGET/app/testpmd
35