Open derjohn opened 9 years ago
Hi! I've got the same error! Did you solve your problem?
I solved that issue by setting
WIRESHARK_INCLUDE_DIRS:PATH=/usr/include/wireshark/
in CMakeCache.txt (via cmake-gui).
However, compilation afterwards fails:
/home/hcw/git/wireshark-whatsapp/packet-whatsapp.c: In function ‘dissect_whatsapp_message’:
/home/hcw/git/wireshark-whatsapp/packet-whatsapp.c:118:5: warning: passing argument 2 of ‘tvb_memdup’ makes integer from pointer without a cast [enabled by default]
guint8* buffer = tvb_memdup(NULL, tvb, 0, length);
^
In file included from /usr/include/wireshark/epan/proto.h:51:0,
from /usr/include/wireshark/epan/packet.h:29,
from /home/hcw/git/wireshark-whatsapp/packet-whatsapp.c:11:
/usr/include/wireshark/epan/tvbuff.h:339:21: note: expected ‘gint’ but argument is of type ‘struct tvbuff_t *’
WS_DLL_PUBLIC void* tvb_memdup(tvbuff_t*, const gint offset, size_t length);
^
/home/hcw/git/wireshark-whatsapp/packet-whatsapp.c:118:5: error: too many arguments to function ‘tvb_memdup’
guint8* buffer = tvb_memdup(NULL, tvb, 0, length);
^
Hello, even after installing the build-deps
the build fails