Wireshark-dev: Re: [Wireshark-dev] DISSECTOR_SUPPORT_SRC in another directory in Windows
What does your directory structure look like? i.e., is common/ under plugins/ or off the root? It looks to me like Windows is looking for common/ path-relative to your plugin directory so you should have "wireshark/plugins/common/support_file.c". If you want to keep the directory structure as "wireshark/common/", then you might be able to get away with modifying your plugin's Makefile.nmake, specifically adding "../../common/support_file.obj" to your list of OBJECTS or DISSECTOR_SUPPORT_OBJECTS. I think this will work, although it seems like a bit of hack. I'm sure there's a better way to do this but it escapes me at the moment.
- Chris
-----Original Message-----
From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Jeremy O'Brien
Sent: Tuesday, April 27, 2010 9:44 AM
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] DISSECTOR_SUPPORT_SRC in another directory in Windows
Yeah I tried changing it to "\" and "\\", neither of which worked. :(
On Sun, Apr 25, 2010 at 14:43, Maynard, Chris
<Christopher.Maynard@xxxxxxxxx> wrote:
> Just a guess, but maybe it's due to the different path separator ... i.e., '/' for *nix vs. '\' for Windows?
> - Chris
> ________________________________________
> From: wireshark-dev-bounces@xxxxxxxxxxxxx [wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Jeremy O'Brien [obrien654j@xxxxxxxxx]
> Sent: Friday, April 23, 2010 10:14 AM
> To: Developer support list for Wireshark
> Subject: [Wireshark-dev] DISSECTOR_SUPPORT_SRC in another directory in Windows
>
> I'm using DISSECTOR_SUPPORT_SRC in my Makefile.common to compile a c
> file in another directory that gets linked into my plugin. This works
> fine in linux, however in windows it gives a "cannot open input file
> ../common/support_file.obj" I moved the file to the same directory as
> my plugin, replaced the DISSECTOR_SUPPORT_SRC entry appropriately, and
> it compiled fine. So my question is, is it possible to have a plugin
> use a file that is not in the current directory for
> DISSECTOR_SUPPORT_SRC?
>
> My DISSECTOR_SUPPORT_SRC line just looks like this:
>
> DISSECTOR_SUPPORT_SRC = ../common/support_file.c
>
> Thank you,
> Jeremy
CONFIDENTIALITY NOTICE: The contents of this email are confidential
and for the exclusive use of the intended recipient. If you receive this
email in error, please delete it from your system immediately and
notify us either by email, telephone or fax. You should not copy,
forward, or otherwise disclose the content of the email.