Wireshark-dev: Re: [Wireshark-dev] Building Wireshark in Windows
From: "Alexander Papakhristos" <papakhr@xxxxxxxxx>
Date: Wed, 6 Mar 2013 08:45:12 +0400

Yes. I think it was some kind of SDK/SP1 installation problems. I performed all steps using another Windows PC and compiled sources without any problem. Anyway, thanks for help.

 

Best regards,

    Alexander Papakhristos,

    IT & Product development

    E-mail: papakhr@xxxxxxxxx

    FSUE Morsviazsputnik

 

From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Graham Bloice
Sent: Tuesday, March 05, 2013 7:34 PM
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] Building Wireshark in Windows

 

On 5 March 2013 15:25, Alexander Papakhristos <papakhr@xxxxxxxxx> wrote:

Thanks, it worked. Now I have a problem doing “nmake –f Makefile.nmake distclean” operation:

 

>>> 

C:\wireshark\trunk>nmake -f Makefile.nmake distclean

 

Microsoft (R) Program Maintenance Utility Version 10.00.40219.01

Copyright (C) Microsoft Corporation.  All rights reserved.

 

        rm -f capture-wpcap.obj capture_wpcap_packet.obj                 capture

-pcap-util.obj   cfile.obj                       clopts_common.obj

disabled_protos.obj     frame_data_sequence.obj         packet-range.obj

         print.obj                       ps.obj                  sync_pipe_write

.obj     timestats.obj           tap-megaco-common.obj   tap-rtp-common.obj

version_info.obj        capture_ifinfo.obj      capture_sync.obj

capture_ui_utils.obj  airpcap_loader.obj  capture.obj   capture_info.obj

capture_opts.obj  color_filters.obj     file.obj        fileset.obj     filters

.obj     g711.obj  merge.obj     proto_hier_stats.obj    recent.obj      summary

.obj     tempfile.obj    u3.obj capture-wpcap.obj capture_wpcap_packet.obj

         capture-pcap-util.obj   cfile.obj                       clopts_common.o

bj               disabled_protos.obj     frame_data_sequence.obj         packet-

range.obj                print.obj                       ps.obj

sync_pipe_write.obj     timestats.obj           tap-megaco-common.obj   tap-rtp

-common.obj      version_info.obj        capture_ifinfo.obj      capture_sync.ob

j                capture_ui_utils.obj  capture_opts.obj          tempfile.obj

         tshark.obj capture-wpcap.obj capture_wpcap_packet.obj  capture_opts.obj

  capture-pcap-util.obj  capture_stop_conditions.obj     clopts_common.obj

conditions.obj  dumpcap.obj     pcapio.obj      ringbuffer.obj  sync_pipe_write

.obj     tempfile.obj    version_info.obj capture-wpcap.obj capture_wpcap_packet

.obj             capture-pcap-util.obj   cfile.obj                       clopts_

common.obj               disabled_protos.obj     frame_data_sequence.obj

packet-range.obj                print.obj                       ps.obj

         sync_pipe_write.obj     timestats.obj           tap-megaco-common.obj

tap-rtp-common.obj      version_info.obj        rawshark.obj  wireshark.exe tsh

ark.exe rawshark.exe  capinfos.exe editcap.exe mergecap.exe text2pcap.exe randpk

t.exe dumpcap.exe *.pdb *.sbr *.exe.manifest  capinfos.obj editcap.obj mergecap.

obj text2pcap.obj  nio-ie5.obj update.obj  text2pcap-scanner.obj text2pcap-scann

er.c rdps.obj  rdps.pdb rdps.exe rdps.ilk config.h ps.c _libs_check_  dftest.obj

dftest.exe randpkt.obj randpkt.ext  doxygen.cfg  image\wireshark.res image\libw

ireshark.res image\tshark.res  image\capinfos.res image\editcap.res image\mergec

ap.res  image\text2pcap.res image\wiretap.res image\dumpcap.res  image\rawshark.

res image\libwsutil.res libwireshark.dll wiretap-1.8.0.dll  libwsutil.dll  wires

hark.bsc

cygwin warning:

  MS-DOS style path detected: /cygdrive/c/wireshark/trunk/image\wireshark.res

  Preferred POSIX equivalent is: /cygdrive/c/wireshark/trunk/image/wireshark.res

 

  CYGWIN environment variable option "nodosfilewarning" turns off this warning.

  Consult the user's guide for more details about POSIX paths:

    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames

        rm -rf wireshark-gtk2

        rm -f C:\wireshark\libs\zlib125\zlib1.dll C:\wireshark\libs\zlib125\zlib

1.dll.manifest  C:\wireshark\libs\zlib125\include\zlib.h C:\wireshark\libs\zlib1

25\include\zconf.h  C:\wireshark\libs\zlib125\lib\zdll.lib

cygwin warning:

  MS-DOS style path detected: C:\wireshark\libs\zlib125\zlib1.dll

  Preferred POSIX equivalent is: /cygdrive/c/wireshark/libs/zlib125/zlib1.dll

  CYGWIN environment variable option "nodosfilewarning" turns off this warning.

  Consult the user's guide for more details about POSIX paths:

    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames

        rm -f config.h ps.c svnversion.h wireshark-pdb*.zip

        cd wiretap

        "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\nmake.exe" /

                   -f Makefile.nmake distclean

 

Microsoft (R) Program Maintenance Utility Version 10.00.40219.01

Copyright (C) Microsoft Corporation.  All rights reserved.

 

Makefile.nmake(6) : fatal error U1052: file 'win32.mak' not found

Stop.

NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0

\VC\bin\nmake.exe"' : return code '0x2'

Stop.

 

I found that file - C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\Win32.Mak and tried to put in wireshark sources folder but it didn’t work.

 

 

Are you absolutely sure you've set your cmd environment correctly (http://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html#ChSetupPrepareCommandCom)?

 

nmake should automagically find win32.mak