xref: /aosp_15_r20/external/iperf3/docs/building.rst (revision 7ab6e6ace082586527a400463bc693a412a40341)
1*7ab6e6acSAndroid Build Coastguard WorkerBuilding iperf3
2*7ab6e6acSAndroid Build Coastguard Worker===============
3*7ab6e6acSAndroid Build Coastguard Worker
4*7ab6e6acSAndroid Build Coastguard WorkerBuilding iperf3, as with most tools of this type, is a fairly
5*7ab6e6acSAndroid Build Coastguard Workerstraightforward operation.  The instructions in this section assume
6*7ab6e6acSAndroid Build Coastguard Workerthat the source distribution has already been unpacked.
7*7ab6e6acSAndroid Build Coastguard Worker
8*7ab6e6acSAndroid Build Coastguard WorkerPrerequisites
9*7ab6e6acSAndroid Build Coastguard Worker-------------
10*7ab6e6acSAndroid Build Coastguard Worker
11*7ab6e6acSAndroid Build Coastguard Workeriperf3 requires few (if any) dependencies on common operating
12*7ab6e6acSAndroid Build Coastguard Workersystems.  The only known prerequisites are listed here.
13*7ab6e6acSAndroid Build Coastguard Worker
14*7ab6e6acSAndroid Build Coastguard WorkerBuilding
15*7ab6e6acSAndroid Build Coastguard Worker--------
16*7ab6e6acSAndroid Build Coastguard Worker
17*7ab6e6acSAndroid Build Coastguard WorkerIn many cases, iperf3 can be built and installed as follows:
18*7ab6e6acSAndroid Build Coastguard Worker
19*7ab6e6acSAndroid Build Coastguard Worker``./configure && make && make install``
20*7ab6e6acSAndroid Build Coastguard Worker
21*7ab6e6acSAndroid Build Coastguard WorkerIn some cases, configuration might fail.  If this happens, it might
22*7ab6e6acSAndroid Build Coastguard Workerhelp to run ``./bootstrap.sh`` first from the top-level directory.
23*7ab6e6acSAndroid Build Coastguard Worker
24*7ab6e6acSAndroid Build Coastguard WorkerBy default, the ``libiperf`` library is built in both shared and
25*7ab6e6acSAndroid Build Coastguard Workerstatic forms.  Either can be suppressed by using the
26*7ab6e6acSAndroid Build Coastguard Worker``--disabled-shared`` or ``--disable-static`` configure-time options.
27*7ab6e6acSAndroid Build Coastguard Worker
28