Skip to content

Compiling Iperf3 Windows

lbsou edited this page Feb 26, 2023 · 5 revisions

Download Cygwin x64

Here

Installation

During the wizard, make sure you check the category "Dev"

Add more packages

# wget https://raw.githubusercontent.com/transcode-open/apt-cyg/master/apt-cyg
# install apt-cyg /bin
# apt-cyg install git nano make cmake extra-cmake-modules automake autoconf gcc-core gcc-g++ gdb binutils cygwin-devel w32api-headers w32api-runtime libguile3.0_1 libisl23 libmpc3 libgc1 wget

Compile iperf3

# git clone https://github.com/davidBar-On/iperf.git --branch issue-812-835-control-connection-keepalive
# cd iperf
# autoconf
# autoheader
# ./configure
Add "#define HAVE_TCP_KEEPALIVE 1" in the following file
# vi .src/iperf_config.h
# make && make install
# whereis iperf3
iperf3: /usr/local/bin/iperf3.exe
# cygcheck /usr/local/bin/iperf3.exe

C:\cygwin64\usr\local\bin\iperf3
C:\cygwin64\bin\cygcrypto-1.1.dll
C:\cygwin64\bin\cygwin1.dll
C:\cygwin64\bin\cygz.dll

Now copy the previous files to another directory and you should be good to run iperf3 from Windows!

Clone this wiki locally