-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
could not find libiperf.so.0 on windows system #514
Comments
so files are for Unix based operating systems and equivalent to dll files in windows |
So, how to use iperf3 on windows? |
Are you trying to just use iperf3 on Windows or develop some code to use iperf3 functionality? There exist iperf3 executables for Windows if you want the former. Maybe if you can find someone who made those, they might be able to help you with the latter. |
Hi! TL;DR I think @iamramanath wants to use
For this combination to work you'd need (at least) to:
I've currently managed to:
Cython seems to be the more promising approach, I'll keep you posted should I get a functional, portable solution :) Cheers, VirtualTam |
@iamramanath, did the information provided by @virtualtam answer your question? |
Relates to esnet#514 Changed: - enable libtool's Win32 DLL feature - set libtool flags to force building a shared library Build steps: ``` $ touch NEWS README AUTHORS ChangeLog $ automake --add-missing --copy --foreign $ autoreconf $ ./configure $ make -j8 ``` Verification: - build artifacts cre located under `src/.libs` - there should be: - `cygiperf-0.dll` shared library - `iperf3.exe` executable binary linked to it - `$ ldd src/.libs/iperf3.exe` See: - http://www.gnu.org/software/libtool/manual/html_node/LT_005fINIT.html - https://www.sourceware.org/autobook/autobook/autobook_135.html - https://www.sourceware.org/autobook/autobook/autobook_136.html - https://www.sourceware.org/autobook/autobook/autobook_137.html - http://stackoverflow.com/questions/26151995/autotools-make-doesnt-create-dll-under-cygwin - https://autotools.io/libtool/windows.html - https://cygwin.com/cygwin-ug-net/dll.html - https://cygwin.com/problems.html - http://stackoverflow.com/questions/25105573/compile-for-windows-using-mingw-w64-and-autotools Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Relates to esnet#514 Changed: - enable libtool's Win32 DLL feature - set libtool flags to force building a shared library Build steps: ``` $ touch NEWS README AUTHORS ChangeLog $ automake --add-missing --copy --foreign $ autoreconf $ ./configure $ make -j8 ``` Verification: - build artifacts cre located under `src/.libs` - there should be: - `cygiperf-0.dll` shared library - `iperf3.exe` executable binary linked to it - `$ ldd src/.libs/iperf3.exe` See: - http://www.gnu.org/software/libtool/manual/html_node/LT_005fINIT.html - https://www.sourceware.org/autobook/autobook/autobook_135.html - https://www.sourceware.org/autobook/autobook/autobook_136.html - https://www.sourceware.org/autobook/autobook/autobook_137.html - http://stackoverflow.com/questions/26151995/autotools-make-doesnt-create-dll-under-cygwin - https://autotools.io/libtool/windows.html - https://cygwin.com/cygwin-ug-net/dll.html - https://cygwin.com/problems.html - http://stackoverflow.com/questions/25105573/compile-for-windows-using-mingw-w64-and-autotools Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Relates to esnet#514 Changed: - enable libtool's Win32 DLL feature - set libtool flags to force building a shared library Build steps: ``` $ touch NEWS README AUTHORS ChangeLog $ automake --add-missing --copy --foreign $ autoreconf $ ./configure $ make -j8 ``` Verification: - build artifacts cre located under `src/.libs` - there should be: - `cygiperf-0.dll` shared library - `iperf3.exe` executable binary linked to it - `$ ldd src/.libs/iperf3.exe` TODO: - cleanup autotools flags - only enable Windows DLL tools/settings when building on Windows/Cygwin See: - http://www.gnu.org/software/libtool/manual/html_node/LT_005fINIT.html - https://www.sourceware.org/autobook/autobook/autobook_135.html - https://www.sourceware.org/autobook/autobook/autobook_136.html - https://www.sourceware.org/autobook/autobook/autobook_137.html - http://stackoverflow.com/questions/26151995/autotools-make-doesnt-create-dll-under-cygwin - https://autotools.io/libtool/windows.html - https://cygwin.com/cygwin-ug-net/dll.html - https://cygwin.com/problems.html - http://stackoverflow.com/questions/25105573/compile-for-windows-using-mingw-w64-and-autotools Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Hi, I've finally settled for a simple Python wrapper leveraging iperf3's JSON output and the portable Plumbum shell/cmd wrapper: import logging
from plumbum import local
from plumbum.commands.processes import CommandNotFound, ProcessExecutionError
class IperfError(Exception):
"""Raised when iperf execution fails"""
def run_iperf3_client(server_ip, **kwargs):
"""Run an iperf3 client and return JSON results"""
iperf3_args = ['-J', '-c', server_ip]
if kwargs.get('reverse', False):
iperf3_args.append('-R')
try:
iperf3 = local['iperf3']
return iperf3(*iperf3_args)
except CommandNotFound as err:
logging.error("%s not found", err.program)
raise IperfError(err)
except ProcessExecutionError as err:
logging.error("%s exited with %d", err.argv[0], err.retcode)
raise IperfError(err) For the sake of completeness, I've also uploaded a (very rough and basic) working solution allowing to build iperf3 as a shared library (DLL) on Cygwin64 and bind to its API using Cython:
Hope this helps ;-) |
I'm going to assume the OP's question got taken care of one way or another, so closing. |
i have installed iperf3 python wrapper but it is giving OS error: could not find libiperf.so.0
can u suggest a method to overcome this
i am using windows7
The text was updated successfully, but these errors were encountered: