First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

alternative for libwireshark.lib in 64 bit

  • retag add tags

epan\libwireshark.lib is not present in the 64 bit version of Wireshark , I am trying to convert my plugin to 64bit from 32 bit which is dependent on this library. Is there any alternative file for this library for 64 bit? If so then what and if not then what shall I do? when I am trying to run makefile I am geting this error don't know how to make '....\epan\libwireshark.lib' Kindly help!

Priyanka's avatar
1
Priyanka
asked 2019-05-20 13:25:53 +0000
edit flag offensive 0 remove flag close merge delete

Comments

The Wireshark build infrastructure (CMake) is set up so that the build bitness is (mostly) hidden from code, it sounds as though you're doing something wrong.

What version of Wireshark are you building and on what platform?

grahamb's avatar grahamb (2019-05-20 14:34:18 +0000) edit

I am currently using wireshark 3.0.1 on windows 10 platform. Not able to remove #don't know how to make ..epan/libwireshark.lib error

stbimudd's avatar stbimudd (2019-05-21 10:24:39 +0000) edit
add a comment see more comments

1 Answer

0

Assuming you're building a dissector plugin, the libraries that your plugin will link with is set by the target_link_libraries() statement in the CMakeList.txt for your plugin. Normally this will include epan which is the link to libwireshark. If you have anything odd here, you'll have to fix that.

Just clutching at straws, can you confirm you are using a separate build directory for the 32 and 64 bit builds? You can't build both in the same build dir, both builds can share the same source dir.

grahamb's avatar
23.8k
grahamb
answered 2019-05-21 11:06:40 +0000
edit flag offensive 0 remove flag delete link

Comments

Can you help me about how I can add a plugin in 64bit wireshark.?

Priyanka's avatar Priyanka (2019-05-21 11:09:33 +0000) edit

The simple answer is in exactly the same way as you add a plugin for 32 bit Wireshark. With your plugin source code in the same spot in the source tree, open an x64 VS build prompt, create an x64 build dir, run the CMake generation step (indicating you want an x64 build) and then run msbuild.

grahamb's avatar grahamb (2019-05-21 11:35:15 +0000) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer