Compiling Analyzer

Folder structure

The Analyzer sources have to be unpacked on the hard disk; in order to keep the makefile settings, the folder structure must be the following:

(root)- \
        +-- analyzer -\
        |             +-- bin
        |             |
        |             +-- MakeAll
        |
        +-- nbDevPack (NetBee Developer's Pack: include and library files)
        |
        +-- wpdpack (WinPcap Developer's Pack: include and library files)
        |
        +-- wxWidgets (wxWidgets cross platform library)

Analyzer source code must be unpacked in the the Analyzer folder.

In order to compile Analyzer, you need the Microsoft Visual Studio 2005 compiler. Additionally, here there is the list of tools that are required to compile Analyzer:

Required Tools Download From Installation
WinPcap Developer's Pack (version 4.0 or higher) WinPcap site Extract all the content of the wpdpack.zip file in the wpdpack folder.
NetBee Developer's Pack NetBee site (Win32 version) It is a two-step process:
  • extract all the content of the nbDevPack.zip file in the nbDevPack folder
  • copy the following files from nbDevPack/bin folder into Analyzer's bin folder:
    • all *.dll files
    • all *.xml files
Cross platform libraries (wxWidgets 2.8.0) Analyzer site (Win32 version)
or wxWidgets site
This is a multi-steps process, since wxWidgets libraries are not provided in binary form; you have to compile them before using:
  • decompress the ZIP file in the target folder. Beware: the path containing the wxWidgets library cannot contain spaces.
  • Open Microsoft Visual Studio .NET
  • Menu File/Open Workspace: select file build/msw/wx.dsw (in the wxWidgets folder)
  • Menu Build/Set Active Configuration, choose "Debug"
  • Menu: Build/Build Solution
    • Note: in case some error occurs, please re-launch the build process again
  • Menu Build/Set Active Configuration, choose "Release"
  • Menu: Build/Build Solution
    • Note: in case some error occurs, please re-launch the build process again

Please refer to the wxWidgets documentation in case of problems.

wxWidgets are statically linked to Analyzer, therefore no wxWidgets DLLs are needed in the Analyzer/bin folder.

Warning: please note that you need the WinPcap drivers installed on your system in order to launch Analyzer. In other words, the WinPcap developer's pack is needed to compile Analyzer, but is not enought to make it running. Please refer to the WinPcap page for downloading and installing it.

To compile Analyzer (finally...)

The analyzer/prj folder contains a Visual C++ project (and workspace) that will compile all the needed pieces and create the executable. The executables will be placed in the analyzer/bin folder.

Warning: wxWidgets must be compiled before compiling Analyzer.