Wireshark-dev: [Wireshark-dev] Error compiling a custom dll plugin for Wireshark0.99.7

From: "A Verma" <laughaloud43@xxxxxxxxx>
Date: Wed, 27 Feb 2008 16:17:36 +0530
Hi,
I am trying to create a dll called xxx.dll in plugings/xxx folder in wireshark source code folder.
I executed the following commands:
 

C:\wireshark\plugins\xxx>nmake -f Makefile.nmake distclean

Output: 

Microsoft (R) Program Maintenance Utility Version 8.00.50727.762

Copyright (C) Microsoft Corporation.  All rights reserved.

 

rm -f packet-xxx.obj  plugin.obj xxx.res plugin.c *.pdb  xxx.dll xxx.dll  .manifest xxx.lib  xxx.exp xxx.rc

 

C:\wireshark\plugins\xxx>nmake -f Makefile.nmake all

Output: 

Microsoft (R) Program Maintenance Utility Version 8.00.50727.762

Copyright (C) Microsoft Corporation.  All rights reserved.

 

Making plugin.c (using python)

        sed -e s/@PLUGIN_NAME@/xxx/  -e s/@RC_MODULE_VERSION@/0,99,8,0/  -e s/@R

C_VERSION@/0,99,8/  -e s/@MODULE_VERSION@/0.99.8.0/  -e s/@PACKAGE@/xxx/  -e s/@

VERSION@/0.99.8"-xxx-yyy-01"/  -e s/@MSVC_VARIANT@/MSVC2005EE/  < plugin.rc.in >

 xxx.rc

        rc  /r xxx.rc

        cl /DHAVE_WIN32_LIBWIRESHARK_LIB /D_NEED_VAR_IMPORT_ /WX /DHAVE_CONFIG_H

 /I../.. /I../../wiretap /IC:\wireshark-win32-libs\glib\include\glib-2.0  /IC:\w

ireshark-win32-libs\glib\lib\glib-2.0\include  /IC:\wireshark-win32-libs\WPdpack

\include -D_U_="" /Zi /W3 /MD /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRE

CATE /DMSC_VER_REQUIRED=1400 -Fd.\ -c packet-xxx.c plugin.c

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86

 

Copyright (C) Microsoft Corporation.  All rights reserved.

 

packet-xxx.c

C:\wireshark\epan/ftypes/ftypes-int.h(30) : fatal error C1083: Cannot open include file: 'pcre.h': No such file or directory

plugin.c

Generating Code...

NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.EXE"' : return code '0x2'

Stop.

  

 pcre.h file is present at path:

C:\wireshark-win32-libs\pcre-6.4\include

 

So why is the eoor being generated. Can someone please help me.

Thanks for your time!

 

thanks & regards,
Ash