This is our old Q&A Site. Please post any new questions and answers at

I am trying to update a custom plugin from Ethereal 0.10.14 to Wireshark 1.4.9. I am following the README.plugins file to do the update. This is for a Win32 application, and I am using MSVC2008 as recommended.

I get the following error when compiling my plugin source:

c:\wireshark\wireshark-1.4.9\plugins\fatv\Rccu.h(12) : fatal error C1083: Cannot open include file: 'glib.h': No such file or directory

I had used the following command sequences:

nmake -f Makefile.nmake clean_setup
    # (Here I see that the glib directory is deleted)
nmake -f Makefile.nmake 
    # (I cannot find a glib directory getting created after this nor can I find anything in the make files to create this directory)
nmake -f Makefile.nmake 
    # (The above error occurs during this make)

Is glib obselete? If not, why is it not found or created? How do I resolve this issue?

asked 14 Oct '11, 08:52

lanb's gravatar image

accept rate: 0%

edited 14 Oct '11, 13:50

helloworld's gravatar image


Check your Makefile.nmake for your plugin.

    /I$(PCAP_DIR)include -D_U_="" $(LOCAL_CFLAGS)
Sets up the search path for the glib include file, through GLIB_FLAGS imported from config.nmake

permanent link

answered 15 Oct '11, 02:35

Jaap's gravatar image

Jaap ♦
accept rate: 14%

Does a "nmake -f Makefile.nmake setup" do the trick? ("clean_setup" deletes the old setup, but you need to explicitly recreate the setup stuff.)

permanent link

answered 14 Oct '11, 10:59

JeffMorriss's gravatar image

JeffMorriss ♦
accept rate: 27%

It did not format well and I see I forgot the setup on the post, but I did the following:

nmake -f Makefile.nmake clean_setup

nmake -f Makefile.nmake setup

nmake -f Makefile.nmake all

So yes I did to an nmake ... setup after the clean_setup but do not see the glib directory being created in the libs directory.

(14 Oct '11, 12:52) lanb

For current Wireshark gtk/glib Win2 libraries, glib.h is in the following directory


There will not be a glib directory directly in the libs directory. (ISTR that the whole gtk2/glib directory structure changed at some point).

When you do the 'nmake all' do the Wireshark source files compile OK ? If yes then the library setup is not the problem.

Perhaps we might be able to help if you post the make output of the compile command for your plugin

E.G., cl /D_NEED_VAR_IMPORT_ -WX -DHAVE_CONFIG_H -D_U_="" /Zi /W3 /MD ....

(14 Oct '11, 16:50) Bill Meier ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 14 Oct '11, 08:52

question was seen: 4,015 times

last updated: 15 Oct '11, 02:35

p​o​w​e​r​e​d by O​S​Q​A