1 ++++++++++++++++++++++++++++++++++++++
2 <!-- WSDG Chapter Libraries -->
3 ++++++++++++++++++++++++++++++++++++++
13 Several libraries are needed to build and run Wireshark. Most of them
14 are split into three packages:
16 . 'Runtime'. System and third party libraries such as 'MSVCR110.dll' and 'libglib-2.0-0.dll'.
18 . 'Developer'. Documentation, header files, import libraries, and other files needed for compilation.
20 . 'Source'. Library sources, which are usually not required to
24 .Our libraries are freely available
26 All libraries required to build Wireshark on Windows are available for download at
27 https://anonsvn.wireshark.org/wireshark-win32-libs/trunk/packages/[] and
28 https://anonsvn.wireshark.org/wireshark-win64-libs/trunk/packages/[].
29 See <<ChLibsSetup>> for an easier way to install them.
34 === Binary library formats
36 Binary libraries are available in different formats, depending on the C
37 compiler used to build it and of course the platform they were built for.
45 If you have installed unix binary libraries on your system, they will
46 match the C compiler. If not already installed, the libraries should be
47 available as a package from the platform installer, or you can download
48 and compile the source and then install the binaries.
56 Most of the Win32 binary libraries you will find on the web are in this
57 format. You will recognize MSVC libraries by the .lib/.dll file extension.
60 [[ChLibsFormatWin32Cygwin]]
63 ==== Win32: cygwin gcc
65 Cygwin provides most of the required libraries (with file extension .a or .lib)
66 for Wireshark suitable for cygwin's gcc compiler.
72 === Win32: Automated library download
74 The required libraries (apart from Qt) are automatically downloaded as part of
75 the CMake generation step, and subsequently as required when libraries are updated.
77 The libraries are downloaded into the directory indicated by the environment
78 variable WIRESHARK_BASE_DIR, this must be set appropriately for your environment.
79 The libraries are downloaded and extracted into WIRESHARK_BASE_DIR\wireshark-win32-libs
80 and WIRESHARK_BASE_DIR\wireshark-win64-libs for 32 and 64 bit builds respectively.
82 You may also directly set the library directory with the environment variable
83 WIRESHARK_LIB_DIR, but if you switch between 32 bit and 64 bit builds, the value of this
84 must be set appropriately.
90 The Qt library is used to build the UI for Wireshark and is used to provide a
91 platform independent UI. Wireshark can be built with Qt 4.7.0 or later, but we
94 For more information on the Qt libraries, see <<ChUIQt>>.
100 Most Linux distributions provide Qt and its development libraries as standard packages.
101 The required libraries and tools will likely be split across several packages. For example,
102 building on Ubuntu requires 'qttools5-dev', 'qttools5-dev-tools', 'libqt5svg5-dev,
103 'qtmultimedia5-dev', and possibly others.
105 The Qt Project provides an installation tool for macOS, similar to Windows.
106 It is available at https://www.qt.io/download-open-source/#section-2[].
112 Qt5 must be installed manually, from the Qt installers page
113 https://www.qt.io/download-open-source/#section-2[], using the version of Qt
114 appropriate for your compiler. Note that separate installations (into different directories) of Qt
115 are required for 32 bit and 64 bit builds. The environment variable QT5_BASE_DIR should be
116 set as appropriate for your environment and should point to the Qt directory that contains the
117 bin directory, e.g. C:\Qt\Qt5.6.2\5.6\msvc2013
121 === GTK+ / GLib / GDK / Pango / ATK / GNU gettext / GNU libiconv
123 The Glib library is used as a basic platform abstraction library, it's
124 not related to graphical user interface (GUI) things. For a detailed
125 description about GLib, see <<ChCodeGLib>>.
127 The GTK and its dependent libraries are used to build the older, deprecated, Wireshark GUI.
128 For a detailed description of the GTK libraries, see <<ChUIGTK>>.
130 All other libraries are dependent on the two libraries mentioned above,
131 you will typically not come in touch with these while doing Wireshark
134 As the requirements for the GLib/GTK libraries have increased in the past,
135 the required additional libraries depend on the GLib/GTK versions you have.
136 The 2.x versions require all mentioned libs.
142 The GLib/GTK+ libraries are available for many unix-like platforms and
145 If these libraries aren't already installed and also aren't available as a
146 package for your platform, you can get them at
147 http://www.gtk.org/download.html[].
153 You can get the latest version at http://www.gtk.org/download.html[].
159 LibSMI is used for MIB and PIB parsing and for OID resolution.
165 If this library isn't already installed or available as a
166 package for your platform, you can get it at
167 http://www.ibr.cs.tu-bs.de/projects/libsmi/[].
173 Wireshark uses the source libSMI distribution at
174 http://www.ibr.cs.tu-bs.de/projects/libsmi/[].
175 LibSMI is cross-compiled using MinGW32. It's stored in the libsmi zip archive at
176 https://anonsvn.wireshark.org/wireshark-win32-libs/trunk/packages/[].
180 === c-ares (optional)
182 C-Ares is used for asynchronous DNS resolution. This is the primary name
183 resolution library in Wireshark.
189 If this library isn't already installed or available as a package for your
190 platform, you can get it at http://c-ares.haxx.se/[].
196 C-Ares is cross-compiled using MinGW32 and is available at
197 https://anonsvn.wireshark.org/wireshark-win32-libs/trunk/packages/[].
203 [quote, The zlib web site, http://www.zlib.net/]
205 zlib is designed to be a
206 http://www.gzip.org/zlib/zlib_license.html[free],
207 general-purpose, legally unencumbered -- that is, not covered by any
208 patents -- lossless data-compression library for use on virtually any computer
209 hardware and operating system.
216 This library is almost certain to be installed on your system. If it isn't or
217 you don't want to use the default library you can download it from
218 http://www.zlib.net/[].
224 The zlib sources are downloaded from
225 https://anonsvn.wireshark.org/wireshark-win32-libs/trunk/packages/[] and compiled
230 === libpcap/WinPcap (optional)
232 Libpcap and WinPcap provide that packet capture capabilities that are central
233 to Wireshark's core functionality.
239 If this library isn't already installed or available as a package for your
240 platform, you can get it at {tcpdump-main-url}.
244 ==== Win32 MSVC: WinPcap
246 You can get the "Windows packet capture library" at:
247 https://www.winpcap.org/install/[]
251 === GnuTLS (optional)
253 The GNU Transport Layer Security Library is used to dissect SSL and TLS
254 protocols (aka: HTTPS).
260 If this library isn't already installed or available as a
261 package for your platform, you can get it at
262 https://www.gnu.org/software/gnutls/download.html[].
264 [[ChLibsWin32GNUTLS]]
268 We provide a package cross-compiled using MinGW32 at
269 https://anonsvn.wireshark.org/wireshark-win32-libs/trunk/packages/[].
273 === Gcrypt (optional)
275 The Gcrypt Library is a low-level encryption library that provides
276 support for many ciphers, such as DES, 3DES, AES, Blowfish, and others..
282 If this library isn't already installed or available as a
283 package for your platform, you can get it at
284 https://directory.fsf.org/wiki/Libgcrypt[].
286 [[ChLibsWin32Gcrypt]]
290 Part of our GnuTLS package.
294 === Kerberos (optional)
296 The Kerberos library is used to dissect Kerberos, sealed DCERPC and
297 secureLDAP protocols.
299 [[ChLibsUnixKerberos]]
303 If this library isn't already installed or available as a
304 package for your platform, you can get it at
305 http://web.mit.edu/Kerberos/dist/[].
307 [[ChLibsWin32Kerberos]]
311 We provide a package at
312 https://anonsvn.wireshark.org/wireshark-win32-libs/trunk/packages/[].
318 The LUA library is used to add scripting support to Wireshark.
324 If this library isn't already installed or available as a
325 package for your platform, you can get it at
326 http://www.lua.org/download.html[].
332 We provide a copy of the official package at
333 https://anonsvn.wireshark.org/wireshark-win32-libs/trunk/packages/[].
337 === PortAudio (optional)
339 The PortAudio library enables audio output for RTP streams.
341 [[ChLibsUnixPortAudio]]
345 If this library isn't already installed or available as a
346 package for your platform, you can get it at
347 http://www.portaudio.com/download.html[].
349 [[ChLibsWin32PortAudio]]
353 The PortAudio sources are downloaded from
354 https://anonsvn.wireshark.org/wireshark-win32-libs/trunk/packages/[] and compiled
361 MaxMind Inc. publishes a GeoIP database for use in open source software.
362 It can be used to map IP addresses to geographical locations.
368 If this library isn't already installed or available as a
369 package for your platform, you can get it at
370 http://www.maxmind.com/app/c[].
376 We provide a package cross-compiled using MinGW32 at
377 https://anonsvn.wireshark.org/wireshark-win32-libs/trunk/packages/[].
381 === WinSparkle (optional)
383 WinSparkle is an easy-to-use software update library for Windows developers.
385 [[ChLibsWin32WinSparkle]]
389 We provide a copy of the WinSparkle package at
390 https://anonsvn.wireshark.org/wireshark-win32-libs/trunk/packages/[].
392 ++++++++++++++++++++++++++++++++++++++
393 <!-- End of WSDG Chapter Libraries -->
394 ++++++++++++++++++++++++++++++++++++++