Ethereal-dev: Re: [Ethereal-dev] Compiling on Windows 2000

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

Date: Mon, 19 May 2003 18:44:46 -0500 (CDT)
I finally got it to compile, but now when I try and run ethereal.exe I get
a message stating, "The procedure entry point g_main_context_iteration
could not be located in the dynamic link library glib-1.3.dll."
Is there a way to build the installer? I'm not sure what the line,

MAKENSIS="C:/program files/nsis/makensis.exe"

is refering to in the config.nmake file.


>
> Jaclyn-b-tech wrote:
>
>>I don't have any spaces in the directory... but I did try and put
>>quotes around it but it didn't change anything.
>>
>>When running cleanbld.bat it tells me the following:
>>Could Not Find C:\..\config.h
>>Could Not Find C:\..\epan\config.h
>>Could Not Find C:\..\epan\dfilter\config.h
>>Could Not Find C:\..\text2pcap-scanner.c
>>
>>Then when I compile it tells me for every file that wtap-int.h is
>>included in:
>>wtap-int.h(30) : fatal error C1083: Cannot open include file: 'glib.h':
>>No such file or directory
>>
>>I extracted the source code I downloaded directly from the ethereal
>>site into a directory. I also extracted the source for the libraries
>>(glib, gtk+, net-snmp-5.0.6, wpdpack, zlib) into a directory and
>>correctly listed the path in the config.nmake file.  I have no idea
>>what the problem is, have you compiled it in Windows 2000 before and
>>had problems?
>>
>
> H,
>
> The first times I tried to compile on Windows I had a lot of problems
> due several small things. By doing some experiments, checking on what
> arguments was sent in to the compiler and searching with Google and on
> the Ethereal site I finally succeeded to compile.
>
> Some of the problems I had then have been removed in later versions
> (and documentation has been improved a bit I think).
>
> However there might be some of the things I had problems with that may
> be relevant in your case:
>
> First of all I downloaded some of the stuff from the wrong place,
> instead of from here
> http://www.ethereal.com/distribution/win32/development/
>
> The I think I also made some mistakes with the paths in the
> config.nmake file.
>
> When you look in the directory pointed out by the GLIB_DIR definition,
> is there a lot of files in that directory:
> acconfig.h
> galloca.h
> garray.h
> :
>
> Is there a glib.h file in that directory?
>
> The thing is that when you extract the files from glib-dev-20000805.zip
> it will put the files in a \src\glib\ directory and its subdirectories.
>
> Assuming that you extracted the zip-file into e.g. C:\etherealdev\ then
> the glib.h file will probably be in the directory
> C:\etherealdev\src\glib\  directory (or maybe
> C:\etherealdev\glib-dev-20000805\src\glib) and you should try with GLIB
> defined as: GLIB_DIR=C:\etherealdev\src\glib
> (or GLIB_DIR=C:\etherealdev\glib-dev-20000805\src\glib)
>
> There could be similar issues with the other directories.
>
> If you still have problems then it would be good if you could send the
> complete log, since it would be good to check what arguments are used
> by the compiler.
>
>        cl -DWIN32  -D_WIN32 -D_MT -D_DLL -MD
>        -DHAVE_CONFIG_H/ID:\ethereal src\
> glib /ID:\ethereal src\zlib-1.1.3 -Zi -Fd\ -c
> .\ascend-grammar.c.\ascend-scanne r.c .\ascend.c .\buffer.c .\csids.c
> .\etherpeek.c .\file.c.\file_wrappers.c .\i 4btrace.c .\iptrace.c
> .\lanalyzer.c .\libpcap.c .\netmon.c .\nettl.c.\netxray.c
> .\ngsniffer.c .\radcom.c .\pppdump.c .\snoop.c .\toshiba.c .\wtap.c