Wireshark-dev: Re: [Wireshark-dev] Build Wireshark
From: "cheer_zeng"<cheer_zeng@xxxxxxx>
Date: Tue, 4 Dec 2012 21:53:29 +0800
Hi ,Pascal
 
thank you firstly.
 
I modify the WIRESHARK_TARGET_PLATFORM  again ,it did work ,but there is another error as follows,what should i need to do this time?
 
Thanks!
 
***************************************************************************
packet-ipmi-chassis.c
packet-ipmi-picmg.c
packet-ipmi-se.c
packet-ipmi-storage.c
packet-ipmi-transport.c
packet-ipmi-pps.c
packet-ipmi-update.c
packet-dcerpc-nt.c
usb.c
usb.c(5301) : error C2220: warning treated as error - no 'object' file generated
 
usb.c(5301) : warning C4819: The file contains a character that cannot be repres
ented in the current code page (936). Save the file in Unicode format to prevent
 data loss
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\Bin\amd64\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\Bin\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\Bin\amd64\nmake.exe"' : return code '0x2'
Stop.
 
C:\wireshark>
************************************************************************************
 
 
------------------------------ 
 
Message: 4 
Date: Mon, 3 Dec 2012 16:03:06 +0100 
From: Pascal Quantin <pascal.quantin@xxxxxxxxx> 
To: Developer support list for Wireshark <wireshark-dev@xxxxxxxxxxxxx> 
Subject: Re: [Wireshark-dev] Build Wireshark 
Message-ID: 
    <CAGka-82d1UMGPNaXQvHar9f7F_m1=56pPOeEknjT-fyC5Ee6ug@xxxxxxxxxxxxxx> 
Content-Type: text/plain; charset="iso-8859-1" 
 
2012/12/3 cheer_zeng <cheer_zeng@xxxxxxx> 
 
> ** 
> Hello 
> My system is 64-bit win7 ,and I follow the "wireshark develop guide 
> ---Win32 :Step-by-step" ( 
> http://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html) to set 
> up the environment .But I fail at the 2.2.10 Build Wireshark ,after i call " 
> *nmake -f Makefile.nmake all*" ,comes the error message : 
> *        **link -nologo -debug -incremental:no -opt:ref 
> -def:win32/zlib.def -dll -i 
> mplib:zdll.lib  -out:zlib1.dll -base:0x5A4C0000 adler32.obj compress.obj 
> crc32.o 
> bj deflate.obj gzclose.obj gzlib.obj gzread.obj  gzwrite.obj infback.obj 
> inflate 
> .obj inftrees.obj trees.obj uncompr.obj zutil.obj inffas32.obj 
> match686.obj zlib 
> 1.res 
> inffas32.obj : fatal error LNK1112: module machine type 'X86' conflicts 
> with tar 
> get machine type 'x64' 
> NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual 
> Studio 10.0 
> \VC\Bin\amd64\link.EXE"' : return code '0x458' 
> Stop. 
> NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual 
> Studio 10.0 
> \VC\Bin\amd64\nmake.exe"' : return code '0x2' 
> Stop.* 
> ** 
> I use "setenv /Release /x64 /win7" in the windows SDK 7.1 Command Prompt 
> to set environment variables for Visual C++ 2010 Express Edition,as i 
> don;t have vcvars64.bat  in the amd64 directory descript in vcvarsall.dll 
> Then what should i do to correct the error? 
> as i am not new to this,so hope you all can help me. 
> Thank you !! 
 
Hi, 
 
if you want to build a 64 bits Wirehshark, you must also change 
WIRESHARK_TARGET_PLATFORM from win32 to win64 (either by setting an 
environment variable or by editing config.nmake file). 
Then you must do nmake -f Makefile.nmake setup once to download the win64 
packages (you probably downloaded the 32 bits packages). 
 
Regards, 
Pascal.