Ethereal-users: Re: [Ethereal-users] I cannot compile ethereal ethereal-0.9.14 onWin32

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Bill Meier" <wmeier@xxxxxxxxxxx>
Date: Fri, 15 Aug 2003 18:50:45 -0500
FWIW I had some problems compiling ethereal v0.9.14 on a windows xp system 
using microsoft vc6.

There were two main problems:

1. The gtk+-dev-1.3.0 20030115.zip in the 
Ethereal "Win32 Development Files" directory
http://www.ethereal.com/distribution/win32/development/
has a directory structure different than that assumed 
in the config.nmake file.

So: I changed my config.nmake file as follows to get this to work.

!IF "$(GTK_VERSION)" == "1.3"
GTK_CFLAGS=$(GLIB_CFLAGS) /I$(GTK_DIR) /I$(GTK_DIR)\gdk
GTK_LIBS=$(GTK_DIR)\gtk\gtk-$(GTK_VERSION).lib \
	$(GTK_DIR)\gdk\gdk-$(GTK_VERSION).lib \
	$(GLIB_LIBS)

### some kind of different directory structure ?
!ELSE IF "$(GTK_VERSION)" == "1.3x"
GTK_CFLAGS=$(GLIB_CFLAGS) /I$(GTK_DIR)\include /I$(GTK_DIR)\include\gdk \
	/I$(GTK_DIR)\lib\gtk+\include
GTK_LIBS=$(GTK_DIR)\lib\gtk.lib $(GTK_DIR)\lib\gdk.lib \
       $(GLIB_LIBS)
##


2.  The makefile.nmake wants to use gcc to create xyzzy and then use Python 
to create Xplugin.api.c using xyzzy and plugin_api.c.  Since I'm using vc6 
I commented this out so as to just use the Xplugin_api.c which is part of 
the distributed source. (Life is too short to install and configure another 
C compiler).

###Xplugin_api.c: xyzzy plugin_gen.py plugin_api.c
###	$(PYTHON) plugin_gen.py xyzzy

plugin_api.obj: plugin_api.c Xplugin_api.c

###xyzzy: plugin_api_list.c
###	gcc -aux-info xyzzy -