Thanks Jac

I've won with NTop and enjoying the brilliant data I'm accumulating. Now I've got to analyse the "other" protocol category which accounts for almost half my traffic and play with an ODBC repository. NTop rocks!

Colin

jac engel wrote:
Colin,
Try the attached Build-Mingw.txt
good luck
Jac

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Colin
J Franco
Sent: Tuesday, September 24, 2002 10:16
To: [EMAIL PROTECTED]
Subject: [Ntop] Problems making NTop for Windows - Can Anyone Help?


Hi

I'm trying to make ntop to use with Windows and I'm failing and lost. 
Please help if you can. I'm attempting to work in accordance with the 
guidelines, i.e.: using MinGW and following the steps outlined in 
BUILD-MinGW.txt

I've collected and installed all the prerequisites although in several 
cases I've had to use a new release of some of the packages and 
products. The exact releases Burton used do not seem to be available any 
more.

Building zlib worked fine but things get weird from there on. Building 
libpng is impossible as described  since there is no Makefile.mingw. 
However, makefile.gcc appears to work fine with pngtest succeeding.

Continuing to build gd I encounter another problem:  there is no libgd.a 
anywhere among the installed prerequisites. I got creative and copied 
libgdi32.a as libgd.a but the error persists and I cannot see where/how 
to change the paths in the makefile to correctly find this creative but 
possible incorrect libgd.a

While pondering this problem I decided to look a step ahead and try 
building gdchart. This fails unable to find libgdchart.a

I've reviewed all the FAQ's I can find, tried alternative snapshots of 
ntop and finally have run out of ideas with which to progress. Maybe the 
BUILD-MinGW.txt notes are out of date or the ntop distribution is 
incomplete. Maybe something else is missing. Whatever the problem is I'm 
lost. Please help if you can.

Thanks

Colin

_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://lists.ntop.org/mailman/listinfo/ntop

  

Jac Engel d.d. 02-06-14 Description how to build ntop on Win2k using the MinGW toolchain (MinGW allows you to build native win32 binaries linked against the Microsoft runtime and not the cygwin runtime). Building Ntop ------------- This was last tested against the 2002-06-13 snapshot from http://snapshot.ntop.org. Prerequisites: 1) MinGW (available from http://www.mingw.org) This was tested against MinGW-1.1.tar.gz Note: I unzipped (use folder names) it in C:\Mingw 2) GNU Make (available from http://www.mingw.org) This was tested with GNU Make v3.79.1, (comes with MinGW-1.1) 3) WinPCAP developer's pack (available from http://winpcap.polito.it/install/bin/WinPcap_2_3.zip This was tested with Release 2.3 of WinPcap Note: I unzipped (use folder names) it in C:\Mingw and executed C:\Mingw\WPdpack\Drivers\WinPcap_2_3.exe 4) gdbm for win32/mingw (from http://sourceforge.net/projects/mingwrep) This was tested with gdbm-1.8.0-20010430.zip Note: I unzipped (use folder names) it in C:\Mingw\gdbm 5) ntop (available from http://www.ntop.org) This was tested with http://snapshot.ntop.org/tgz/ntop-02-06-13.tgz Note: I unzipped (use folder names) in C:\ntop-02-06-13 6) UnxUtils package UnxUtils.zip at: http://www.wzw.tu-muenchen.de/~syring/win32/UnxUtils.html Note : I unzipped only patch.exe and rm.exe to C:\mingw\bin rm.exe is required as defined in ntop\makefile.mingw to make ntop. Patch.exe is only required if diff files are available. Steps 1) Install all prerequisites and Open Dos command box and CD to C:\ntop-02-06-1\ntop-current Add to PATH variable C:\Mingw\bin\ path C:\MinGW\bin\;%path% ( don't forget the last backslash !) 2) Edit the ntop/Makefile.mingw and fill in the following values: INC_GDBM (where the gdbm header files can be found) INC_WPDPACK (where the winpcap header files can be found) LIB_GDBM (where libgdbm.a is found) LIB_WPDPACK (where libwpcap.a os found ) result : INC_GDBM=-Ic:/Mingw/gdbm/include INC_WPDPACK=-Ic:/Mingw/wpdpack/include LIB_GDBM=-Lc:/Mingw/gdbm/lib LIB_WPDPACK=-Lc:/Mingw/wpdpack/lib 3) Build the sub-components (starting from the ntop-current directory) 3a) Build zlib cd gdchart0.94c/zlib-1.1.4 make -f Makefile.mingw cd ../.. 3b) Build libpng cd gdchart0.94c/gd-1.8.3/libpng-1.2.1 make -f scripts/makefile.mingw cd ../../../ 3c) Build gd cd gdchart0.94c/gd-1.8.3 make -f Makefile.mingw cd ../.. 3d) Build gdchart cd gdchart0.94c make -f Makefile.mingw cd .. 4) Build ntop itself cd ntop make -f Makefile.mingw 5) Package ntop and the dependent files Create directory e.g. C:\ntop , copy ntop.exe and the html subdirectory hierarchy. Ntop dependent files are libgdm-2.dll and wpcap.dll. Copy libgdbm-2.dll (exists in C:\Mingw\gdbm\bin) to C:\ntop ( wpcap.dll exists in C:\WINNT\system32 after install of WinPcap2_3.exe , so this dir is already in your PATH variable ) . 6) Use it Execute ntop.exe from the install directory. Run ntop in console : ntop.exe /c <options> Run ntop as a service : ntop.exe /i <options> You can get command line help by running ntop.exe -h

Reply via email to