1 The X11 dissector generator is no longer run automatically.
3 To run the dissector generator, you will need perl 5.10 or later and the
4 XML::Twig module from CPAN. You will also need 'git' to retrieve the
5 latest protocol descriptions.
7 Once you have those, you also need the XML protocol descriptions. In the
8 epan/dissectors directory, run the following commands:
9 git clone git@gitlab.freedesktop.org:xorg/proto/xcbproto.git
10 git clone git@gitlab.freedesktop.org:mesa/mesa.git
12 Please be aware that the Mesa repository is rather large. As of this writing,
13 the full git history is 587MiB and the source itself is roughly 250MiB. The
14 space needed can be significantly reduced by downloading less commit history
15 (such as with the git option --shallow-source, available since git 2.11) and
16 performing a sparse checkout (available since git 2.25), e.g.,
18 git clone --shallow-since=2024-04-23 --sparse git@gitlab.freedesktop.org:mesa/mesa.git
20 git sparse-checkout add src/mapi/glapi/gen/
22 As of this writing, mesa will provide:
23 src/mapi/glapi/gen/gl_API.xml
24 and xcbproto provides:
57 Or, if you have already cloned those repositories, "git pull" each one to bring
60 Then build the x11-dissector target; for example, run the command
64 if you're using Make as your build tool or
68 if you're using Ninja as your build tool.
70 This will automatically run process-x11-fields.pl (for the core protocol
71 definitions), and then it will run process-x11-xcb.pl to process the XML
72 descriptions from XCB and Mesa to generate the extension dissectors.
74 Once this is complete, compile wireshark as usual.