Wireshark-dev: Re: [Wireshark-dev] Issue loading a new plugin
From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Mon, 2 Feb 2009 15:23:07 +0100
Hi, Since this comes up more and more often is someone able to: 1. Write a patch for the plugin makefiles, or 2. Write a chapter in the developer manual, or 3. Write something on an apropriate Wiki page. This in order of preference. Thanx, Jaap Sent from my iPhoneOn 2 feb 2009, at 14:55, "James Gallogly" <jgallogly@xxxxxxxxxxxxxxx> wrote:
Oliver, Perfect! That did the trick. Thanks for the help! Jim -----Original Message----- From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of wsgd Sent: Friday, January 30, 2009 4:20 PM To: Developer support list for Wireshark Subject: Re: [Wireshark-dev] Issue loading a new plugin Hello"Couldn't load module C:\Program Files\Wireshark\plugins \1.0.5\ccs.dll:The Specified module could not be found." is the error window I have if I do not include the manifest inside the dll. To include the manifest inside the dll :mt.exe -manifest <dll_name>.dll.manifest - outputresource:<dll_name>.dll;2Plugin works for me. dissector with C++ inside, production : wireshark 1.0.3, Vista, Visual C++ 2005 EE works on : - 1.0.5 standard installation (Vista and XP) - 1.0.3 standard installation (XP) - 1.0.3 own build installation (Vista and XP) Olivier James Gallogly a écrit :UFLF,Copying the Microsoft CRT dlls to the Wireshark directory (which as itturns out is recommend in the dev guide section 4.4.6.4) yields the following behavior. Again my plug-in works fine so long as I build Wireshark from source. Has anyone built a plugin with VS 2005 or greater and used that dllwith the official Wireshark built release? Or does everyone just buildthere own Wireshark version? Thanks for thelp, Jim -----Original Message----- From: wireshark-dev-bounces@xxxxxxxxxxxxx[mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of James GalloglySent: Thursday, January 29, 2009 9:38 AM To: 'Developer support list for Wireshark' Subject: Re: [Wireshark-dev] Issue loading a new plugin ULFL, Thanks for help and fast response. The guide was very useful ingetting a build together. Building all of wireshark and executing thatwith my plugin in place works fine. I only have an issue when I"install"my plugin into the official release build. So currently my only tests have been on my development machine. Yourcorrect the make file has no mt.exe reference. Copying the manifest intothe plugins location doesn’t seem to have an affect. I even instal ledthec-runtime distrubtion files on my machine in case something was strangethere. Again no change. Later I will try your suggestion of copying theruntime dlls just to see if the behavior changes. Thanks for the help, Jim -----Original Message----- From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Ulf Lamping Sent: Wednesday, January 28, 2009 8:12 PM To: Developer support list for Wireshark Subject: Re: [Wireshark-dev] Issue loading a new plugin Heude Pascal schrieb:Hello Jim,Do you try to build the whole wireshark or only to build your dll ?I had this problem on some windows version and I solved it by buildingthe whole wireshark. But I still do not know why !PascalJames Gallogly a écrit :I am trying to develop a Wireshark plugin and am starting at the mostbasic level. I followed the instructions in the dev guide to create abasic dissector, basically copy and pasted 9.2.1 and changed foo toccs. Iused agentx MakeFiles as an example.I am developing on Windows using Visual Studio 2005. I have noproblembuilding the project or my plugin using the nmake utility. HoweverwhenIcopy my plugin dll into the plugins/1.0.5 directory and executeWiresharkI get the following message."Couldn't load module C:\ProgramFiles\Wireshark\plugins\1.0.5\ccs.dll:The Specified module could not be found."Any ideas what I might be doing wrong here?Hi!This is the tricky part of the current Microsoft compiler toolchain :-(As I've written most part of the Developer's Guide in that regard, I'mstill not satisfied with it's current state regarding the new Studios (>V6). But I need some feedback, so please give detailed response :-)Unfortunately, you didn't noticed if you tried to run your plugin on thesame (developer) machine where you've build it or on a different targetmachine. Two possible causes (at least I know of): 1) missing manifest infos 2) missing "C-Runtime "Redistributable" files" 1)The most likely reason is that you need the manifest information. Have alook at your Makefile.nmake you're using to build the ccs plugin. If itdoesn't contain a line like mt.exe (I'm certain it won't), you need tocopy the generated file ccs.dll.manifest along with your plugin, otherwise it won't work. 2) If you're trying to run it on a different target machine than yourdeveloper machine, this is often a problem due to the missing "C- Runtime"Redistributable" files" on the target machine. See:http://www.wireshark.org/docs/wsdg_html_chunked/ChToolsMSChain.html#id4715151 for details. You can:a) take the folder content of Microsoft.VC80.CRT (located somewhere inthe Studio dir c:\program files\...) and put the *content* of that dirwhere the Wireshark.exe resides (or probably in the plugins dir, unsureof the right location - please try it out and give feedback) or b) install the redistributable pack as mentioned on the linked page above. Make sure you have the right pack, depending if your Studioyou're using to build the Wireshark plugin has an installed SP1 or not(if you find a different version number in the manifest file than in theweb page above, then *please* report it) All in all, trying to run Wireshark plugins compiled with a differentmsvcr than Wireshark core *might* work or cause trouble. Please reportsuccess or strange behaviour ... Regards, ULFL P.S: Seems, that the plugin Makefile.nmake still don't contain the mt.exe call, we really need to change this! Any volounteers?__________________________________________________________________________
_ Sent via: Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe__________________________________________________________________________
_Sent via: Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe--- ---------------------------------------------------------------------__________________________________________________________________________
_Sent via: Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-devmailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe -- Wireshark Generic Dissector http://wsgd.free.fr __________________________________________________________________________
_ Sent via: Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe ___________________________________________________________________________
Sent via: Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe
- Follow-Ups:
- Re: [Wireshark-dev] Issue loading a new plugin
- From: Ulf Lamping
- Re: [Wireshark-dev] Issue loading a new plugin
- References:
- Re: [Wireshark-dev] Issue loading a new plugin
- From: James Gallogly
- Re: [Wireshark-dev] Issue loading a new plugin
- Prev by Date: Re: [Wireshark-dev] Issue loading a new plugin
- Next by Date: Re: [Wireshark-dev] Issue loading a new plugin
- Previous by thread: Re: [Wireshark-dev] Issue loading a new plugin
- Next by thread: Re: [Wireshark-dev] Issue loading a new plugin
- Index(es):