Ethereal-dev: Re: [Ethereal-dev] config.nmake problem

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

From: "Lars Roland" <Lars.Roland@xxxxxxx>
Date: Mon, 10 Nov 2003 11:32:36 +0100 (MET)
Hello all,

> > Date: Sat, 8 Nov 2003 02:39:56 -0600
> > From: "David Richards" <d_m_richards@xxxxxxxxxxx>
> > Subject: [Ethereal-dev] config.nmake problem
> > To: "Ethereal" <ethereal-dev@xxxxxxxxxxxx>
> > 
> > Section from config.nmake...
> > 
> > !IF "$(GTK_VERSION)" == "1.3"
> > ********   !IF "$(GLIB_VERSION)" == "1.3"
> > # GTK+ 1.3 with GLib 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)
> > ********   !ELSE
> > # GTK+ 1.3 with GLib 2.0
> > ********   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)
> > ********   !ENDIF
> > !ELSE
> > # GTK+ 2.x (with GLib 2.x)
> > GTK_CFLAGS=$(GLIB_CFLAGS) /I$(GTK_DIR)\include\gtk-$(GTK_VERSION) \
> >  /I$(GTK_DIR)\lib\gtk-$(GTK_VERSION)\include \
> >  /I$(GTK_DIR)\include\atk-1.0 \
> >  /I$(GTK_DIR)\include\pango-1.0
> > GTK_LIBS=$(GTK_DIR)\lib\gtk-win32-$(GTK_VERSION).lib \
> >  $(GTK_DIR)\lib\gdk-win32-$(GTK_VERSION).lib \
> >  $(GTK_DIR)\lib\pango-1.0.lib \
> >  $(GLIB_LIBS)
> > !ENDIF
> > 
> > 
> > Dave Richards
> > 
> > 
> > 
> 
> Hi List!
> 
> I had the same problem, and solved it by simply deleting the marked lines,
> too. 
> 
> IMHO there is no reason, why there should be a different configuration of
> the GTK1.3 things, when switching between GLib1.3 and 2.0.
> 
> With the changes above, I can use GTK1.3 or 2.0 without any problems :-)
> 

The source tree of GTK 1.3 changed. If you just upgrade to Glib 2.x and
don't update the GTK 1.3 tree, you will have to change config.nmake as you
suggested. However the current config.nmake will work, if you use a newer GTK 1.3
version (see http://www.gimp.org/~tml/gimp/win32/downloads.html ).

Best regards,

Lars Roland