Ethereal-dev: Re: [Ethereal-dev] patches

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

From: Matthijs Melchior <mmelchior@xxxxxxxxx>
Date: Wed, 04 Jun 2003 22:36:34 +0200
Lars.Roland@xxxxxxx wrote:

Hello Matthijs,

I use MSVC6. I can mail my configration as a zip-file to you or anyone else,
who would like to have it.
May be there is some place on the ethereal homepage.
(2.9 MB necessary dlls and files for runtime, 650 kB headers and libs for
compiling)
I will try to generate a makefile, which works with gtk1 and gtk2.
I can provide a nsis script as well.

Well, I am using, as a debug tool, the GtktreeView widgit.  This is
not available in GTK1 and therfor only works on Linux. I have made an
attempt to build this on windows as well.  My attempt has been put on
hold when I discovered the file structure of GTK2 is differen from GTK1,
and I would have to make drastic changes the Makefile.nmake file.
I see no changes to that file, so I presume you have used a different
setup than I was planning to.

Instead of making drastic changes to makefile.nmake, I modified the file
structure of the header files a little bit. You have to copy "glibconfig.h" to the directory with "glib.h" and
"gdkconfig.h" to the directory with "gdk.h".
I moved also some *.lib files, to make the linker find them.

I moved atk headers and lib to gtk-2.0\atk and pango headers and libs to
gtk-2.0\pango
Yes, indeed, these are the kind of changes I do *not* want to make, I want to use the GTK2 and the other archives unmodified! All adjustments to make ethereal
compile with these libraries must be within ethereal's control!  This makes
it possible to just drop in a new gtk release, compile it and expect it to
work!  This is the way it works with GTK1....

........

 pkgconfig-0.14.zip
    I did not need that.

This is optional, but I do want to be able to read compressed capture files...

Can you publish somwhere what the exact setup of your build environment
with respect to the above tools was.  And if building was more involved
than just doing "nmake -f Makefile.nmake", please publish that as well.

In "makefile.nmake" add following libs to ethereal_LIBS :

pango-1.0.lib
gobject-$(GLIB_VERSION).lib

Changes in "config.nmake" :

GTK_VERSION=2.0
GLIB_VERSION=2.0

A lot of new files and subdirectories are necessary to run ethereal with
gtk2 .
I think the ethereal homepage would be a good place for the zip-file.

Regards,
Lars
For the time being, I have more pressing activities, and I hope you will
find the time and inspiration to enhance ethereal such that it can be
compiled an run with unmodified gtk2 support libraries.

Thanks.

--
Regards,
----------------------------------------------------------------  -o)
Matthijs Melchior                                       Maarssen  /\\
mmelchior@xxxxxxxxx                                  Netherlands _\_v
---------------------------------------------------------------- ----