I want to add a new file that will enhance existing protocol - BACnet. The file will contain proprietary services analysis. When i add code, it does not get compiled. Which files do i need to modify to compile this file? asked 19 Apr '11, 10:47 dsprabhu4 |
One Answer:
You need to add your files to lists in several locations under the source tree. You will need to make changes in all of the following files if you are compiling a plugin dissector, but you will not need all of them if you are building your dissector into Wireshark directly (obviously YMMV, but I successfully build plugins after changing these lists; paths are relative to the top of the source tree):
Line numbers approximate; most of these are related to building a plugin or creating the Windows installer package, but you should be able to find where you need to make changes from this. Remember to check the answered 19 Apr '11, 11:23 multipleinte... edited 19 Apr '11, 12:58 |
I am not adding any new PlugIn. so i have modified only CMakeLists.txt. but still it does not compile the newly added file. as it does not create obj file. I saw other files mentioned here, but i do not think that i need to change. Am I missing something?
@dsprabhu4 I've updated the list with what the edits are for. You will need to edit the files in the list marked Built-in to compile your dissectors.
Thanks. I am able to compile.