User Guide

Now it's time to build Wireshark ...
1. If you've closed cmd.exe in the meantime, prepare cmd.exe again
2. nmake -f Makefile.nmake all to build Wireshark
3. wait for Wireshark to compile - this may take a while!
4. run C:\wireshark\wireshark-gtk2\wireshark.exe and check if it starts
5. check Help/About if it shows your "private" program version, e.g.: Version
0.99.4-myprotocol123 - you might run a release version previously installed!
Tip: If compilation fails for suspicious reasons after you changed some source files try to distclean
the sources and make "all" again
2.2.11. Debug Environment Setup (XXX)
XXX - debug needs to be written, e.g. an idea is the create a simple MSVC 6 workspace/project(s)
to ease Visual Studio debugging
2.2.12. Optional: Create User's and Developer's Guide
Detailed information to build these guides can be found in the file docbook/README.txt in the
Wireshark sources.
2.2.13. Optional: Create a Wireshark Installer
Note: You should have successfully built Wireshark before doing the following!
If you want to build your own wireshark-setup.exe, you'll need NSIS.
1. NSIS: Download and install NSIS
You may check the MAKENSIS setting in the file config.nmake of the Wireshark sources.
2. vcredist_x86.exe : Download the C-Runtime redistributable for Visual C++ 2005 Express Edi-
tion (vcredist_x86.exe) and copy it into C:\wireshark-win32-libs
1
Beware of Visual Studio Service Packs!
If you have installed the Visual Studio Service Pack 1, you need a different vcre-
dist_x86.exe version! See Section 4.4, “Microsoft compiler toolchain (Win32 nat-
ive)”for details!
3. If you've closed cmd.exe in the meantime, prepare cmd.exe again
4. nmake -f Makefile.nmake packaging build Wireshark installer
5. run C:\wireshark\packaging\nsis\wireshark-setup-<version>.exe and test it - it's a good idea to
test also on a different machine than the developer machine.
1
Compiler dependent: This step depends on the compiler variant used, for other variants than the re-
commended Visual C++ 2005 Express Edition see the table at Section 4.4, “Microsoft compiler
toolchain (Win32 native)”!
Quick Setup
19