Ethereal-dev: RE: [Ethereal-dev] GTK+ 2.2.3 Ethereal 0.9.15

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

From: "Greg Morris" <gmorris@xxxxxxxxxx>
Date: Thu, 18 Sep 2003 08:26:12 -0600
Title: Message
The reason for the font error is because you are going from GTK+1.3 to GTK+2.x. The font specified in your preference files is not recognized by pango so the error message is displayed when it tries to read and load the font. By defining a new GTK+ 2.x font you elliminate the problem.
 
Greg

>>> Biot Olivier <Olivier.Biot@xxxxxxxxxxx> 9/18/2003 7:57:17 AM >>>
The same applies for me (GTK . 2.2.1 on cygwin).
I've manually set the Ethereal font to an available non-proportional font, and this way those nasty GTK messages disappeared.
 
Regards,
 
Olivier
-----Original Message----  
From: Giles Scott
Subject: RE: [Ethereal-dev] GTK+ 2.2.3 Ethereal 0.9.15

Hi,
 
Many thanks for your help.
 
With gtk+ 2.2.4  the issue with Ethereal's menu's appearing on the wrong monitor on WinXP is resolved.
 
The only issue I have with this is that I get loads of error messages as follows;
 
Couldn't load font "-*-lucida console-medium-r-*-*-*-100-*-*-*-*-*-* 10" falling back to "Sans 10"
I changed the default font to Sans 10 and its gone away.
 
The only additional file I had to download was;
 
for intl.dll
 
Cheers
 
Giles Scott
 
 
-----Original Message-----
From: Greg Morris [mailto:gmorris@xxxxxxxxxx]
Sent: Tuesday, September 16, 2003 3:36 PM
To: ethereal-dev@xxxxxxxxxxxx; Scott, Giles [HAL02:466K:EXCH]
Subject: Re: [Ethereal-dev] GTK+ 2.2.3 Ethereal 0.9.15

Yes,
 
I built last night with GTK+-2.2.4 and Glib 2.2.1 on Windows 2000 with MSVC++ 6. Here is what I had to do...
 
First of all you must download all the dependency files from the gimp website...
 
 
This would include
gtk+-2.2.4.zip - Runtime libraries
gtk+-dev-2.2.4.zip - Required for compiling Ethereal
atk-1.2.4.zip - Runtime libraries
pango-1.2.5.zip - Runtime libraries
atk-dev-1.2.4.zip - Required for compiling Ethereal
pango-dev-1.1.5.zip - Required for compiling Ethereal
 
I did download the fontconfig and expat but I don't really think these are necessary.
 
I then extracted each of these to the \ethereal-win32-libs directory of my hard drive.
 
Now I wanted to use the config.nmake file as is from CVS so I had to make the following directory structure in the \ethereal-win32-libs directory
 
gtk+-dev-2.2.4.zip extacted to \ethereal-win32-libs\gtk+
glib-2.2.1.zip extracted to \ethereal-win32-libs\glib
 
Make sure that the extracted directory is the base directory not the replicated zip name... For example
\ethereal-win32-libs\pango-dev-1.2.5\ NOT \ethereal-win32-libs\pango-dev-1.2.5\pango-dev-1.2.5\
 
Several of the developer packs I had to fix this way. Attached is a directory listing of my ethereal-win32-libs directory
 
I ran in to several other issues because my environment variables. Specifically the include variable still had paths for the older 1.3 libraries. I had to edit my environment to fix the paths for the correct libraries. Really the only ones that need to be specified are the atk and pango.
 
Include variable
c:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE;c:\Program Files\Microsoft Visual Studio\VC98\mfc\INCLUDE;c:\Program Files\Microsoft Visual Studio\VC98\INCLUDE;c:\cygwin\usr\include;c:\ethereal-win32-libs\pango-dev-1.2.5\include\pango-1.0;c:\ethereal-win32-libs\atk-dev-1.2.4\include\atk-1.0
 
Lib variable
C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib;C:\Program Files\Microsoft Visual Studio\VC98\lib
 
I was finally able to build Ethereal.exe successfully but it would not execute due to required dll's.
 
I needed to copy the following files from the bin directory of the runtime libraries to the \program files\ethereal directory.
 
libatk-1.0-0.dll
libpangowin32-1.0-0.dll
intl.dll
libpango-1.0-0.dll
libpangoft2-1.0-0.dll
libgdk_pixbuf-2.0-0.dll
libgdk-win32-2.0-0.dll
libgtk-win32-2.0-0.dll
 
After copying over the correct dll's from the GTK+/Pango runtime libraries to the \program files\ethereal directory I kept getting an exception in libgtk-win32-2.0-0.dll.
 
After a little more investigation I noticed that a DOS window would open when I executed Ethereal.exe. Pango and GTK could not find their runtime libraries. I had to copy over the lib and etc directories from the runtime libraries to the \program files\ethereal directory.
 
Now everything works. GTK+ 2.x looks pretty cool... Only thing I don't like on Windows with GTK 2.x is that you can no longer resize the summary columns. Also you do not get the lines in the decode panel (but I can live with this).
 
Greg


>>> "Giles Scott" <gscott2@xxxxxxxxxxxxxxxxxx> 9/15/2003 2:37:02 PM >>>

Quick question, has anyone got Ethereal to compile with the above for Win32 using MSVC++ 6

I get all sorts of nasty compile messages :-(

Cheers

Giles