2006-06-06 23:08:58 +00:00
|
|
|
<!-- WSDG Chapter Tools -->
|
2004-08-21 19:02:14 +00:00
|
|
|
<!-- $Id$ -->
|
|
|
|
<chapter id="ChapterTools">
|
2007-01-21 04:48:49 +00:00
|
|
|
<title>Tool Reference</title>
|
2004-08-21 20:34:22 +00:00
|
|
|
<section id="ChToolsIntro">
|
|
|
|
<title>Introduction</title>
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>This chapter will provide you with information about the
|
|
|
|
various tools needed for Wireshark development.</para>
|
2008-02-28 21:44:28 +00:00
|
|
|
<para>None of the tools mentioned in this chapter are needed to
|
|
|
|
run Wireshark; they are only needed to build it.</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>Most of these tools have their roots on UNIX like
|
|
|
|
platforms, but Win32 ports are also available. Therefore the
|
2008-01-15 21:48:16 +00:00
|
|
|
tools are available in different "flavours":
|
2007-01-21 04:48:49 +00:00
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>UNIX (or Win32 Cygwin): the tools should be commonly
|
|
|
|
available on the supported UNIX platforms, and for Win32
|
|
|
|
platforms by using the Cygwin UNIX emulation</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Win32 native: some tools are available as native
|
|
|
|
Win32 tools, no special emulation is required</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist></para>
|
|
|
|
<warning>
|
|
|
|
<title>Warning!</title>
|
|
|
|
<para>
|
2007-08-29 00:15:15 +00:00
|
|
|
<command>Unless you know exactly what you are doing, you
|
|
|
|
should strictly follow the recommendations given in</command>
|
|
|
|
<xref linkend="ChapterSetup" />!</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</warning>
|
|
|
|
<para>The following sections give a very brief description of
|
|
|
|
what a particular tool is doing, how it is used in the
|
|
|
|
Wireshark project and how it can be installed and
|
|
|
|
tested.</para>
|
|
|
|
<para>Don't expect a lot of documentation regarding these tools
|
|
|
|
in this document. If you need further documentation of a
|
|
|
|
specific tool, you should find lot's of useful information on
|
|
|
|
the web, as these tools are commonly used. You can also try to
|
2008-01-15 21:48:16 +00:00
|
|
|
get help for the UNIX based tools with
|
|
|
|
<userinput>toolname --help</userinput> or read the manpage
|
2007-01-21 04:48:49 +00:00
|
|
|
<userinput>man toolname</userinput>.</para>
|
|
|
|
<para>You will find explanations of the tool usage for some of
|
2008-01-15 21:48:16 +00:00
|
|
|
the specific development tasks in
|
2007-01-21 04:48:49 +00:00
|
|
|
<xref linkend="ChapterSources" />.</para>
|
2004-08-21 19:02:14 +00:00
|
|
|
</section>
|
2007-01-21 04:48:49 +00:00
|
|
|
<section id="ChToolsCygwin">
|
|
|
|
<title>Win32: Cygwin</title>
|
|
|
|
<para>Cygwin provides a lot of UNIX based tools on the Win32
|
|
|
|
platform. It uses a UNIX emulation layer which might be a bit
|
|
|
|
slower compared to the native Win32 tools, but at an acceptable
|
|
|
|
level. The installation and update is pretty easy and done
|
|
|
|
through a single (web based) setup.exe.</para>
|
|
|
|
<para>The native Win32 tools will typically be a bit faster,
|
|
|
|
but more complicated to install, as you would have to download
|
|
|
|
the tools from different webpages, and install them in
|
|
|
|
different ways, tweaking the PATH and alike.</para>
|
|
|
|
<note>
|
|
|
|
<title>Note!</title>
|
|
|
|
<para>As there's no Win32 native bash version available, at
|
|
|
|
least a basic installation of cygwin is required in any
|
|
|
|
case.</para>
|
|
|
|
</note>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>Although Cygwin consists of several separate packages,
|
2007-01-21 04:48:49 +00:00
|
|
|
the installation and update is done through a single setup.exe,
|
|
|
|
which acts similar to other web based installers. All tools
|
2008-01-15 21:48:16 +00:00
|
|
|
will be installed into one base folder, the default is
|
2007-01-21 04:48:49 +00:00
|
|
|
<filename>C:\cygwin</filename>.</para>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>You will find this network based setup.exe at:
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://www.cygwin.com/" />. Click on one of the
|
2008-01-15 21:48:16 +00:00
|
|
|
"Install Cygwin now" appearances to download the
|
2007-01-21 04:48:49 +00:00
|
|
|
<filename>setup.exe</filename>. After the download completed,
|
2008-01-15 21:48:16 +00:00
|
|
|
start this
|
2007-09-10 17:10:42 +00:00
|
|
|
<filename>setup.exe</filename> on your machine.</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>The setup will ask you for some settings, the defaults
|
|
|
|
should usually work well for a first start. At the "Select
|
|
|
|
Packages" page, you'll need to select some additional packages,
|
|
|
|
which are not installed by default. Navigate to the required
|
|
|
|
Category/Package row and click on the "Skip" item in the "New"
|
|
|
|
column so it shows a version number for the required
|
|
|
|
package</para>
|
|
|
|
<para>After clicking the Next button several times, the setup
|
|
|
|
will then download and install the selected packages (this may
|
|
|
|
take a while, depending on the package size).</para>
|
2010-06-28 16:50:07 +00:00
|
|
|
<para>Under: "Start→Programs→Cygwin→Cygwin
|
2007-01-21 04:48:49 +00:00
|
|
|
Bash Shell" you should now be able to start a new Cygwin bash
|
|
|
|
shell, which is similar to the command line
|
|
|
|
(command.com/cmd.exe) in Win32, but much more powerful.</para>
|
|
|
|
<section id="ChToolsCygwinPackages">
|
|
|
|
<title>Add/Update/Remove Cygwin Packages</title>
|
|
|
|
<para>If you want to add additional, update installed or
|
|
|
|
remove packages later, you have to start the setup.exe again.
|
|
|
|
At the "Select Packages" page, the entry in the "New" column
|
|
|
|
will control what is done (or not) with the package. If a new
|
|
|
|
version of a package is available, the new version number
|
|
|
|
will be displayed, so it will be automatically updated. You
|
|
|
|
can change the current setting by simply clicking at it, it
|
2008-01-15 21:48:16 +00:00
|
|
|
will change between:
|
2007-01-21 04:48:49 +00:00
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>a specific version number - this different package
|
|
|
|
version will be installed</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Skip - not installed, no changes</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Keep - already installed, no changes</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Uninstall - uninstall this package</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Reinstall - reinstall this package</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist></para>
|
|
|
|
</section>
|
2006-02-26 18:24:39 +00:00
|
|
|
</section>
|
2007-01-21 04:48:49 +00:00
|
|
|
<section id="ChToolsGNUChain">
|
|
|
|
<title>GNU compiler toolchain (UNIX or Win32 Cygwin)</title>
|
|
|
|
<section id="ChToolsGCC">
|
|
|
|
<title>gcc (GNU compiler collection)</title>
|
|
|
|
<warning>
|
|
|
|
<title>Win32: Warn!</title>
|
|
|
|
<para>Using Cygwin gcc to compile Wireshark is "EXPERT
|
|
|
|
ONLY" and therefore NOT recommended. If you really want to
|
2008-01-15 21:48:16 +00:00
|
|
|
try it anyway, see:
|
2007-09-10 17:10:42 +00:00
|
|
|
<ulink url="http://wiki.wireshark.org/Development/CygwinGCC" /> for
|
2007-01-21 04:48:49 +00:00
|
|
|
some details!</para>
|
|
|
|
</warning>
|
|
|
|
<para>The GCC C compiler is available for most of the
|
2008-01-15 21:48:16 +00:00
|
|
|
UNIX-like platforms and as the Devel/gcc package from the
|
2007-01-21 04:48:49 +00:00
|
|
|
<link linkend="ChToolsCygwin">Cygwin setup</link>.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>If GCC isn't already installed or available
|
2008-01-15 21:48:16 +00:00
|
|
|
as a package for your platform, you can get it at:
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://gcc.gnu.org/" />.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>After correct installation, typing at the
|
|
|
|
bash command line prompt:</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>
|
|
|
|
<prompt>$</prompt>
|
|
|
|
<userinput>gcc --version</userinput>
|
|
|
|
</para>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>should result in something like:
|
2007-01-21 04:48:49 +00:00
|
|
|
<programlisting>
|
2009-12-20 14:49:49 +00:00
|
|
|
<![CDATA[gcc (GCC) 3.4.4 (cygwin special) (gdc 0.12, using dmd 0.125)
|
2006-11-03 22:39:28 +00:00
|
|
|
Copyright (C) 2004 Free Software Foundation, Inc.
|
2004-08-21 20:34:22 +00:00
|
|
|
This is free software; see the source for copying conditions. There is NO
|
|
|
|
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.]]>
|
2009-12-20 14:49:49 +00:00
|
|
|
</programlisting>However, the version string may vary.</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</section>
|
|
|
|
<section id="ChToolsGDB">
|
|
|
|
<title>gdb (GNU project debugger)</title>
|
|
|
|
<para>GDB is the debugger for the GCC compiler. It is
|
|
|
|
available for many (if not all) UNIX-like platforms and as
|
2008-01-15 21:48:16 +00:00
|
|
|
the Devel/gdb package from the
|
2007-01-21 04:48:49 +00:00
|
|
|
<link linkend="ChToolsCygwin">Cygwin setup</link></para>
|
|
|
|
<para>If you don't like debugging using the command line,
|
|
|
|
there are some GUI frontends for it available, most notably
|
|
|
|
GNU DDD.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>If gdb isn't already installed or available
|
2008-01-15 21:48:16 +00:00
|
|
|
as a package for your platform, you can get it at:
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://www.gnu.org/software/gdb/gdb.html" />.</para>
|
|
|
|
<para>After correct installation:</para>
|
|
|
|
<para>
|
|
|
|
<prompt>$</prompt>
|
|
|
|
<userinput>gdb --version</userinput>
|
|
|
|
</para>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>should result in something like:
|
2007-01-21 04:48:49 +00:00
|
|
|
<programlisting>
|
2009-12-20 14:49:49 +00:00
|
|
|
<![CDATA[GNU gdb 6.5.50.20060706-cvs (cygwin-special)
|
2004-09-11 09:20:31 +00:00
|
|
|
Copyright 2003 Free Software Foundation, Inc.
|
|
|
|
GDB is free software, covered by the GNU General Public License, and you are
|
|
|
|
welcome to change it and/or distribute copies of it under certain conditions.
|
|
|
|
Type "show copying" to see the conditions.
|
|
|
|
There is absolutely no warranty for GDB. Type "show warranty" for details.
|
|
|
|
This GDB was configured as "i686-pc-cygwin".]]>
|
2009-12-20 14:49:49 +00:00
|
|
|
</programlisting>However, the version string may vary.</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</section>
|
|
|
|
<section id="ChToolsDDD">
|
|
|
|
<title>ddd (GNU Data Display Debugger)</title>
|
|
|
|
<para>The GNU Data Display Debugger is a good GUI frontend
|
|
|
|
for GDB (and a lot of other command line debuggers), so you
|
|
|
|
have to install GDB first. It is available for many UNIX-like
|
2008-01-15 21:48:16 +00:00
|
|
|
platforms and as the ddd package from the
|
2007-01-21 04:48:49 +00:00
|
|
|
<link linkend="ChToolsCygwin">Cygwin setup</link>.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>If GNU DDD isn't already installed or
|
2008-01-15 21:48:16 +00:00
|
|
|
available as a package for your platform, you can get it at:
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://www.gnu.org/software/ddd/" />.</para>
|
|
|
|
</section>
|
|
|
|
<section id="ChToolsGNUmake">
|
|
|
|
<title>make (GNU Make)</title>
|
|
|
|
<note>
|
|
|
|
<title>Win32 Note!</title>
|
|
|
|
<para>Although some effort is made to use make from the
|
|
|
|
Cygwin environment, the mainline is still using Microsoft
|
|
|
|
Visual Studio's nmake.</para>
|
|
|
|
</note>
|
|
|
|
<para>GNU Make is available for most of the UNIX-like
|
2008-01-15 21:48:16 +00:00
|
|
|
platforms and also as the Devel/make package from the
|
2007-01-21 04:48:49 +00:00
|
|
|
<link linkend="ChToolsCygwin">Cygwin setup</link>.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>If GNU Make isn't already installed or
|
2008-01-15 21:48:16 +00:00
|
|
|
available as a package for your platform, you can get it at:
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://www.gnu.org/software/make/" />.</para>
|
|
|
|
<para>After correct installation:</para>
|
|
|
|
<para>
|
|
|
|
<prompt>$</prompt>
|
|
|
|
<userinput>make --version</userinput>
|
|
|
|
</para>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>should result in something like:
|
2007-01-21 04:48:49 +00:00
|
|
|
<programlisting>
|
2009-12-20 14:49:49 +00:00
|
|
|
<![CDATA[GNU Make 3.81
|
2006-11-03 22:39:28 +00:00
|
|
|
Copyright (C) 2006 Free Software Foundation, Inc.
|
2004-08-21 20:34:22 +00:00
|
|
|
This is free software; see the source for copying conditions.
|
|
|
|
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
|
|
|
PARTICULAR PURPOSE.]]>
|
2009-12-20 14:49:49 +00:00
|
|
|
</programlisting>However, the version string may vary.</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<section id="ChToolsMSChain">
|
|
|
|
<title>Microsoft compiler toolchain (Win32 native)</title>
|
|
|
|
<para>To compile Wireshark on Windows using the Microsoft C/C++
|
|
|
|
compiler, you'll need:</para>
|
|
|
|
<orderedlist>
|
|
|
|
<listitem>
|
2009-12-20 14:49:49 +00:00
|
|
|
<para>C compiler (<filename>cl.exe</filename>)</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</listitem>
|
2012-09-23 20:49:18 +00:00
|
|
|
<listitem>
|
|
|
|
<para>Assembler (<filename>ml.exe</filename> for 32-bit targets
|
|
|
|
and <filename>ml64.exe</filename> for 64-bit targets)</para>
|
|
|
|
</listitem>
|
2007-01-21 04:48:49 +00:00
|
|
|
<listitem>
|
2009-12-20 14:49:49 +00:00
|
|
|
<para>Linker (<filename>link.exe</filename>)</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2009-12-20 14:49:49 +00:00
|
|
|
<para>Make (<filename>nmake.exe</filename>)</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2009-12-20 14:49:49 +00:00
|
|
|
<para>C runtime headers and libraries (e.g. <filename>stdio.h,
|
|
|
|
msvcrt.lib</filename>)</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Windows platform headers and libraries (e.g.
|
2009-12-20 14:49:49 +00:00
|
|
|
<filename>windows.h, WSock32.lib</filename>)</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2009-12-20 14:49:49 +00:00
|
|
|
<para>HTML help headers and libraries (<filename>htmlhelp.h,
|
|
|
|
htmlhelp.lib</filename>)</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</listitem>
|
|
|
|
</orderedlist>
|
|
|
|
<section>
|
|
|
|
<title>Toolchain Package Alternatives</title>
|
2010-10-29 22:31:45 +00:00
|
|
|
<para>
|
2012-08-23 03:18:48 +00:00
|
|
|
The official Wireshark 1.8.x releases are compiled using
|
|
|
|
Microsoft Visual C++ 2010 SP1.
|
|
|
|
The official 1.2, 1.4, and 1.6 releases are and were compiled using
|
|
|
|
Microsoft Visual C++ 2008 SP1.
|
|
|
|
Other past releases, including the 1.0 branch,
|
2010-10-29 22:31:45 +00:00
|
|
|
were compiled using Microsoft Visual C++ 6.0. Using the release
|
|
|
|
compilers is recommended for Wireshark development work. "Express
|
2012-08-23 03:18:48 +00:00
|
|
|
Edition" compilers such as Visual C++ 2010 Express Edition SP1 can be
|
2012-10-04 18:31:18 +00:00
|
|
|
used but any PortableApps or U3 packages you create with them
|
|
|
|
will require the installation of a separate Visual C++
|
|
|
|
Redistributable package on any machine on which the PortableApps
|
|
|
|
or U3 package is to be used. See
|
2010-10-29 22:31:45 +00:00
|
|
|
<quote><link linkend='msvc-runtime-redistributable' endterm='msvc-runtime-redistributable.title'/></quote>
|
|
|
|
below for more details.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
However, you might already have a different Microsoft C++ compiler
|
2012-01-06 15:45:46 +00:00
|
|
|
installed. It should be possible to use any of the following with the considerations listed:
|
2010-10-29 22:31:45 +00:00
|
|
|
</para>
|
2008-10-23 00:38:34 +00:00
|
|
|
|
2007-01-21 04:48:49 +00:00
|
|
|
<informaltable frame="all">
|
2012-10-03 00:28:19 +00:00
|
|
|
<tgroup cols="8">
|
2012-10-03 00:23:16 +00:00
|
|
|
<colspec colname="compiler_package" colwidth="12*" />
|
|
|
|
<colspec colname="ide_debugger" colwidth="12*" />
|
|
|
|
<colspec colname="publicly_available" colwidth="12*" />
|
|
|
|
<colspec colname="sdk_required" colwidth="12*" />
|
|
|
|
<colspec colname="msvc_variant" colwidth="12*" />
|
|
|
|
<colspec colname="bitwidth" colwidth="12*" />
|
|
|
|
<colspec colname="vcvars_bat" colwidth="12*" />
|
|
|
|
<colspec colname="remarks" colwidth="12*" />
|
2007-01-21 04:48:49 +00:00
|
|
|
<tbody>
|
|
|
|
<row>
|
|
|
|
<entry>
|
|
|
|
<para>Compiler Package</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
2010-03-26 18:04:09 +00:00
|
|
|
<para>IDE / Debugger?</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</entry>
|
|
|
|
<entry>
|
2010-03-26 18:04:09 +00:00
|
|
|
<para>Publicly available?</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</entry>
|
|
|
|
<entry>
|
2012-09-23 20:35:09 +00:00
|
|
|
<para>SDK required?</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>config.nmake:</para>
|
|
|
|
<para>MSVC_VARIANT</para>
|
|
|
|
</entry>
|
2012-10-04 18:33:09 +00:00
|
|
|
<entry>
|
|
|
|
<para>32-bit/64-bit</para>
|
|
|
|
</entry>
|
2007-01-21 04:48:49 +00:00
|
|
|
<entry>
|
|
|
|
<para>set compiler PATH and alike settings
|
|
|
|
with:</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>Remarks</para>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<entry>
|
2012-01-06 15:45:46 +00:00
|
|
|
<para>Visual Studio 2005</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>Yes</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>Commercial
|
2007-01-21 04:48:49 +00:00
|
|
|
<superscript>1</superscript></para>
|
|
|
|
</entry>
|
2010-03-26 18:04:09 +00:00
|
|
|
<entry>
|
|
|
|
<para>No
|
|
|
|
<superscript>2</superscript></para>
|
|
|
|
</entry>
|
2007-01-21 04:48:49 +00:00
|
|
|
<entry>
|
|
|
|
<para>MSVC2005</para>
|
|
|
|
</entry>
|
2012-10-02 22:31:27 +00:00
|
|
|
<entry>
|
|
|
|
<para>32-bit only</para>
|
|
|
|
</entry>
|
2007-01-21 04:48:49 +00:00
|
|
|
<entry>
|
|
|
|
<para>Microsoft Visual Studio
|
|
|
|
8\VC\bin\vcvars32.bat</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>-</para>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<entry>
|
|
|
|
<para>Visual C++ 2005 Express Edition</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>Yes</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>
|
2012-06-01 23:35:32 +00:00
|
|
|
Free Download (link disappeared)
|
2012-10-04 05:10:11 +00:00
|
|
|
</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>
|
2012-06-01 23:35:32 +00:00
|
|
|
Free Download (link disappeared)
|
2012-10-04 05:10:11 +00:00
|
|
|
</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>MSVC2005EE</para>
|
|
|
|
</entry>
|
2012-10-02 22:31:27 +00:00
|
|
|
<entry>
|
|
|
|
<para>32-bit only</para>
|
|
|
|
</entry>
|
2007-01-21 04:48:49 +00:00
|
|
|
<entry>
|
|
|
|
<para>Microsoft Visual Studio
|
|
|
|
8\VC\bin\vcvars32.bat</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
2012-06-03 03:49:05 +00:00
|
|
|
<para>
|
|
|
|
<filename>vcredist_x86.exe</filename>
|
2012-10-04 18:46:39 +00:00
|
|
|
<superscript>4</superscript>
|
2012-06-03 03:49:05 +00:00
|
|
|
</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<entry>
|
2007-08-29 00:15:15 +00:00
|
|
|
<para>Visual Studio 2008</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>Yes</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
2008-08-05 23:08:16 +00:00
|
|
|
<para>Commercial</para>
|
2007-08-29 00:15:15 +00:00
|
|
|
</entry>
|
|
|
|
<entry>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>No
|
2007-08-29 00:15:15 +00:00
|
|
|
<superscript>2</superscript></para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
2008-08-04 23:05:32 +00:00
|
|
|
<para>MSVC2008</para>
|
2007-08-29 00:15:15 +00:00
|
|
|
</entry>
|
2012-10-02 22:31:27 +00:00
|
|
|
<entry>
|
|
|
|
<para>32-bit only?</para>
|
|
|
|
</entry>
|
2007-08-29 00:15:15 +00:00
|
|
|
<entry>
|
|
|
|
<para>Microsoft Visual Studio
|
|
|
|
9.0\VC\bin\vcvars32.bat</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
2008-08-04 23:05:32 +00:00
|
|
|
<para>-</para>
|
2007-08-29 00:15:15 +00:00
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<entry>
|
2010-02-05 03:37:46 +00:00
|
|
|
<para>Visual C++ 2008 Express Edition SP1</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>Yes</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
2008-08-04 23:05:32 +00:00
|
|
|
<para>
|
2012-06-03 17:08:38 +00:00
|
|
|
<ulink url="http://www.microsoft.com/download/details.aspx?id=14597">
|
2008-08-04 23:05:32 +00:00
|
|
|
Free Download</ulink></para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</entry>
|
|
|
|
<entry>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>No
|
2007-01-21 04:48:49 +00:00
|
|
|
<superscript>2</superscript></para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
2008-08-04 23:05:32 +00:00
|
|
|
<para>MSVC2008EE</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</entry>
|
2012-10-02 22:31:27 +00:00
|
|
|
<entry>
|
|
|
|
<para>32-bit only?</para>
|
|
|
|
</entry>
|
2007-01-21 04:48:49 +00:00
|
|
|
<entry>
|
|
|
|
<para>Microsoft Visual Studio
|
|
|
|
9.0\VC\bin\vcvars32.bat</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
2012-06-03 03:49:05 +00:00
|
|
|
<para>
|
|
|
|
<filename>vcredist_x86.exe</filename>
|
2012-10-04 18:46:39 +00:00
|
|
|
<superscript>4</superscript>
|
2012-06-03 03:49:05 +00:00
|
|
|
</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</entry>
|
|
|
|
</row>
|
2010-12-01 21:42:19 +00:00
|
|
|
<row>
|
2012-10-02 23:00:17 +00:00
|
|
|
<entry morerows="1" valign="middle">
|
2010-12-01 21:42:19 +00:00
|
|
|
<para>Visual Studio 2010</para>
|
|
|
|
</entry>
|
2012-10-02 23:00:17 +00:00
|
|
|
<entry morerows="1" valign="middle">
|
2010-12-01 21:42:19 +00:00
|
|
|
<para>Yes</para>
|
|
|
|
</entry>
|
2012-10-02 23:00:17 +00:00
|
|
|
<entry morerows="1" valign="middle">
|
2010-12-01 21:42:19 +00:00
|
|
|
<para>Commercial</para>
|
|
|
|
</entry>
|
2012-10-02 23:00:17 +00:00
|
|
|
<entry morerows="1" valign="middle">
|
2010-12-01 21:42:19 +00:00
|
|
|
<para>No
|
|
|
|
<superscript>2</superscript></para>
|
|
|
|
</entry>
|
2012-10-02 23:00:17 +00:00
|
|
|
<entry morerows="1" valign="middle">
|
2010-12-01 21:42:19 +00:00
|
|
|
<para>MSVC2010</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
2012-10-02 22:31:27 +00:00
|
|
|
<para>32-bit</para>
|
2010-12-01 21:42:19 +00:00
|
|
|
</entry>
|
|
|
|
<entry>
|
2012-10-02 22:31:27 +00:00
|
|
|
<para>Microsoft Visual Studio
|
|
|
|
10.0\VC\vcvarsall.bat x86</para>
|
|
|
|
</entry>
|
2012-10-02 23:00:17 +00:00
|
|
|
<entry morerows="1" valign="middle">
|
2010-12-01 21:42:19 +00:00
|
|
|
<para>-</para>
|
|
|
|
</entry>
|
|
|
|
</row>
|
2012-10-02 22:31:27 +00:00
|
|
|
<row>
|
|
|
|
<entry>
|
|
|
|
<para>64-bit</para>
|
|
|
|
</entry>
|
2010-12-01 21:42:19 +00:00
|
|
|
<entry>
|
2012-10-02 22:31:27 +00:00
|
|
|
<para>Microsoft Visual Studio
|
|
|
|
10.0\VC\vcvarsall.bat x64</para>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
2012-10-02 23:00:17 +00:00
|
|
|
<entry morerows="1" valign="middle">
|
2010-12-01 21:42:19 +00:00
|
|
|
<para>Visual C++ 2010 Express Edition</para>
|
2012-06-01 23:35:32 +00:00
|
|
|
<para>(recommended)</para>
|
2010-12-01 21:42:19 +00:00
|
|
|
</entry>
|
2012-10-02 23:00:17 +00:00
|
|
|
<entry morerows="1" valign="middle">
|
2010-12-01 21:42:19 +00:00
|
|
|
<para>Yes</para>
|
|
|
|
</entry>
|
2012-10-02 23:00:17 +00:00
|
|
|
<entry morerows="1" valign="middle">
|
2010-12-01 21:42:19 +00:00
|
|
|
<para>
|
|
|
|
<ulink url="http://www.microsoft.com/express/Downloads/#Visual_Studio_2010_Express_Downloads">
|
|
|
|
Free Download</ulink></para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>No
|
|
|
|
<superscript>2</superscript></para>
|
|
|
|
</entry>
|
2012-10-02 23:00:17 +00:00
|
|
|
<entry morerows="1" valign="middle">
|
2010-12-01 21:42:19 +00:00
|
|
|
<para>MSVC2010EE</para>
|
|
|
|
</entry>
|
2012-10-02 22:31:27 +00:00
|
|
|
<entry>
|
|
|
|
<para>32-bit</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>Microsoft Visual Studio
|
|
|
|
10.0\VC\vcvarsall.bat x86</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>
|
|
|
|
<filename>vcredist_x86.exe</filename>
|
2012-10-04 18:46:39 +00:00
|
|
|
<superscript>4</superscript>
|
2012-10-02 22:31:27 +00:00
|
|
|
</para>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<entry>
|
|
|
|
<para>Yes
|
2012-10-04 18:46:39 +00:00
|
|
|
<superscript>3</superscript></para>
|
2012-10-02 22:31:27 +00:00
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>64-bit</para>
|
|
|
|
</entry>
|
2010-12-01 21:42:19 +00:00
|
|
|
<entry>
|
|
|
|
<para>Microsoft Visual Studio
|
2012-10-02 22:31:27 +00:00
|
|
|
10.0\VC\vcvarsall.bat x64</para>
|
2010-12-01 21:42:19 +00:00
|
|
|
</entry>
|
|
|
|
<entry>
|
2012-06-03 03:49:05 +00:00
|
|
|
<para>
|
|
|
|
<filename>vcredist_x64.exe</filename>
|
2012-10-04 18:46:39 +00:00
|
|
|
<superscript>4</superscript>
|
2012-06-03 03:49:05 +00:00
|
|
|
</para>
|
2010-12-01 21:42:19 +00:00
|
|
|
</entry>
|
|
|
|
</row>
|
2007-01-21 04:48:49 +00:00
|
|
|
<row>
|
|
|
|
<entry>
|
2012-01-06 15:45:46 +00:00
|
|
|
<para>.NET Framework 2.0 SDK
|
2012-10-04 18:46:39 +00:00
|
|
|
<superscript>5</superscript></para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>No</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>
|
2012-06-01 23:35:32 +00:00
|
|
|
Free Download (link disappeared)
|
2012-10-04 05:10:11 +00:00
|
|
|
</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>
|
2012-06-01 23:35:32 +00:00
|
|
|
Free Download (link disappeared)
|
2012-10-04 05:10:11 +00:00
|
|
|
</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>DOTNET20</para>
|
|
|
|
</entry>
|
2012-10-02 22:31:27 +00:00
|
|
|
<entry>
|
|
|
|
<para>32-bit only?</para>
|
|
|
|
</entry>
|
2007-01-21 04:48:49 +00:00
|
|
|
<entry>
|
|
|
|
<para>Microsoft.NET\SDK\v2.0\Bin\sdkvars.bat</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
2012-06-03 03:49:05 +00:00
|
|
|
<para>
|
|
|
|
<filename>vcredist_x86.exe</filename>
|
2012-10-04 18:46:39 +00:00
|
|
|
<superscript>4</superscript>
|
2012-06-03 03:49:05 +00:00
|
|
|
</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
</tbody>
|
|
|
|
</tgroup>
|
|
|
|
</informaltable>
|
|
|
|
<para>
|
|
|
|
<superscript>1</superscript>no longer officially available,
|
|
|
|
might still be available through the MSDN
|
2012-06-03 03:24:22 +00:00
|
|
|
subscriptions
|
|
|
|
</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>
|
2012-09-23 20:35:09 +00:00
|
|
|
<superscript>2</superscript>as the SDK is already
|
2007-01-21 04:48:49 +00:00
|
|
|
integrated in the package, you obviously don't need to
|
2007-09-10 17:10:42 +00:00
|
|
|
install it and don't even need to call a separate environment
|
2012-09-23 20:35:09 +00:00
|
|
|
setting batch file for the SDK!
|
2012-06-03 03:24:22 +00:00
|
|
|
</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>
|
2012-10-04 18:46:39 +00:00
|
|
|
<superscript>3</superscript>the Express Edition does not include
|
|
|
|
compilers or assemblers that can generate 64-bit code; those are
|
|
|
|
only included in the SDK
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<superscript>4</superscript><filename>vcredist_x86.exe</filename>
|
2009-12-20 14:49:49 +00:00
|
|
|
(3MB free download) is required to build
|
2012-06-03 03:24:22 +00:00
|
|
|
<filename>Wireshark-win32-&WiresharkCurrentVersion;.x.exe</filename>,
|
|
|
|
and <filename>vcredist_x64.exe</filename> is required to build
|
|
|
|
<filename>Wireshark-win64-&WiresharkCurrentVersion;.x.exe</filename>,
|
|
|
|
The version of <filename>vcredist_x86.exe</filename> or
|
2012-06-03 07:04:13 +00:00
|
|
|
<filename>vcredist_x64.exe</filename> <emphasis>must</emphasis>
|
2012-06-03 03:24:22 +00:00
|
|
|
match the version for your compiler, including any service packs
|
|
|
|
installed for the compiler.
|
|
|
|
</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>
|
2012-10-04 18:46:39 +00:00
|
|
|
<superscript>5</superscript>MSDN remarks that the
|
2007-01-21 04:48:49 +00:00
|
|
|
corresponding .NET runtime is required. It's currently
|
|
|
|
unclear if the runtime needs to be installed for the C
|
|
|
|
compiler to work - or is this only needed to compile / run
|
2012-06-03 03:24:22 +00:00
|
|
|
.NET programs?!?
|
|
|
|
</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</section>
|
|
|
|
<section>
|
|
|
|
<title>Legal issues with MSVC > V6?</title>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>Please note: The following is not legal advice - ask
|
2007-01-21 04:48:49 +00:00
|
|
|
your preferred lawyer instead! It's the authors view, but
|
|
|
|
this view might be wrong!</para>
|
2009-12-20 14:49:49 +00:00
|
|
|
<para>The myriad of
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://anonsvn.wireshark.org/wireshark-win32-libs/tags/">
|
2007-09-10 17:10:42 +00:00
|
|
|
Win32 support lib</ulink> port projects all seem to believe
|
2007-01-21 04:48:49 +00:00
|
|
|
there are legal issues involved in using newer versions of
|
|
|
|
Visual Studio. This FUD essentially stems from two
|
|
|
|
misconceptions:</para>
|
|
|
|
<para>
|
|
|
|
<orderedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>Unfortunately, it is believed by many that the
|
|
|
|
Microsoft Visual Studio 2003 EULA explicitly forbids
|
|
|
|
linking with GPL'ed programs. This belief is probably due
|
2009-12-20 14:49:49 +00:00
|
|
|
to an improper interpretation of the
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://msdn.microsoft.com/visualc/vctoolkit2003/eula.aspx">
|
|
|
|
Visual Studio 2003 Toolkit EULA</ulink>, which places
|
|
|
|
redistribution restrictions only on SOURCE CODE SAMPLES
|
|
|
|
which accompany the toolkit.</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Other maintainers believe that the GPL itself
|
|
|
|
forbids using Visual Studio 2003, since one of the
|
|
|
|
required support libraries (MSVCR71.DLL) does not ship
|
|
|
|
with the Windows operating system. This is also a
|
2009-12-20 14:49:49 +00:00
|
|
|
wrongful interpretation, and the
|
2009-10-20 18:17:32 +00:00
|
|
|
<ulink url="http://www.gnu.org/licenses/gpl-faq.html#WindowsRuntimeAndGPL">
|
2007-09-10 17:10:42 +00:00
|
|
|
GPL FAQ</ulink> explicitly addresses this issue.</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</listitem>
|
|
|
|
</orderedlist>Similar applies to Visual Studio 2005 and
|
|
|
|
alike.</para>
|
|
|
|
<para>So in effect it should be perfectly legal to compile
|
|
|
|
Wireshark and distribute / run it if it was compiled with any
|
|
|
|
MSVC version > V6!</para>
|
|
|
|
</section>
|
|
|
|
<section>
|
|
|
|
<title>cl.exe (C Compiler)</title>
|
|
|
|
<para>The following table gives an overview of the possible
|
|
|
|
Microsoft toolchain variants and their specific C compiler
|
|
|
|
versions "ordered by release date":</para>
|
|
|
|
<informaltable frame="all">
|
|
|
|
<tgroup cols="4">
|
2009-11-06 23:57:01 +00:00
|
|
|
<colspec colname="c1" colwidth="55*" />
|
|
|
|
<colspec colname="c2" colwidth="10*" />
|
|
|
|
<colspec colname="c3" colwidth="15*" />
|
|
|
|
<colspec colname="c4" colwidth="20*" />
|
2007-01-21 04:48:49 +00:00
|
|
|
<tbody>
|
|
|
|
<row>
|
|
|
|
<entry>
|
|
|
|
<para>Compiler Package</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<para>cl.exe</para>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
2009-11-06 23:57:01 +00:00
|
|
|
<para>_MSC_VER</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</entry>
|
|
|
|
<entry>
|
2009-11-06 23:57:01 +00:00
|
|
|
<para>CRT DLL</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<entry>
|
|
|
|
<para>Visual Studio 2005</para>
|
|
|
|
</entry>
|
|
|
|
<entry align="center" morerows="3" valign="middle">
|
|
|
|
<para>8.0</para>
|
|
|
|
</entry>
|
|
|
|
<entry align="center" morerows="3" valign="middle">
|
|
|
|
<para>1400</para>
|
|
|
|
</entry>
|
|
|
|
<entry align="center" morerows="3" valign="middle">
|
|
|
|
<para>msvcr80.dll</para>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<entry>
|
|
|
|
<para>Visual C++ 2005 Express Edition</para>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<entry>
|
|
|
|
<para>.NET Framework 2.0 SDK</para>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<entry>
|
2009-11-06 23:57:01 +00:00
|
|
|
<para>Windows SDK for Windows Vista and
|
|
|
|
.NET Framework 3.0 Runtime Components</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<entry>
|
2007-08-29 00:15:15 +00:00
|
|
|
<para>Visual Studio 2008</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</entry>
|
2009-11-06 23:57:01 +00:00
|
|
|
<entry align="center" morerows="1" valign="middle">
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>9.0</para>
|
|
|
|
</entry>
|
2009-11-06 23:57:01 +00:00
|
|
|
<entry align="center" morerows="1" valign="middle">
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>1500</para>
|
|
|
|
</entry>
|
2009-11-06 23:57:01 +00:00
|
|
|
<entry align="center" morerows="1" valign="middle">
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>msvcr90.dll</para>
|
|
|
|
</entry>
|
|
|
|
</row>
|
2007-08-29 00:15:15 +00:00
|
|
|
<row>
|
|
|
|
<entry>
|
|
|
|
<para>Visual Studio 2008 Express Edition</para>
|
|
|
|
</entry>
|
|
|
|
</row>
|
2011-10-24 23:18:34 +00:00
|
|
|
<row>
|
|
|
|
<entry>
|
|
|
|
<para>Visual Studio 2010</para>
|
|
|
|
</entry>
|
|
|
|
<entry align="center" morerows="1" valign="middle">
|
|
|
|
<para>10.0</para>
|
|
|
|
</entry>
|
|
|
|
<entry align="center" morerows="1" valign="middle">
|
|
|
|
<para>1600</para>
|
|
|
|
</entry>
|
|
|
|
<entry align="center" morerows="1" valign="middle">
|
|
|
|
<para>msvcr100.dll</para>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<entry>
|
|
|
|
<para>Visual Studio 2010 Express Edition</para>
|
|
|
|
</entry>
|
|
|
|
</row>
|
2007-01-21 04:48:49 +00:00
|
|
|
</tbody>
|
|
|
|
</tgroup>
|
|
|
|
</informaltable>
|
|
|
|
<para>After correct installation of the toolchain, typing
|
2007-09-10 17:10:42 +00:00
|
|
|
at the command line prompt (cmd.exe):</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>
|
|
|
|
<prompt>></prompt>
|
|
|
|
<userinput>cl</userinput>
|
|
|
|
</para>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>should result in something like:
|
2007-01-21 04:48:49 +00:00
|
|
|
<programlisting>
|
2011-10-24 23:18:34 +00:00
|
|
|
<![CDATA[Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86
|
|
|
|
Copyright (C) Microsoft Corp. All rights reserved.
|
2004-08-21 19:02:14 +00:00
|
|
|
|
2007-01-21 04:48:49 +00:00
|
|
|
usage: cl [ option... ] filename... [ /link linkoption... ]]>
|
2009-12-20 14:49:49 +00:00
|
|
|
</programlisting>However, the version string may vary.</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</section>
|
|
|
|
<section id="ChToolsNMake">
|
|
|
|
<title>nmake.exe (Make)</title>
|
|
|
|
<para>nmake is part of the toolchain packages described
|
|
|
|
above.</para>
|
2007-08-29 00:15:15 +00:00
|
|
|
<para>Instead of using the workspace (.dsw) and projects
|
2007-01-21 04:48:49 +00:00
|
|
|
(.dsp) files, the traditional nmake makefiles are used. This
|
|
|
|
has one main reason: it makes it much easier to maintain
|
2007-09-10 17:10:42 +00:00
|
|
|
changes simultaneously with the GCC toolchain makefile.am files
|
2007-01-21 04:48:49 +00:00
|
|
|
as both file formats are similar. However, as no Visual
|
|
|
|
Studio workspace/project files are available, this makes it
|
|
|
|
hard to use the Visual Studio IDE e.g. for using the
|
|
|
|
integrated debugging feature.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>After correct installation, typing at the command
|
|
|
|
line prompt (cmd.exe):</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>
|
|
|
|
<prompt>></prompt>
|
|
|
|
<userinput>nmake</userinput>
|
|
|
|
</para>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>should result in something like:
|
2007-01-21 04:48:49 +00:00
|
|
|
<programlisting>
|
2009-12-20 14:49:49 +00:00
|
|
|
<![CDATA[Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
|
2005-08-30 19:35:20 +00:00
|
|
|
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
|
2004-08-21 20:34:22 +00:00
|
|
|
|
2005-08-30 19:35:20 +00:00
|
|
|
NMAKE : fatal error U1064: MAKEFILE not found and no target specified
|
|
|
|
Stop.]]>
|
2009-12-20 14:49:49 +00:00
|
|
|
</programlisting>However, the version string may vary.</para>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>Documentation on nmake can be found at
|
2012-06-03 17:08:38 +00:00
|
|
|
<ulink url="http://msdn2.microsoft.com/library/dd9y37ha(VS.71).aspx">
|
2007-08-29 00:15:15 +00:00
|
|
|
Microsoft MSDN</ulink></para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</section>
|
|
|
|
<section>
|
|
|
|
<title>link.exe (Linker)</title>
|
|
|
|
<para>XXX - add info here</para>
|
|
|
|
</section>
|
2010-10-29 22:31:45 +00:00
|
|
|
<section id='msvc-runtime-redistributable'>
|
|
|
|
<title id='msvc-runtime-redistributable.title'>C-Runtime "Redistributable" Files</title>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>Please note: The following is not legal advice - ask
|
2007-01-21 04:48:49 +00:00
|
|
|
your preferred lawyer instead! It's the authors view, but
|
|
|
|
this view might be wrong!</para>
|
|
|
|
<para>Depending on the Microsoft compiler version you use,
|
|
|
|
some binary files coming from Microsoft might
|
2009-12-20 14:49:49 +00:00
|
|
|
be required to be installed on Windows machine to run
|
2007-01-21 04:48:49 +00:00
|
|
|
Wireshark. On a developer machine, the compiler setup
|
|
|
|
installs these files so they are available - but they might
|
|
|
|
not be available on a user machine!</para>
|
|
|
|
<para>This is especially true for the C runtime DLL
|
|
|
|
(msvcr*.dll), which contains the implementation of ANSI and
|
|
|
|
alike functions, e.g.: fopen(), malloc(). The DLL is named
|
|
|
|
like: msvcr<version>.dll, an abbreviation for
|
|
|
|
"MicroSoft Visual C Runtime". For Wireshark to work, this DLL
|
|
|
|
must be available on the users machine.</para>
|
2012-01-06 15:45:46 +00:00
|
|
|
<para>Starting with MSVC7, it is necessary to ship the C
|
2007-01-21 04:48:49 +00:00
|
|
|
runtime DLL (msvcr<version>.dll) together with the
|
|
|
|
application installer somehow, as that DLL is possibly not
|
|
|
|
available on the target system.</para>
|
|
|
|
<note>
|
|
|
|
<title>Note!</title>
|
|
|
|
<para>The files to redistribute must be mentioned in the
|
|
|
|
redist.txt file of the compiler package - otherwise it
|
|
|
|
can't be legally redistributed by third parties like
|
|
|
|
us!</para>
|
|
|
|
</note>
|
|
|
|
<para>The following MSDN links are recommended for the
|
|
|
|
interested reader:</para>
|
|
|
|
<para>
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>
|
2012-06-03 17:08:38 +00:00
|
|
|
<ulink url="http://msdn2.microsoft.com/library/ms235299(VS.80).aspx">
|
2007-09-10 17:10:42 +00:00
|
|
|
"Redistributing Visual C++ Files"</ulink>
|
|
|
|
</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>
|
2012-06-03 17:08:38 +00:00
|
|
|
<ulink url="http://msdn2.microsoft.com/library/ms235291(VS.80).aspx">
|
2007-09-10 17:10:42 +00:00
|
|
|
"How to: Deploy using XCopy"</ulink>
|
|
|
|
</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>
|
|
|
|
<ulink url="http://support.microsoft.com/?scid=kb%3Ben-us%3B326922&x=10&y=13">
|
|
|
|
"Redistribution of the shared C runtime component
|
|
|
|
in Visual C++ 2005 and in Visual C++ .NET"</ulink>
|
|
|
|
</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
</para>
|
2012-06-03 02:53:36 +00:00
|
|
|
<para>
|
2012-06-03 03:24:22 +00:00
|
|
|
In all cases where <filename>vcredist_x86.exe</filename> or
|
|
|
|
<filename>vcredist_x64.exe</filename> is downloaded, it should
|
|
|
|
be downloaded to the directory into which the support libraries
|
|
|
|
for Wireshark have been downloaded and installed. This directory
|
|
|
|
is specified by the WIRESHARK_LIB_DIR setting in the
|
2012-06-03 02:53:36 +00:00
|
|
|
<filename>config.nmake</filename> file; by default it is
|
2012-10-04 05:10:11 +00:00
|
|
|
<filename>C:\wireshark-win32-libs</filename>. It need not, and
|
2012-06-03 02:53:36 +00:00
|
|
|
should not, be run after being downloaded.
|
|
|
|
</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
<section>
|
|
|
|
<title>msvcr80.dll / vcredist_x86.exe - Version 8.0
|
|
|
|
(2005)</title>
|
|
|
|
<para>There are three redistribution methods that MSDN
|
2012-06-03 16:39:27 +00:00
|
|
|
mentions for MSVC 8 (see:
|
2012-10-04 04:02:57 +00:00
|
|
|
"<ulink url="http://msdn.microsoft.com/library/ms235316(VS.80).aspx">Choosing a Deployment Method</ulink>"):
|
For VS 2005, also mention the IA-64 vcredist the first time we mention
the versions of vcredist, just in case anybody is building for Itanium.
The second time we mention them, mention all three, not just the 32-bit
x86 version. Rewrite the sentence for that a bit - it's not as if MSVC
uses particular deployment methods, those were chosen by the Wireshark
development team.
For VS 2008, note that Microsoft mentions all three redistribution
mechanisms, and link to the "Choosing a Deployment Method" page for VS
2008 (which looks as if Microsoft didn't do a good job of editing it
after copying-and-pasting the 2005 version, or didn't set up ASP or
whatever it is that supplies VS-specific versions of the pages
correctly).
For VS 2010, note that Microsoft mentions all three redistribution
mechanisms, link to the "Choosing a Deployment Method" page for VS 2010,
and note that it recommends the method we chose and gives it as as the
first method.
svn path=/trunk/; revision=45302
2012-10-04 02:53:15 +00:00
|
|
|
</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>
|
2012-06-03 03:49:05 +00:00
|
|
|
<orderedlist>
|
|
|
|
<listitem>
|
2012-10-04 01:44:17 +00:00
|
|
|
<para>"Using Visual C++ Redistributable Merge Modules"
|
|
|
|
(kind of loadable modules for building msi installers -
|
|
|
|
not suitable for Wireshark's NSIS based installer)</para>
|
2012-06-03 03:49:05 +00:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-10-04 01:44:17 +00:00
|
|
|
<para>"Using Visual C++ Redistributable Package", wherein
|
|
|
|
the Microsoft libraries are installed by copying
|
For VS 2005, also mention the IA-64 vcredist the first time we mention
the versions of vcredist, just in case anybody is building for Itanium.
The second time we mention them, mention all three, not just the 32-bit
x86 version. Rewrite the sentence for that a bit - it's not as if MSVC
uses particular deployment methods, those were chosen by the Wireshark
development team.
For VS 2008, note that Microsoft mentions all three redistribution
mechanisms, and link to the "Choosing a Deployment Method" page for VS
2008 (which looks as if Microsoft didn't do a good job of editing it
after copying-and-pasting the 2005 version, or didn't set up ASP or
whatever it is that supplies VS-specific versions of the pages
correctly).
For VS 2010, note that Microsoft mentions all three redistribution
mechanisms, link to the "Choosing a Deployment Method" page for VS 2010,
and note that it recommends the method we chose and gives it as as the
first method.
svn path=/trunk/; revision=45302
2012-10-04 02:53:15 +00:00
|
|
|
<filename>vcredist_x86.exe</filename>,
|
|
|
|
<filename>vcredist_x64.exe</filename>, or
|
|
|
|
<filename>vcredist_ia64.exe</filename> to the target
|
2012-10-04 01:44:17 +00:00
|
|
|
machine and executing it on that machine (MSDN recommends
|
|
|
|
this for applications built with Visual Studio 2005
|
|
|
|
Express Edition)
|
|
|
|
</para>
|
2012-06-03 03:49:05 +00:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-10-04 01:44:17 +00:00
|
|
|
<para>"Install a particular Visual C++ assembly as a
|
|
|
|
private assembly for the application", wherein the
|
|
|
|
Microsoft libraries are installed by copying the folder
|
|
|
|
content of <filename>Microsoft.VC80.CRT</filename> to
|
|
|
|
the target directory (e.g. <filename>C:\Program
|
|
|
|
Files\Wireshark</filename>)</para>
|
2012-06-03 03:49:05 +00:00
|
|
|
</listitem>
|
2012-10-04 17:01:38 +00:00
|
|
|
</orderedlist>
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
To save installer size, and to make a "portable"
|
2012-10-04 05:10:11 +00:00
|
|
|
version of Wireshark (which must be completely self-contained,
|
|
|
|
on a medium such as a flash drive, and not require that an
|
|
|
|
installer be run to install anything on the target machine)
|
2012-10-04 17:01:38 +00:00
|
|
|
possible, when building 32-bit Wireshark with MSVC2005, method
|
|
|
|
3 (copying the content of <filename>Microsoft.VC80.CRT</filename>)
|
|
|
|
is used (this produces the smallest package).
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
As MSVC2005EE and DOTNET20 don't provide the folder
|
|
|
|
<filename>Microsoft.VC80.CRT</filename>, when 32-bit Wireshark
|
For VS 2005, also mention the IA-64 vcredist the first time we mention
the versions of vcredist, just in case anybody is building for Itanium.
The second time we mention them, mention all three, not just the 32-bit
x86 version. Rewrite the sentence for that a bit - it's not as if MSVC
uses particular deployment methods, those were chosen by the Wireshark
development team.
For VS 2008, note that Microsoft mentions all three redistribution
mechanisms, and link to the "Choosing a Deployment Method" page for VS
2008 (which looks as if Microsoft didn't do a good job of editing it
after copying-and-pasting the 2005 version, or didn't set up ASP or
whatever it is that supplies VS-specific versions of the pages
correctly).
For VS 2010, note that Microsoft mentions all three redistribution
mechanisms, link to the "Choosing a Deployment Method" page for VS 2010,
and note that it recommends the method we chose and gives it as as the
first method.
svn path=/trunk/; revision=45302
2012-10-04 02:53:15 +00:00
|
|
|
is built with either of them method 2 is used.
|
2012-10-04 17:01:38 +00:00
|
|
|
You'll have to download the appropriate version of
|
|
|
|
<filename>vcredist_x86.exe</filename> from Microsoft for your
|
|
|
|
compiler version.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
A portable version of 64-bit Wireshark is not built, so method
|
|
|
|
3 is used for all 64-bit builds. You'll have to download the
|
|
|
|
appropriate version of <filename>vcredist_x64.exe</filename>
|
|
|
|
or <filename>vcredist_ia64.exe</filename> from Microsoft
|
|
|
|
for your target processor and compiler version.
|
2012-06-03 03:49:05 +00:00
|
|
|
</para>
|
2007-08-29 00:15:15 +00:00
|
|
|
<para>
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2012-10-04 07:19:13 +00:00
|
|
|
For 32-bit builds using Microsoft Visual C++ 2005
|
|
|
|
Express Edition without Service Pack 1, you need
|
2012-06-03 03:55:37 +00:00
|
|
|
<command>8.0.50608.0</command>,
|
2012-06-03 16:39:27 +00:00
|
|
|
from: "Microsoft Visual C++ 2005 Redistributable Package (x86)":
|
2012-06-03 17:08:38 +00:00
|
|
|
<ulink url="http://www.microsoft.com/download/details.aspx?id=3387" />.
|
2012-06-03 02:53:36 +00:00
|
|
|
</para>
|
2007-08-29 00:15:15 +00:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2012-06-03 16:39:27 +00:00
|
|
|
For 64-bit x86 (x64) builds using Microsoft Visual C++
|
2012-10-04 07:19:13 +00:00
|
|
|
2005, any edition, without Service Pack 1, you need
|
2012-06-03 16:39:27 +00:00
|
|
|
<command>{fill this in}</command>,
|
|
|
|
from: "Microsoft Visual C++ 2005 Redistributable Package (x64)":
|
2012-06-03 17:08:38 +00:00
|
|
|
<ulink url="http://www.microsoft.com/download/details.aspx?id=21254" />.
|
2012-06-03 16:39:27 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2012-10-04 07:19:13 +00:00
|
|
|
For IA-64 builds using Microsoft Visual C++ 2005, any
|
|
|
|
edition, without Service Pack 1, you need
|
2012-06-03 16:39:27 +00:00
|
|
|
<command>{fill this in}</command>,
|
|
|
|
from: "Microsoft Visual C++ 2005 Redistributable Package (IA64)":
|
2012-06-03 17:08:38 +00:00
|
|
|
<ulink url="http://www.microsoft.com/download/details.aspx?id=16326" />.
|
2012-06-03 16:39:27 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
For 32-bit builds using Microsoft Visual C++ 2005
|
|
|
|
Express Edition with Service Pack 1, you need
|
2012-06-03 02:53:36 +00:00
|
|
|
<command>8.0.50727.762</command>, from: "Microsoft
|
2012-06-03 16:39:27 +00:00
|
|
|
Visual C++ 2005 SP1 Redistributable Package (x86)":
|
2012-06-03 17:08:38 +00:00
|
|
|
<ulink url="http://www.microsoft.com/download/details.aspx?id=5638" />.
|
2012-06-03 16:39:27 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2012-10-04 07:19:13 +00:00
|
|
|
For 64-bit x86 builds using Microsoft Visual C++ 2005,
|
|
|
|
any edition, with Service Pack 1, you need
|
2012-06-03 16:39:27 +00:00
|
|
|
<command>{fill this in}</command>, from: "Microsoft
|
|
|
|
Visual C++ 2005 SP1 Redistributable Package (x64)":
|
2012-06-03 17:08:38 +00:00
|
|
|
<ulink url="http://www.microsoft.com/download/details.aspx?id=18471" />.
|
2012-06-03 02:53:36 +00:00
|
|
|
</para>
|
2007-08-29 00:15:15 +00:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
</para>
|
2012-06-03 02:53:36 +00:00
|
|
|
<para>
|
|
|
|
Please report to the developer mailing list, if you
|
|
|
|
find a different version number!
|
|
|
|
</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</section>
|
|
|
|
<section>
|
2012-06-03 08:15:43 +00:00
|
|
|
<title>msvcr90.dll / vcredist_x86.exe / vcredist_x64.exe - Version 9.0 (2008)</title>
|
2012-10-04 05:10:11 +00:00
|
|
|
<para>There are three redistribution methods that MSDN
|
|
|
|
mentions for MSVC 9 (see:
|
|
|
|
"<ulink url="http://msdn.microsoft.com/en-US/library/ms235316(v=vs.90).aspx">Choosing a Deployment Method</ulink>"):
|
|
|
|
</para>
|
For VS 2005, also mention the IA-64 vcredist the first time we mention
the versions of vcredist, just in case anybody is building for Itanium.
The second time we mention them, mention all three, not just the 32-bit
x86 version. Rewrite the sentence for that a bit - it's not as if MSVC
uses particular deployment methods, those were chosen by the Wireshark
development team.
For VS 2008, note that Microsoft mentions all three redistribution
mechanisms, and link to the "Choosing a Deployment Method" page for VS
2008 (which looks as if Microsoft didn't do a good job of editing it
after copying-and-pasting the 2005 version, or didn't set up ASP or
whatever it is that supplies VS-specific versions of the pages
correctly).
For VS 2010, note that Microsoft mentions all three redistribution
mechanisms, link to the "Choosing a Deployment Method" page for VS 2010,
and note that it recommends the method we chose and gives it as as the
first method.
svn path=/trunk/; revision=45302
2012-10-04 02:53:15 +00:00
|
|
|
<para>
|
2012-10-04 05:10:11 +00:00
|
|
|
<orderedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>"Using Visual C++ Redistributable Merge Modules"
|
|
|
|
(kind of loadable modules for building msi installers -
|
|
|
|
not suitable for Wireshark's NSIS based installer)</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>"Using Visual C++ Redistributable Package", wherein
|
|
|
|
the Microsoft libraries are installed by copying
|
|
|
|
<filename>vcredist_x86.exe</filename> or
|
|
|
|
<filename>vcredist_x64.exe</filename> to the target
|
|
|
|
machine and executing it on that machine (MSDN recommends
|
|
|
|
this for applications built with Visual Studio 2008
|
|
|
|
Express Edition)
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>"Install a particular Visual C++ assembly as a
|
|
|
|
private assembly for the application", wherein the
|
|
|
|
Microsoft libraries are installed by copying the folder
|
|
|
|
content of <filename>Microsoft.VC90.CRT</filename> to
|
|
|
|
the target directory (e.g. <filename>C:\Program
|
|
|
|
Files\Wireshark</filename>)</para>
|
|
|
|
</listitem>
|
2012-10-04 17:01:38 +00:00
|
|
|
</orderedlist>
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
To save installer size, and to make a "portable"
|
2012-10-04 05:10:11 +00:00
|
|
|
version of Wireshark (which must be completely self-contained,
|
|
|
|
on a medium such as a flash drive, and not require that an
|
|
|
|
installer be run to install anything on the target machine)
|
2012-10-04 17:01:38 +00:00
|
|
|
possible, when building 32-bit Wireshark with MSVC2008, method
|
|
|
|
3 (copying the content of <filename>Microsoft.VC90.CRT</filename>)
|
|
|
|
is used (this produces the smallest package).
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
As MSVC2008EE doesn't provide the folder
|
|
|
|
<filename>Microsoft.VC90.CRT</filename>,
|
|
|
|
when 32-bit Wireshark is built with it method 2 is used.
|
|
|
|
You'll have to download the appropriate version of
|
|
|
|
<filename>vcredist_x86.exe</filename> from Microsoft for your
|
|
|
|
compiler version.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
A portable version of 64-bit Wireshark is not built, so method
|
|
|
|
2 is used for all 64-bit builds. You'll have to download the
|
|
|
|
appropriate version of <filename>vcredist_x64.exe</filename>
|
|
|
|
from Microsoft for your compiler version.
|
2012-06-03 02:53:36 +00:00
|
|
|
</para>
|
2009-01-26 19:47:03 +00:00
|
|
|
<para>
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2012-06-03 08:15:43 +00:00
|
|
|
For 32-bit builds using Microsoft Visual C++ 2008
|
2012-10-04 07:19:13 +00:00
|
|
|
Express Edition without Service Pack 1, you need
|
2012-06-03 08:15:43 +00:00
|
|
|
<command>9.0.21022.8</command>, from:
|
2012-06-03 03:55:37 +00:00
|
|
|
"Microsoft Visual C++ 2008 Redistributable Package (x86)":
|
2012-06-03 17:08:38 +00:00
|
|
|
<ulink url="http://www.microsoft.com/download/details.aspx?id=29" />.
|
2012-06-03 02:53:36 +00:00
|
|
|
</para>
|
2009-01-26 19:47:03 +00:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2012-10-04 07:19:13 +00:00
|
|
|
For 64-bit builds using Microsoft Visual C++ 2008,
|
|
|
|
any edition, without Service Pack 1, you need
|
2012-06-03 08:15:43 +00:00
|
|
|
<command>9.0.21022.8</command>, from:
|
|
|
|
"Microsoft Visual C++ 2008 Redistributable Package (x64)":
|
|
|
|
<ulink url="http://www.microsoft.com/download/details.aspx?id=15336" />.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
For 32-bit builds with Microsoft Visual C++ 2008
|
2012-10-04 07:19:13 +00:00
|
|
|
Express Edition with Service Pack 1, you need
|
2012-06-03 08:15:43 +00:00
|
|
|
<command>9.0.30729.17</command>, from:
|
2012-06-03 03:55:37 +00:00
|
|
|
"Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)":
|
2012-06-03 17:08:38 +00:00
|
|
|
<ulink url="http://www.microsoft.com/download/details.aspx?id=5582" />.
|
2012-06-03 02:53:36 +00:00
|
|
|
</para>
|
2009-01-26 19:47:03 +00:00
|
|
|
</listitem>
|
2012-06-03 08:15:43 +00:00
|
|
|
<listitem>
|
|
|
|
<para>
|
2012-10-04 07:19:13 +00:00
|
|
|
For 64-bit builds with Microsoft Visual C++ 2008,
|
|
|
|
any edition, with Service Pack 1, you need
|
2012-06-03 08:15:43 +00:00
|
|
|
<command>9.0.30729.17</command>, from:
|
|
|
|
"Microsoft Visual C++ 2008 SP1 Redistributable Package (x64)":
|
|
|
|
<ulink url="http://www.microsoft.com/download/details.aspx?id=2092" />.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2009-01-26 19:47:03 +00:00
|
|
|
</itemizedlist>
|
|
|
|
</para>
|
2012-06-03 02:53:36 +00:00
|
|
|
<para>
|
|
|
|
Please report to the developer mailing list, if you
|
|
|
|
find a different version number!
|
|
|
|
</para>
|
2009-01-26 19:47:03 +00:00
|
|
|
</section>
|
|
|
|
<section>
|
2012-06-03 03:24:22 +00:00
|
|
|
<title>msvcr100.dll / vcredist_x86.exe / vcredist_x64.exe - Version 10.0 (2010)</title>
|
2012-10-04 05:10:11 +00:00
|
|
|
<para>There are three redistribution methods that MSDN
|
|
|
|
mentions for MSVC 10 (see:
|
|
|
|
"<ulink url="http://msdn.microsoft.com/en-US/library/ms235316(v=vs.100).aspx">Choosing a Deployment Method</ulink>"):
|
|
|
|
</para>
|
2012-06-03 02:53:36 +00:00
|
|
|
<para>
|
2012-10-04 05:10:11 +00:00
|
|
|
<orderedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>"Using Visual C++ Redistributable Package", wherein
|
|
|
|
the Microsoft libraries are installed by copying
|
|
|
|
<filename>vcredist_x86.exe</filename> or
|
|
|
|
<filename>vcredist_x64.exe</filename> to the target
|
|
|
|
machine and executing it on that machine (MSDN recommends
|
|
|
|
this for applications built with Visual Studio 2010,
|
|
|
|
both Express Edition and non-Express editions)
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>"Using Visual C++ Redistributable Merge Modules"
|
|
|
|
(kind of loadable modules for building msi installers -
|
|
|
|
not suitable for Wireshark's NSIS based installer)</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>"Install a particular Visual C++ assembly as a
|
|
|
|
private assembly for the application", wherein the
|
|
|
|
Microsoft libraries are installed by copying the folder
|
|
|
|
content of <filename>Microsoft.VC100.CRT</filename> to
|
|
|
|
the target directory (e.g. <filename>C:\Program
|
|
|
|
Files\Wireshark</filename>)</para>
|
|
|
|
</listitem>
|
2012-10-04 17:01:38 +00:00
|
|
|
</orderedlist>
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
To save installer size, and to make a "portable"
|
2012-10-04 05:10:11 +00:00
|
|
|
version of Wireshark (which must be completely self-contained,
|
|
|
|
on a medium such as a flash drive, and not require that an
|
|
|
|
installer be run to install anything on the target machine)
|
2012-10-04 17:01:38 +00:00
|
|
|
possible, when building 32-bit Wireshark with MSVC2010, method
|
|
|
|
3 (copying the content of <filename>Microsoft.VC100.CRT</filename>)
|
|
|
|
is used (this produces the smallest package).
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
As MSVC20010EE doesn't provide the folder
|
|
|
|
<filename>Microsoft.VC100.CRT</filename>,
|
|
|
|
when 32-bit Wireshark is built with it method 1 is used.
|
|
|
|
You'll have to download the appropriate version of
|
|
|
|
<filename>vcredist_x86.exe</filename> from Microsoft that
|
|
|
|
corresponds to your compiler version.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
A portable version of 64-bit Wireshark is not built, so method
|
|
|
|
1 is used for all 64-bit builds. You'll have to download the
|
|
|
|
appropriate version of <filename>vcredist_x64.exe</filename>
|
|
|
|
from Microsoft for your compiler version.
|
2012-06-03 02:53:36 +00:00
|
|
|
</para>
|
2011-10-24 23:18:34 +00:00
|
|
|
<para>
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2012-06-03 03:55:37 +00:00
|
|
|
For 32-bit builds using Microsoft Visual C++ 2010
|
2012-10-04 07:19:13 +00:00
|
|
|
Express Edition without Service Pack 1, you need
|
2012-06-03 02:53:36 +00:00
|
|
|
<command>10.0.30319.1</command>, from: "Microsoft Visual
|
|
|
|
C++ 2010 Redistributable Package (x86)":
|
2012-06-03 16:39:27 +00:00
|
|
|
<ulink url="http://www.microsoft.com/download/en/details.aspx?id=5555" />.
|
2012-06-03 02:53:36 +00:00
|
|
|
</para>
|
2011-10-24 23:18:34 +00:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2012-10-04 07:19:13 +00:00
|
|
|
For 64-bit builds using Microsoft Visual C++ 2010,
|
|
|
|
any edition, without Service Pack 1, you need
|
2012-06-03 08:15:43 +00:00
|
|
|
<command>10.0.30319.1</command>, from: "Microsoft Visual
|
2012-06-03 03:24:22 +00:00
|
|
|
C++ 2010 Redistributable Package (x64)":
|
2012-06-03 17:08:38 +00:00
|
|
|
<ulink url="http://www.microsoft.com/download/details.aspx?id=14632" />.
|
2012-06-03 03:24:22 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2012-10-04 07:19:13 +00:00
|
|
|
For 32-bit builds using Microsoft Visual C++ 2010
|
|
|
|
Express Edition with Service Pack 1, you need
|
2012-06-03 02:53:36 +00:00
|
|
|
<command>10.0.40219.1</command>, from: "Microsoft Visual
|
|
|
|
C++ 2010 SP1 Redistributable Package (x86)":
|
2012-06-03 16:39:27 +00:00
|
|
|
<ulink url="http://www.microsoft.com/download/en/details.aspx?id=8328" />.
|
2012-06-03 02:53:36 +00:00
|
|
|
</para>
|
2011-10-24 23:18:34 +00:00
|
|
|
</listitem>
|
2012-06-03 03:24:22 +00:00
|
|
|
<listitem>
|
|
|
|
<para>
|
2012-10-04 07:19:13 +00:00
|
|
|
For 64-bit builds using Microsoft Visual C++ 2010,
|
|
|
|
any edition, with Service Pack 1, you need
|
2012-06-03 08:15:43 +00:00
|
|
|
<command>10.0.40219.1</command>, from: "Microsoft Visual
|
2012-06-03 03:24:22 +00:00
|
|
|
C++ 2010 SP1 Redistributable Package (x64)":
|
2012-06-03 17:08:38 +00:00
|
|
|
<ulink url="http://www.microsoft.com/download/details.aspx?id=13523" />.
|
2012-06-03 03:24:22 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
2011-10-24 23:18:34 +00:00
|
|
|
</itemizedlist>
|
|
|
|
</para>
|
2012-06-03 02:53:36 +00:00
|
|
|
<para>
|
|
|
|
Please report to the developer mailing list, if you
|
|
|
|
find a different version number!
|
|
|
|
</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<section>
|
|
|
|
<title>Windows (Platform) SDK</title>
|
2012-09-23 20:35:09 +00:00
|
|
|
<para>The Windows Platform SDK (PSDK) or Windows SDK is a free
|
|
|
|
(as in beer) download and contains platform specific headers and
|
2007-01-21 04:48:49 +00:00
|
|
|
libraries (e.g. windows.h, WSock32.lib, ...). As new Windows
|
2012-09-23 20:35:09 +00:00
|
|
|
features evolve in time, updated SDK's become available that
|
2007-01-21 04:48:49 +00:00
|
|
|
include new and updated API's.</para>
|
|
|
|
<para>When you purchase a commercial Visual Studio, it will
|
2012-09-23 20:35:09 +00:00
|
|
|
include an SDK. The free (as in beer) downloadable C compiler
|
2007-09-10 17:10:42 +00:00
|
|
|
versions (VC++ 2005 Express, .NET Framework, ...) do not
|
2012-09-23 20:35:09 +00:00
|
|
|
contain an SDK - you'll need to download a PSDK in order to
|
2007-01-21 04:48:49 +00:00
|
|
|
have the required C header files and libraries.</para>
|
2012-09-23 20:44:21 +00:00
|
|
|
<para>Older versions of the SDK should also work. However, the
|
|
|
|
command to set the environment settings will be different, try
|
|
|
|
search for SetEnv.* in the SDK directory.</para>
|
2012-09-23 20:35:09 +00:00
|
|
|
<para>Prior to Windows Vista, the name "Platform SDK" was used;
|
|
|
|
starting with Vista, the name was changed just to "Windows
|
|
|
|
Software Development Kit" or "Windows SDK". The full names of the
|
|
|
|
SDKs can be misleading; for example, the SDK for Vista was called
|
|
|
|
the "Microsoft Windows Software Development Kit for Windows Vista
|
|
|
|
and .NET Framework 3.0 Runtime Components", which really means the
|
|
|
|
Windows SDK for Windows Vista and Platforms (like WinXP) that have
|
|
|
|
the .NET 3.0 runtime installed.</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</section>
|
|
|
|
<section>
|
|
|
|
<title>HTML Help</title>
|
|
|
|
<para>The HTML Help is used to create the User's and
|
|
|
|
Developer's Guide in .chm format and to show the User's Guide
|
|
|
|
as the Wireshark "Online Help".</para>
|
2009-12-20 14:49:49 +00:00
|
|
|
<para>Both features are currently optional, but might be
|
2007-01-21 04:48:49 +00:00
|
|
|
mandatory in future versions.</para>
|
|
|
|
<section>
|
|
|
|
<title>HTML Help Compiler (hhc.exe)</title>
|
2009-12-20 14:49:49 +00:00
|
|
|
<para>This compiler is used to generate a .chm file
|
|
|
|
from a bunch of HTML files - in our case to generate
|
2007-01-21 04:48:49 +00:00
|
|
|
the User's and Developer's Guide in .chm format.</para>
|
|
|
|
<para>The compiler is only available as the free (as in
|
|
|
|
beer) "HTML Help Workshop" download. If you want to compile
|
|
|
|
the guides yourself, you need to download and install this.
|
|
|
|
If you don't install it into the default directory, you may
|
|
|
|
also have a look at the HHC_DIR setting in the file
|
|
|
|
docbook/Makefile.</para>
|
|
|
|
</section>
|
|
|
|
<section>
|
|
|
|
<title>HTML Help Build Files (htmlhelp.c /
|
|
|
|
htmlhelp.lib)</title>
|
|
|
|
<para>The files htmlhelp.c and htmlhelp.lib are required to
|
|
|
|
be able to open .chm files from Wireshark - to show the
|
|
|
|
"online help".</para>
|
2012-09-23 20:44:21 +00:00
|
|
|
<para>Both files are part of the SDK (standalone (P)SDK or MSVC
|
|
|
|
since 2002). If you still use MSVC 6, you can get them from the
|
|
|
|
"HTML Help Workshop" mentioned above.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>The related settings in config.nmake depend on the
|
2007-01-21 04:48:49 +00:00
|
|
|
MSVC variant you use:</para>
|
|
|
|
<para>
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>MSVC 6: if the "HTML Help Workshop" is
|
2007-09-10 17:10:42 +00:00
|
|
|
installed, set HHC_DIR to its directory</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>> MSVC 6: set HHC_DIR to use it (the actual
|
|
|
|
value doesn't matter in this case)</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
</para>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<section id="ChToolsDebugger">
|
|
|
|
<title>Debugger</title>
|
|
|
|
<para>Well, using a good debugger can save you a lot of
|
|
|
|
development time.</para>
|
|
|
|
<para>The debugger you use must match the C compiler
|
|
|
|
Wireshark was compiled with, otherwise the debugger will
|
|
|
|
simply fail or you will only see a lot of garbage.</para>
|
|
|
|
<section id="ChToolsMSVCDebugger">
|
|
|
|
<title>Visual Studio integrated debugger</title>
|
|
|
|
<para>You can use the integrated debugger of Visual Studio
|
|
|
|
- only available in some of the toolchain packages.</para>
|
|
|
|
<para>However, setting up the environment is a bit tricky,
|
|
|
|
as the Win32 build process is using makefiles instead of
|
|
|
|
the .dsp/.dsw files usually used.</para>
|
|
|
|
<para>XXX - add instructions how to do it.</para>
|
|
|
|
</section>
|
|
|
|
<section id="ChToolsMSDebuggingTools">
|
|
|
|
<title>Debugging Tools for Windows</title>
|
2007-09-10 21:50:01 +00:00
|
|
|
<para>You could also use the Microsoft Debugging Tools for Windows toolkit,
|
2007-09-10 17:10:42 +00:00
|
|
|
which is a standalone GUI debugger. Although it's not that
|
|
|
|
comfortable compared to debugging with the Visual Studio
|
2007-01-21 04:48:49 +00:00
|
|
|
integrated debugger, it can be helpful if you have to debug
|
|
|
|
on a machine where an integrated debugger is not
|
|
|
|
available.</para>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>You can get it free of charge at:
|
2007-09-10 17:10:42 +00:00
|
|
|
<ulink url="http://www.microsoft.com/whdc/devtools/debugging/default.mspx" /> (as
|
2008-08-13 16:44:18 +00:00
|
|
|
links to Microsoft pages change from time to time, search
|
2007-01-21 04:48:49 +00:00
|
|
|
for "Debugging Tools" at their page if this link should be
|
|
|
|
outdated).</para>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<section id="ChToolsBash">
|
|
|
|
<title>bash</title>
|
|
|
|
<para>The bash shell is needed to run several shell
|
|
|
|
scripts.</para>
|
|
|
|
<section id="ChToolsGNUBash">
|
|
|
|
<title>UNIX or Win32 Cygwin: GNU bash</title>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>The bash shell is available for most of the UNIX-like
|
2008-01-15 21:48:16 +00:00
|
|
|
platforms and as the bash package from the
|
2007-01-21 04:48:49 +00:00
|
|
|
<link linkend="ChToolsCygwin">Cygwin setup</link>.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>If bash isn't already installed or
|
2008-01-15 21:48:16 +00:00
|
|
|
available as a package for your platform, you can get it at:
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://www.gnu.org/software/bash/bash.html" />.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>After correct installation, typing at the bash command line prompt:</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>
|
|
|
|
<prompt>$</prompt>
|
|
|
|
<userinput>bash --version</userinput>
|
|
|
|
</para>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>should result in something like:
|
2007-01-21 04:48:49 +00:00
|
|
|
<programlisting>
|
2009-12-20 14:49:49 +00:00
|
|
|
<![CDATA[GNU bash, version 3.1.17(6)-release (i686-pc-cygwin)
|
2006-11-03 22:39:28 +00:00
|
|
|
Copyright (C) 2005 Free Software Foundation, Inc.]]>
|
2009-12-20 14:49:49 +00:00
|
|
|
</programlisting>However, the version string may vary.</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</section>
|
|
|
|
<section id="ChToolsWin32Bash">
|
|
|
|
<title>Win32 native: -</title>
|
|
|
|
<para>The authors don't know of any working Win32 native bash
|
|
|
|
implementation.</para>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<section id="ChToolsPython">
|
|
|
|
<title>python</title>
|
|
|
|
<para>Python is an interpreter based programming language. The
|
2008-01-15 21:48:16 +00:00
|
|
|
homepage of the python project is:
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://python.org/" />. Python is used to generate
|
2010-11-09 15:47:41 +00:00
|
|
|
some source files. Python 2.4 to 2.7 should work fine.
|
2008-10-23 00:38:34 +00:00
|
|
|
</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
<section id="ChToolsUnixPython">
|
|
|
|
<title>UNIX or Win32 Cygwin: python</title>
|
|
|
|
<para>Python is available for most of the UNIX-like platforms
|
2008-01-15 21:48:16 +00:00
|
|
|
and as the python package from the
|
2007-01-21 04:48:49 +00:00
|
|
|
<link linkend="ChToolsCygwin">Cygwin setup</link></para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>If Python isn't already installed or
|
2008-01-15 21:48:16 +00:00
|
|
|
available as a package for your platform, you can get it at:
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://www.python.org/" />.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>After correct installation, typing at the
|
|
|
|
bash command line prompt:</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>
|
|
|
|
<userinput>$ python -V</userinput>
|
|
|
|
</para>
|
|
|
|
<para>should result in something like:</para>
|
|
|
|
<para>
|
|
|
|
<computeroutput>Python 2.4.3</computeroutput>
|
|
|
|
</para>
|
|
|
|
<para>However, the version string may vary.</para>
|
|
|
|
</section>
|
|
|
|
<section id="ChToolsWin32Python">
|
|
|
|
<title>Win32 native: python</title>
|
2010-11-09 15:47:41 +00:00
|
|
|
<para>Get Python 2.7, 2.6, 2.5, or 2.4 from
|
2008-10-23 00:38:34 +00:00
|
|
|
<ulink url="http://python.org/download/" />.
|
|
|
|
You can download an installation package there, which
|
|
|
|
will install the Python system in the top level of your
|
|
|
|
<filename>C:</filename> drive by default, e.g.
|
2010-11-09 15:47:41 +00:00
|
|
|
<filename>C:\Python27</filename>.</para>
|
2008-10-23 00:38:34 +00:00
|
|
|
<para>You can check for a successful installation from a command prompt (cmd.exe):</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>
|
2008-10-23 00:38:34 +00:00
|
|
|
<prompt>C:\></prompt>
|
2010-11-09 15:47:41 +00:00
|
|
|
<userinput>cd python27</userinput>
|
2008-10-23 00:38:34 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
2010-11-09 15:47:41 +00:00
|
|
|
<prompt>C:\Python27></prompt>
|
2007-01-21 04:48:49 +00:00
|
|
|
<userinput>python -V</userinput>
|
|
|
|
</para>
|
2008-10-23 00:38:34 +00:00
|
|
|
<para>The output should look something like:
|
2007-01-21 04:48:49 +00:00
|
|
|
<programlisting>
|
2010-11-09 15:47:41 +00:00
|
|
|
<![CDATA[Python 2.7]]>
|
2009-12-20 14:49:49 +00:00
|
|
|
</programlisting>However, the version string may vary.</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<section id="ChToolsPerl">
|
|
|
|
<title>perl</title>
|
|
|
|
<para>Perl is an interpreter based programming language. The
|
2008-01-15 21:48:16 +00:00
|
|
|
homepage of the perl project is:
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://www.perl.com" />. Perl is used to convert
|
|
|
|
various text files into usable source code. Perl version 5.6
|
|
|
|
and above should be working fine.</para>
|
|
|
|
<section id="ChToolsUnixPerl">
|
|
|
|
<title>UNIX or Win32 Cygwin: perl</title>
|
|
|
|
<para>Perl is available for most of the UNIX-like platforms
|
2008-01-15 21:48:16 +00:00
|
|
|
and as the perl package from the
|
2007-01-21 04:48:49 +00:00
|
|
|
<link linkend="ChToolsCygwin">Cygwin setup</link>.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>If perl isn't already installed or available
|
2008-01-15 21:48:16 +00:00
|
|
|
as a package for your platform, you can get it at:
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://www.perl.com/" />.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>After correct installation, typing at the
|
|
|
|
bash command line prompt:</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>
|
|
|
|
<prompt>$</prompt>
|
|
|
|
<userinput>perl --version</userinput>
|
|
|
|
</para>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>should result in something like:
|
2007-01-21 04:48:49 +00:00
|
|
|
<programlisting>
|
2009-12-20 14:49:49 +00:00
|
|
|
<![CDATA[This is perl, v5.8.7 built for cygwin-thread-multi-64int
|
2006-11-03 22:39:28 +00:00
|
|
|
(with 1 registered patch, see perl -V for more detail)
|
2004-08-21 20:34:22 +00:00
|
|
|
|
2006-11-03 22:39:28 +00:00
|
|
|
Copyright 1987-2005, Larry Wall
|
2004-08-21 20:34:22 +00:00
|
|
|
|
|
|
|
Perl may be copied only under the terms of either the Artistic License or the
|
|
|
|
GNU General Public License, which may be found in the Perl 5 source kit.
|
|
|
|
|
|
|
|
Complete documentation for Perl, including FAQ lists, should be found on
|
|
|
|
this system using `man perl' or `perldoc perl'. If you have access to the
|
|
|
|
Internet, point your browser at http://www.perl.com/, the Perl Home Page.]]>
|
2009-12-20 14:49:49 +00:00
|
|
|
</programlisting>However, the version string may vary.</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</section>
|
|
|
|
<section id="ChToolsWin32Perl">
|
|
|
|
<title>Win32 native: perl</title>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>A native Win32 perl package can be obtained from
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://www.ActiveState.com" />. The installation
|
|
|
|
should be straightforward.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>After correct installation, typing at the command
|
|
|
|
line prompt (cmd.exe):</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>
|
|
|
|
<prompt>></prompt>
|
|
|
|
<userinput>perl -v</userinput>
|
|
|
|
</para>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>should result in something like:
|
2007-01-21 04:48:49 +00:00
|
|
|
<programlisting>
|
2009-12-20 14:49:49 +00:00
|
|
|
<![CDATA[This is perl, v5.8.0 built for MSWin32-x86-multi-thread
|
2004-08-21 19:02:14 +00:00
|
|
|
(with 1 registered patch, see perl -V for more detail)
|
|
|
|
|
|
|
|
Copyright 1987-2002, Larry Wall
|
|
|
|
|
|
|
|
Binary build 805 provided by ActiveState Corp. http://www.ActiveState.com
|
|
|
|
Built 18:08:02 Feb 4 2003
|
|
|
|
...]]>
|
2009-12-20 14:49:49 +00:00
|
|
|
</programlisting>However, the version string may vary.</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<section id="ChToolsSed">
|
|
|
|
<title>sed</title>
|
|
|
|
<para>Sed it the streaming editor. It makes it easy for example
|
|
|
|
to replace specially marked texts inside a source code file.
|
|
|
|
The Wireshark build process uses this to stamp version strings
|
|
|
|
into various places.</para>
|
|
|
|
<section id="ChToolsUnixSed">
|
|
|
|
<title>UNIX or Win32 Cygwin: sed</title>
|
|
|
|
<para>Sed is available for most of the UNIX-like platforms
|
2008-01-15 21:48:16 +00:00
|
|
|
and as the sed package from the
|
2007-01-21 04:48:49 +00:00
|
|
|
<link linkend="ChToolsCygwin">Cygwin setup</link>.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>If sed isn't already installed or available
|
2008-01-15 21:48:16 +00:00
|
|
|
as a package for your platform, you can get it at:
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://directory.fsf.org/GNU/sed.html" /></para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>After correct installation, typing at the
|
|
|
|
bash command line prompt:</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>
|
|
|
|
<prompt>$</prompt>
|
|
|
|
<userinput>sed --version</userinput>
|
|
|
|
</para>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>should result in something like:
|
2007-01-21 04:48:49 +00:00
|
|
|
<programlisting>
|
2009-12-20 14:49:49 +00:00
|
|
|
<![CDATA[GNU sed version 4.1.5
|
2004-08-21 19:02:14 +00:00
|
|
|
Copyright (C) 2003 Free Software Foundation, Inc.
|
|
|
|
This is free software; see the source for copying conditions. There is NO
|
|
|
|
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE,
|
|
|
|
to the extent permitted by law.]]>
|
2009-12-20 14:49:49 +00:00
|
|
|
</programlisting>However, the version string may vary.</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</section>
|
|
|
|
<section id="ChToolsWin32Sed">
|
|
|
|
<title>Win32 native: sed</title>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>A native Win32 sed package can be obtained from
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://gnuwin32.sourceforge.net/" />. The
|
|
|
|
installation should be straightforward.</para>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<section id="ChToolsYacc">
|
|
|
|
<title>yacc (bison)</title>
|
|
|
|
<para>Bison is a free implementation of yacc.</para>
|
|
|
|
<section id="ChToolsUnixYacc">
|
|
|
|
<title>UNIX or Win32 Cygwin: bison</title>
|
|
|
|
<para>Bison is available for most of the UNIX-like platforms
|
2008-01-15 21:48:16 +00:00
|
|
|
and as the bison package from the
|
2007-01-21 04:48:49 +00:00
|
|
|
<link linkend="ChToolsCygwin">Cygwin setup</link>.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>If GNU Bison isn't already installed or
|
2008-01-15 21:48:16 +00:00
|
|
|
available as a package for your platform, you can get it at:
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://www.gnu.org/software/bison/bison.html" />.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>After correct installation, typing at the
|
|
|
|
bash command line prompt:</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>
|
|
|
|
<prompt>$</prompt>
|
|
|
|
<userinput>bison --version</userinput>
|
|
|
|
</para>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>should result in something like:
|
2007-01-21 04:48:49 +00:00
|
|
|
<programlisting>
|
2009-12-20 14:49:49 +00:00
|
|
|
<![CDATA[bison (GNU Bison) 2.3
|
2004-08-21 20:34:22 +00:00
|
|
|
Written by Robert Corbett and Richard Stallman.
|
|
|
|
|
2006-11-03 22:39:28 +00:00
|
|
|
Copyright (C) 2006 Free Software Foundation, Inc.
|
2004-08-21 20:34:22 +00:00
|
|
|
This is free software; see the source for copying conditions. There is NO
|
|
|
|
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.]]>
|
2009-12-20 14:49:49 +00:00
|
|
|
</programlisting>However, the version string may vary.</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</section>
|
|
|
|
<section id="ChToolsWin32Yacc">
|
|
|
|
<title>Win32 native: bison</title>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>A native Win32 yacc/bison package can be obtained from
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://gnuwin32.sourceforge.net/" />. The
|
|
|
|
installation should be straightforward.</para>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<section id="ChToolsLexx">
|
2007-07-21 15:24:25 +00:00
|
|
|
<title>flex</title>
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>Flex is a free implementation of lexx.</para>
|
|
|
|
<section id="ChToolsUnixLexx">
|
|
|
|
<title>UNIX or Win32 Cygwin: flex</title>
|
|
|
|
<para>Flex is available for most of the UNIX-like platforms
|
2008-01-15 21:48:16 +00:00
|
|
|
and as the flex package from the
|
2007-01-21 04:48:49 +00:00
|
|
|
<link linkend="ChToolsCygwin">Cygwin setup</link>.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>If GNU flex isn't already installed or
|
2008-01-15 21:48:16 +00:00
|
|
|
available as a package for your platform, you can get it at:
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://www.gnu.org/software/flex/" />.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>After correct installation, typing at the
|
|
|
|
bash command line prompt:</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>
|
|
|
|
<prompt>$</prompt>
|
|
|
|
<userinput>flex --version</userinput>
|
|
|
|
</para>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>should result in something like:
|
2007-01-21 04:48:49 +00:00
|
|
|
<programlisting>
|
2009-12-20 14:49:49 +00:00
|
|
|
<![CDATA[flex version 2.5.4]]>
|
|
|
|
</programlisting>However, the version string may vary.</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</section>
|
|
|
|
<section id="ChToolsWin32Lexx">
|
|
|
|
<title>Win32 native: flex</title>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>A native Win32 lexx/flex package can be obtained from
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://gnuwin32.sourceforge.net/" />. The
|
|
|
|
installation should be straightforward.</para>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<section id="ChToolsSubversion">
|
|
|
|
<title>Subversion (SVN) client (optional)</title>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>The Wireshark project uses its own Subversion (or short
|
2007-01-21 04:48:49 +00:00
|
|
|
SVN) server to keep track of all the changes done to the source
|
2007-09-10 17:10:42 +00:00
|
|
|
code. Details about the usage of Subversion in the Wireshark
|
2008-01-15 21:48:16 +00:00
|
|
|
project can be found in
|
2007-01-21 04:48:49 +00:00
|
|
|
<xref linkend="ChSrcSVNServer" />.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>If you want to work with the source code and are planning to
|
2007-01-21 04:48:49 +00:00
|
|
|
commit your changes back to the Wireshark community, it is
|
|
|
|
recommended to use a SVN client to get the latest source files.
|
|
|
|
For detailed information about the different ways to obtain the
|
2008-01-15 21:48:16 +00:00
|
|
|
Wireshark sources, see
|
2007-01-21 04:48:49 +00:00
|
|
|
<xref linkend="ChSrcObtain" />.</para>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>You will find more instructions in
|
2007-09-10 17:10:42 +00:00
|
|
|
<xref linkend="ChSrcAnon" /> on how to use the Subversion
|
2007-01-21 04:48:49 +00:00
|
|
|
client.</para>
|
|
|
|
<section id="ChToolsUnixSVN">
|
|
|
|
<title>UNIX or Win32 Cygwin: svn</title>
|
|
|
|
<para>SVN is available for most of the UNIX-like platforms
|
2008-01-15 21:48:16 +00:00
|
|
|
and as the Subversion package from the
|
2007-01-21 04:48:49 +00:00
|
|
|
<link linkend="ChToolsCygwin">Cygwin setup</link></para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>If Subversion isn't already installed or
|
2008-01-15 21:48:16 +00:00
|
|
|
available as a package for your platform, you can get it at:
|
2012-09-06 08:21:51 +00:00
|
|
|
<ulink url="http://subversion.apache.org/" /> (together with
|
2007-01-21 04:48:49 +00:00
|
|
|
the server software).</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>After correct installation, typing at the
|
|
|
|
bash command line prompt:</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>
|
|
|
|
<prompt>$</prompt>
|
|
|
|
<userinput>svn --version</userinput>
|
|
|
|
</para>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>should result in something like:
|
2007-01-21 04:48:49 +00:00
|
|
|
<programlisting>
|
2009-12-20 14:49:49 +00:00
|
|
|
<![CDATA[svn, version 1.0.5 (r9954)
|
2004-08-21 22:46:25 +00:00
|
|
|
compiled Jun 20 2004, 23:28:30
|
|
|
|
|
|
|
|
Copyright (C) 2000-2004 CollabNet.
|
|
|
|
Subversion is open source software, see http://subversion.tigris.org/
|
|
|
|
This product includes software developed by CollabNet (http://www.Collab.Net/).
|
|
|
|
...]]>
|
2009-12-20 14:49:49 +00:00
|
|
|
</programlisting>However, the version string may vary.</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</section>
|
|
|
|
<section id="ChToolsWin32SVN">
|
|
|
|
<title>Win32 native: svn</title>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>The Subversion command line tools for Win32 can be
|
2008-01-15 21:48:16 +00:00
|
|
|
found at:
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://subversion.tigris.org/" />. This will come
|
|
|
|
with both client and server software - only the client
|
|
|
|
software will be used.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>After correct installation, typing at the command
|
|
|
|
line prompt (cmd.exe):</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>
|
|
|
|
<prompt>></prompt>
|
|
|
|
<userinput>svn --version</userinput>
|
|
|
|
</para>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>should result in something like:
|
2007-01-21 04:48:49 +00:00
|
|
|
<programlisting>
|
2009-12-20 14:49:49 +00:00
|
|
|
<![CDATA[svn, Version 1.4.0 (r21228)
|
2006-11-03 22:39:28 +00:00
|
|
|
|
|
|
|
Copyright (C) 2000-2006 CollabNet.
|
|
|
|
...]]>
|
2009-12-20 14:49:49 +00:00
|
|
|
</programlisting>However, the version string may vary.</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<section id="ChToolsSubversionGUI">
|
|
|
|
<title>Subversion (SVN) GUI client (optional)</title>
|
|
|
|
<para>Along with the traditional command-line client, several
|
2008-01-15 21:48:16 +00:00
|
|
|
GUI clients are available for a number of platforms, see
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://subversion.tigris.org/project_links.html" />.</para>
|
|
|
|
<warning>
|
2007-09-10 17:10:42 +00:00
|
|
|
<title>Keep Subversion program versions in sync!</title>
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>If you are working with both command line and GUI
|
2007-09-10 17:10:42 +00:00
|
|
|
clients, keep the Subversion program versions in sync, at
|
2007-01-21 04:48:49 +00:00
|
|
|
least the major/minor versions (e.g. 1.4).</para>
|
|
|
|
</warning>
|
|
|
|
<section id="ChToolsUnixSVNGUI">
|
2007-06-17 11:18:29 +00:00
|
|
|
<title>UNIX or Win32 Cygwin: rapidSVN, subcommander</title>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>RapidSVN is a cross platform Subversion frontend based
|
2008-01-15 21:48:16 +00:00
|
|
|
on wxWidgets. It can be found at:
|
2007-08-29 00:15:15 +00:00
|
|
|
<ulink url="http://rapidsvn.tigris.org/" />. Subcommander is
|
2007-09-10 17:10:42 +00:00
|
|
|
another cross platform Subversion frontend. It can be found
|
2008-01-15 21:48:16 +00:00
|
|
|
at:
|
2007-08-29 00:15:15 +00:00
|
|
|
<ulink url="http://subcommander.tigris.org/" />.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>Cygwin doesn't provide any GUI client for
|
|
|
|
Subversion.</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</section>
|
|
|
|
<section id="ChToolsTortoiseSVN">
|
|
|
|
<title>Win32 native: TortoiseSVN</title>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>A good Subversion client for Win32 can be found at:
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://tortoisesvn.tigris.org/" />. It will
|
|
|
|
nicely integrate into the Windows Explorer window.</para>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<section id="ChToolsDiff">
|
|
|
|
<title>diff (optional)</title>
|
|
|
|
<para>Diff is used to get a file of all differences between two
|
|
|
|
source files/trees (sometimes called a patch). The diff tool
|
|
|
|
isn't needed for building Wireshark, but it's needed if you are
|
|
|
|
going to commit your changes back to the Wireshark
|
|
|
|
community.</para>
|
|
|
|
<note>
|
|
|
|
<title>Note!</title>
|
|
|
|
<para>The recommended way to build patches is using the
|
2008-01-15 21:48:16 +00:00
|
|
|
Subversion client, see
|
2007-09-10 17:10:42 +00:00
|
|
|
<xref linkend="ChToolsSubversion" /> for details.</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</note>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>You will find more instructions in
|
2007-09-10 17:10:42 +00:00
|
|
|
<xref linkend="ChSrcDiff" /> on how to use the diff tool.</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
<section id="ChToolsGNUDiff">
|
|
|
|
<title>UNIX or Win32 Cygwin: GNU diff</title>
|
|
|
|
<para>Diff is available for most of the UNIX-like platforms
|
2008-01-15 21:48:16 +00:00
|
|
|
and as the diffutils package from the
|
2007-01-21 04:48:49 +00:00
|
|
|
<link linkend="ChToolsCygwin">Cygwin setup</link>.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>If GNU diff isn't already installed or
|
2008-01-15 21:48:16 +00:00
|
|
|
available as a package for your platform, you can get it at:
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://www.gnu.org/software/diffutils/diffutils.html" />.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>After correct installation, typing at the
|
|
|
|
bash command line prompt:</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>
|
|
|
|
<prompt>$</prompt>
|
|
|
|
<userinput>diff --version</userinput>
|
|
|
|
</para>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>should result in something like:
|
2007-01-21 04:48:49 +00:00
|
|
|
<programlisting>
|
2009-12-20 14:49:49 +00:00
|
|
|
<![CDATA[diff (GNU diffutils) 2.8.7
|
2004-08-21 19:02:14 +00:00
|
|
|
Written by Paul Eggert, Mike Haertel, David Hayes,
|
2004-08-21 20:34:22 +00:00
|
|
|
Richard Stallman, and Len Tower.
|
|
|
|
|
|
|
|
Copyright (C) 2004 Free Software Foundation, Inc.
|
|
|
|
This is free software; see the source for copying conditions. There is NO
|
|
|
|
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.]]>
|
2009-12-20 14:49:49 +00:00
|
|
|
</programlisting>However, the version string may vary.</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</section>
|
|
|
|
<section id="ChToolsWin32Diff">
|
|
|
|
<title>Win32 native: diff</title>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>A native Win32 diff package can be obtained from
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://gnuwin32.sourceforge.net/" />. The
|
|
|
|
installation should be straightforward.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>The Subversion client TortoiseSVN has a built-in diff
|
2008-01-15 21:48:16 +00:00
|
|
|
feature, see
|
|
|
|
<xref linkend="ChToolsTortoiseSVN" />. It is currently unknown
|
2007-09-10 17:10:42 +00:00
|
|
|
if this tool can be used to
|
2007-01-21 04:48:49 +00:00
|
|
|
create diff files in the required format, so other persons
|
2007-09-10 17:10:42 +00:00
|
|
|
can use them.</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<section id="ChToolsPatch">
|
|
|
|
<title>patch (optional)</title>
|
|
|
|
<para>The patch utility is used to merge a diff file into your
|
|
|
|
own source tree. This tool is only needed, if you want to apply
|
|
|
|
a patch (diff file) from someone else (probably from the
|
|
|
|
developer mailing list) to try out in your own private source
|
|
|
|
tree.</para>
|
|
|
|
<tip>
|
|
|
|
<title>Tip!</title>
|
|
|
|
<para>Unless you are in the rare case needing to apply a
|
|
|
|
patch to your private source tree, you won't need the patch
|
|
|
|
tool installed.</para>
|
|
|
|
</tip>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>You will find more instructions in
|
2007-09-10 17:10:42 +00:00
|
|
|
<xref linkend="ChSrcPatchApply" /> on how to use the patch
|
2007-01-21 04:48:49 +00:00
|
|
|
tool.</para>
|
|
|
|
<section id="ChToolsUnixPatch">
|
|
|
|
<title>UNIX or Win32 Cygwin: patch</title>
|
|
|
|
<para>Patch is available for most of the UNIX-like platforms
|
2008-01-15 21:48:16 +00:00
|
|
|
and as the patch package from the
|
2007-01-21 04:48:49 +00:00
|
|
|
<link linkend="ChToolsCygwin">Cygwin setup</link>.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>If GNU patch isn't already installed or
|
2008-01-15 21:48:16 +00:00
|
|
|
available as a package for your platform, you can get it at:
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://www.gnu.org/software/patch/patch.html" />.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>After correct installation, typing at the
|
|
|
|
bash command line prompt:</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>
|
|
|
|
<prompt>$</prompt>
|
|
|
|
<userinput>patch --version</userinput>
|
|
|
|
</para>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>should result in something like:
|
2007-01-21 04:48:49 +00:00
|
|
|
<programlisting>
|
2009-12-20 14:49:49 +00:00
|
|
|
<![CDATA[patch 2.5.8
|
2004-08-21 19:02:14 +00:00
|
|
|
Copyright (C) 1988 Larry Wall
|
|
|
|
Copyright (C) 2002 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
This program comes with NO WARRANTY, to the extent permitted by law.
|
|
|
|
You may redistribute copies of this program
|
|
|
|
under the terms of the GNU General Public License.
|
|
|
|
For more information about these matters, see the file named COPYING.
|
|
|
|
|
|
|
|
written by Larry Wall and Paul Eggert]]>
|
2009-12-20 14:49:49 +00:00
|
|
|
</programlisting>However, the version string may vary.</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</section>
|
|
|
|
<section id="ChToolsWin32Patch">
|
|
|
|
<title>Win32 native: patch</title>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>A native Win32 patch package can be obtained from
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://gnuwin32.sourceforge.net/" />. The
|
|
|
|
installation should be straightforward.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>The Subversion client TortoiseSVN has a built-in patch
|
2008-01-15 21:48:16 +00:00
|
|
|
feature, see
|
2007-01-21 04:48:49 +00:00
|
|
|
<xref linkend="ChToolsTortoiseSVN" />. The last time tested
|
|
|
|
(Version 1.1.0), this feature failed to apply patches known
|
|
|
|
to be ok.</para>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<section id="ChToolsWget">
|
|
|
|
<title>Win32: GNU wget (optional)</title>
|
|
|
|
<para>GNU wget is used to download files from the internet
|
|
|
|
using the command line.</para>
|
|
|
|
<para>GNU wget is available for most of the UNIX-like platforms
|
2008-01-15 21:48:16 +00:00
|
|
|
and as the wget package from the
|
2007-01-21 04:48:49 +00:00
|
|
|
<link linkend="ChToolsCygwin">Cygwin setup</link>.</para>
|
|
|
|
<para>You will only need wget, if you want to use the Win32
|
2008-01-15 21:48:16 +00:00
|
|
|
automated library download, see
|
2007-09-10 17:10:42 +00:00
|
|
|
<xref linkend="ChLibsSetup" /> for details.</para>
|
|
|
|
<para>If GNU wget isn't already installed or
|
2007-01-21 04:48:49 +00:00
|
|
|
available as a package for your platform (well, for Win32 it is
|
2008-01-15 21:48:16 +00:00
|
|
|
available as a Cygwin package), you can get it at:
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://www.gnu.org/software/wget/wget.html" />.</para>
|
|
|
|
<para>If wget is trying to download files but fails to do so,
|
2008-08-27 22:06:13 +00:00
|
|
|
your Internet connection might use an HTTP proxy. Some Internet
|
|
|
|
providers use such a proxy and it is common in many company
|
|
|
|
networks today. Wireshark's setup script will try to discover
|
2010-11-27 16:51:24 +00:00
|
|
|
your proxy settings automatically, but you may need to set
|
2008-08-27 22:06:13 +00:00
|
|
|
the environment variable HTTP_PROXY by hand before using wget.
|
|
|
|
For example, if you are behind proxy.com which is listening on
|
|
|
|
port 8080, you have to set it to something like:</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
<para>
|
2009-12-20 14:49:49 +00:00
|
|
|
<programlisting>set HTTP_PROXY=http://proxy.com:8080/</programlisting>
|
2007-01-21 04:48:49 +00:00
|
|
|
</para>
|
|
|
|
<para>If you are unsure about the settings, you might ask your
|
|
|
|
system administrator.</para>
|
|
|
|
</section>
|
|
|
|
<section id="ChToolsUnzip">
|
|
|
|
<title>Win32: GNU unzip (optional)</title>
|
|
|
|
<para>GNU unzip is used to, well, unzip the zip files
|
|
|
|
downloaded using the wget tool.</para>
|
2007-09-10 17:10:42 +00:00
|
|
|
<para>GNU unzip is available for most of the UNIX-like platforms
|
2008-01-15 21:48:16 +00:00
|
|
|
and as the unzip package from the
|
2007-01-21 04:48:49 +00:00
|
|
|
<link linkend="ChToolsCygwin">Cygwin setup</link>.</para>
|
|
|
|
<para>You will only need unzip, if you want to use the Win32
|
2008-01-15 21:48:16 +00:00
|
|
|
automated library download, see
|
2007-09-10 17:10:42 +00:00
|
|
|
<xref linkend="ChLibsSetup" /> for details.</para>
|
|
|
|
<para>If GNU unzip isn't already installed or
|
2007-01-21 04:48:49 +00:00
|
|
|
available as a package for your platform (well, for Win32 it is
|
2008-01-15 21:48:16 +00:00
|
|
|
available as a Cygwin package), you can get it at:
|
2007-01-21 04:48:49 +00:00
|
|
|
<ulink url="http://gnuwin32.sourceforge.net/packages/unzip.htm" />.</para>
|
|
|
|
</section>
|
|
|
|
<section id="ChToolsNSIS">
|
|
|
|
<title>Win32: NSIS (optional)</title>
|
|
|
|
<para>The NSIS (Nullsoft Scriptable Install System) is used to
|
2009-12-20 14:49:49 +00:00
|
|
|
generate <filename>wireshark-win32-&WiresharkCurrentVersion;.x.exe</filename>
|
|
|
|
from all the files needed to be installed, including all required DLL's and
|
2007-01-21 04:48:49 +00:00
|
|
|
such.</para>
|
|
|
|
<para>To install it, simply download the latest released
|
2009-12-20 14:49:49 +00:00
|
|
|
version (currently: 2.45) from
|
2007-09-10 17:10:42 +00:00
|
|
|
<ulink url="http://nsis.sourceforge.net" /> and start the
|
2007-01-21 04:48:49 +00:00
|
|
|
downloaded installer. You will need NSIS version 2 final or
|
|
|
|
higher.</para>
|
2008-01-15 21:48:16 +00:00
|
|
|
<para>You will find more instructions in
|
2007-09-10 17:10:42 +00:00
|
|
|
<xref linkend="ChSrcNSIS" /> on how to use the NSIS tool.</para>
|
2007-01-21 04:48:49 +00:00
|
|
|
</section>
|
2004-08-21 19:02:14 +00:00
|
|
|
</chapter>
|
2006-06-06 23:08:58 +00:00
|
|
|
<!-- End of WSDG Chapter Tools -->
|