I have successfully upgraded my wireshark plugin on windows 7(from 1.6 to 2.2). It works perfectly. But now I have been trying to compile the code on Ubuntu 16.04 and it is showing a lot of errors. I have removed a lot of it but got stuck in the following issue. This appears everytime I open Wireshark.
I have both -
functions. What should I do now? Thanks asked 09 Mar '17, 00:35 xaheen |
One Answer:
Presumably that Makefile is autotools derived somehow. I suspect you'll have to regenerate the makefile using autotools and there my knowledge ends. The Developers Guide info on building on Unix is here and that suggests:
On the few times I’ve built on Linux I’ve used CMake, in exactly the same way as it’s done on Windows except for the actual build command where I use answered 09 Mar ‘17, 03:59 grahamb ♦ Thanks a lot. So after building wireshark, what cmake command do I use to compile the plugin? and do I put the plugin source code in the wireshark/plugin folder, just like on windows? (09 Mar ‘17, 05:14) xaheen 1 CMake builds should be very similar on both platforms as that’s the point of CMake, so simply do the same as on Windows, e.e. as per section 3.1 of doc\README.plugins:
(09 Mar ‘17, 05:40) grahamb ♦ Thanks a lot (09 Mar ‘17, 06:50) xaheen |
plus, is there any official guideline for compiling custom plugin on Linux? Thanks
How are you building, CMake or autotools? If you use CMake, then Windows and linux should be the same.
@grahamb I am using "make -f Makefile.linux" - This command