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 |
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 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: For CMake builds, either pass the custom plugin dir on the CMake generation step command line: CMake ... -DCUSTOM_PLUGIN_SRC_DIR="plugins/foo" or copy the top-level file CMakeListsCustom.txt.example to CMakeListsCustom.txt (also in the top-level source dir) and edit so that CUSTOM_PLUGIN_SRC_DIR is set() to the relative path of your plugin, e.g. set(CUSTOM_PLUGIN_SRC_DIR plugins/foo) and re-run the CMake generation step. To build the plugin, run your normal Wireshark build step.
(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