This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

compile dissector in windows?

0

hello,

we are would like to make dissector for in-house project. we are planning to use 32bit vc2013 on win7 64 bits after installing all staff from https://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html we are still not able compile anything because glib.h is missing. we are tried to use glib sources but as we are don't have glibconfig.h we are also can't compile plugin.

can anyone explain minimal set of libraries and tools to make custom dissector?

or does anyone have glibconfig.h for glib that could be used in windows environment?

alex

asked 06 Feb '16, 03:59

maxfox's gravatar image

maxfox
6113
accept rate: 0%


One Answer:

1

You must have missed a step from the Developers Guide, glib.h can be found in the wireshark-win32-libs\gtk2\include\glib-2.0 directory.

Please post the output of the CMake generation step, editing your question to attach it. You can obtain the output by redirecting to a file, e.g. cmake -G ... 2>&1 > c:\temp\cmake.txt.

answered 06 Feb '16, 05:09

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

hello,

yeah, maybe we have been missed something. after repeating all steps from guide and compiling wireshark we found glib.h and glibconfig.h files.

alex.

(07 Feb '16, 17:36) maxfox
1

If an answer has solved your issue, please accept the answer for the benefit of other users by clicking the checkmark icon next to the answer. Please read the FAQ for more information.

(07 Feb '16, 23:53) Jaap ♦