1It has been reported that versions of netperf have configured and 2compiled under Cygwin. 3 4It is also known that netperf has compiled using the Windows DDK. 5Here is a skeleton of the instructions to do so: 6 7Steps are: 8 9A) Install the Windows driver developer kit (if not already done). 10 11B) open a Cmd windows (i.e., a DOS box) for the target environment 12 (target OS version; free vs checked build; x86, AMD64, or IA64). 13 This is picked from the "Start\Developer Kits" path. 14 15C) enter the src\NetPerfDir directory 16 17D) Edit sources to enable any desired optional features (eg 18 -DWANT_HISTOGRAM) or to remove features which your version of 19 Windows might not support (eg -DHAVE_STRUCT_SOCKADDR_STORAGE) 20 21E) while still in the src\NetperfDir directory type "build /cD". 22 23F) Repeat steps C through E in src\NetServerDir 24 25G) the target files will be in a directory like: 26 NetPerfDir\objchk_wnet_IA64\IA64, NetServerDir\objchk_wnet_IA64\IA64 27 NetPerfDir\objfre_wnet_x86\i386, or NetPerfDir\objfre_wnet_AMD64\amd64 28 29NOTE: If any components of the path (ie the full names of the files, 30including parent directories) contain spaces (eg "My Documents"), 31build will charge off into the weeds. 32 33If you do not want the corresponding features, edit the sources files 34and remove the -Ds for WANT_DEMO, WANT_HISTOGRAM and/or WANT_INTERVALS 35 36And if that weren't enough, it is also known that netperf has been 37compiled using MS Visual Studio 2003. Here are the instructions from 38the person who made that work (See Authors): 39 401. Under the PROJECT tab, <project name> PROPERTIES, LINKER folder, 41Select COMMAND LINE and add WS2_32.lib in the whitespace labeled 42Additional Options: 43 44 452. Under the PROJECT tab, <project name> PROPERTIES, C/C++ foleder, 46Select Preprocessor, On the right, add DO_IPV6; at the end of the 47Preprocessor Definitions whitespace. 48 49 50He goes on to say: 51 52NOTE: WHEN COMPLING NETSERVER, it works, but I got issued the 53foillowing warnigns in my build: 54 55 56------ Rebuild All started: Project: netserver, Configuration: Debug Win32 ------ 57 58Deleting intermediate files and output files for project 'netserver', configuration 'Debug|Win32'. 59 60Compiling... 61 62nettest_bsd.c 63 64g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(846) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data 65 66g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(1303) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data 67 68g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(2020) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data 69 70g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(5080) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data 71 72g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(5715) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data 73 74g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(6591) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data 75 76g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(8013) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data 77 78g:\Program Files\netperf\netperf-2.4.1rc1\src\nettest_bsd.c(11123) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data 79 80netsh.c 81 82netserver.c 83 84g:\Program Files\netperf\netperf-2.4.1rc1\src\netserver.c(457) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data 85 86netlib.c 87 88g:\Program Files\netperf\netperf-2.4.1rc1\src\netlib.c(2470) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data 89 90g:\Program Files\netperf\netperf-2.4.1rc1\src\netlib.c(2480) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data 91 92netcpu_ntperf.c 93 94inet_ntop.c 95 96Generating Code... 97 98Linking... 99 100Build log was saved at "file://g:\Documents and Settings\Administrator\My Documents\Visual Studio Projects\netserver\Debug\BuildLog.htm" 101 102netserver - 0 error(s), 11 warning(s) 103 104 105 106---------------------- Done ---------------------- 107 108Rebuild All: 1 succeeded, 0 failed, 0 skipped 109 110