Wireshark-dev: Re: [Wireshark-dev] Building wireshark on Win7 gives me the error about win32.ma

From: Richard Sharpe <realrichardsharpe@xxxxxxxxx>
Date: Sat, 31 Jan 2015 14:01:18 -0800
On Sat, Jan 31, 2015 at 1:47 PM, Richard Sharpe
<realrichardsharpe@xxxxxxxxx> wrote:
> On Sat, Jan 31, 2015 at 1:07 PM, Richard Sharpe
> <realrichardsharpe@xxxxxxxxx> wrote:
>> On Sat, Jan 31, 2015 at 12:55 PM, Richard Sharpe
>> <realrichardsharpe@xxxxxxxxx> wrote:
>>> On Sat, Jan 31, 2015 at 12:50 PM, Richard Sharpe
>>> <realrichardsharpe@xxxxxxxxx> wrote:
>>>> On Sat, Jan 31, 2015 at 12:18 PM, Graham Bloice
>>>> <graham.bloice@xxxxxxxxxxxxx> wrote:
>>>>> On 31 January 2015 at 19:27, Richard Sharpe <realrichardsharpe@xxxxxxxxx>
>>>>> wrote:
>>>>>>
>>>>>> Hi folks,
>>>>>>
>>>>>> I am following the steps at this website:
>>>>>>
>>>>>> https://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html
>>>>>>
>>>>>> and I get this error:
>>>>>>
>>>>>> c:\Users\blah-blah\Wireshark>nmake -f Makefile.nmake verify_tools
>>>>>>
>>>>>> Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
>>>>>> Copyright (C) Microsoft Corporation.  All rights reserved.
>>>>>>
>>>>>> Makefile.nmake(8) : fatal error U1052: file 'win32.mak' not found
>>>>>> Stop.
>>>>>>
>>>>>> These appear to be in the environment:
>>>>>>
>>>>>> CYGWIN=nodosfilewarning
>>>>>> QT5_BASE_DIR=C:\Qt\5.4\msvc2013_64_opengl
>>>>>> VisualStudioVersion=12.0
>>>>>> WIRESHARK_BASE_DIR=c:\Users\rjsharpe\Wireshark
>>>>>> WIRESHARK_TARGET_PLATFORM=win64
>>>>>> WIRESHARK_VERSION_EXTRA=-RJS
>>>>>>
>>>>>> What else do I need to do?
>>>>>>
>>>>>>
>>>>>
>>>>> See this thread
>>>>> (https://www.wireshark.org/lists/wireshark-dev/201501/msg00026.html) about
>>>>> windows build instructions.
>>>>>
>>>>> MS has dropped the file from the SDK for 8.x, so you have to copy the file
>>>>> from a 7.x SDK which should have been installed along with VS2013.
>>>>>
>>>>> I seem to have not completed the task of updating the build instructions.
>>>>
>>>> OK, but copy it to where? To the 8.x SDK?
>>>
>>> Copying it to the wireshark directory was enough. Maybe I did this a
>>> year ago and forgot and then when I did a git clean -fxd I blew it
>>> away :-(
>>
>> OK, after copying it to wsutil as well, I now get this:
>>
>> --------------------
>> file_util.obj : fatal error LNK1112: module machine type 'X86' conflicts with ta
>> rget machine type 'x64'
>> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0
>> \VC\BIN\link.EXE"' : return code '0x458'
>> Stop.
>> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0
>> \VC\BIN\nmake.exe"' : return code '0x2'
>> Stop.
>> --------------------------
>>
>> Investigating.
>
> Figured this one out. I had tried running vcvarsall to solve the
> problem earlier and it sets up some defaults for x86 rather than x64
> binaries.

I thought I was doing well until this hit:

----------------------------------------------
Linking Wireshark-gtk.exe
        link @C:\Users\rjsharpe\AppData\Local\Temp\nm5D77.tmp
libgtkui.lib(main.obj) : error LNK2019: unresolved external symbol codec_registe
r_plugin_types referenced in function main
libgtkui.lib(main.obj) : error LNK2019: unresolved external symbol register_all_
codecs referenced in function main
libgtkui.lib(rtp_player.obj) : error LNK2019: unresolved external symbol find_co
dec referenced in function decode_rtp_packet
libgtkui.lib(rtp_player.obj) : error LNK2019: unresolved external symbol codec_i
nit referenced in function decode_rtp_packet
libgtkui.lib(rtp_player.obj) : error LNK2019: unresolved external symbol codec_r
elease referenced in function rtp_decoder_value_destroy
libgtkui.lib(rtp_player.obj) : error LNK2019: unresolved external symbol codec_g
et_channels referenced in function decode_rtp_packet
libgtkui.lib(rtp_player.obj) : error LNK2019: unresolved external symbol codec_g
et_frequency referenced in function decode_rtp_packet
libgtkui.lib(rtp_player.obj) : error LNK2019: unresolved external symbol codec_d
ecode referenced in function decode_rtp_packet
Wireshark-gtk.exe : fatal error LNK1120: 8 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0
\VC\BIN\amd64\link.EXE"' : return code '0x460'
Stop.
-------------------------------------------------

Is there some library missing?

-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)