Wireshark-dev: Re: [Wireshark-dev] Building on Windows

From: Richard Sharpe <realrichardsharpe@xxxxxxxxx>
Date: Wed, 13 Nov 2019 11:26:34 -0800
On Wed, Nov 13, 2019 at 10:56 AM Graham Bloice
<graham.bloice@xxxxxxxxxxxxx> wrote:
>
> On Wed, 13 Nov 2019 at 17:36, Richard Sharpe <realrichardsharpe@xxxxxxxxx> wrote:
>>
>> On Wed, Nov 13, 2019 at 9:30 AM Graham Bloice
>> <graham.bloice@xxxxxxxxxxxxx> wrote:
>> > Normally (as in the half dozen or so systems I have checked on) you would have:
>> >
>> > 07/10/2019  10:18                13 Microsoft.VCRedistVersion.default.txt
>> > 07/10/2019  10:18               401 Microsoft.VCToolsVersion.default.props
>> > 07/10/2019  10:18                13 Microsoft.VCToolsVersion.default.txt
>> > 07/10/2019  10:18               401 Microsoft.VCToolsVersion.v142.default.props
>> > 07/10/2019  10:18                13 Microsoft.VCToolsVersion.v142.default.txt
>> > 13/11/2019  15:18                39 vcvars32.bat
>> > 13/11/2019  15:18                39 vcvars64.bat
>> > 07/10/2019  10:18             9,859 vcvarsall.bat
>> > 13/11/2019  15:18                43 vcvarsamd64_x86.bat
>> > 13/11/2019  15:18                43 vcvarsx86_amd64.bat
>> >
>> > Where the vcvarsall.bat batch file is the main file for setting up the toolchain and the smaller ones just call that with the appropriate parameter for Native x86 or x64 or cross compilation.
>>
>> Looks exactly the same:
>>
>> A00187+Richard.Sharpe@A00187 /cygdrive/c/Program Files (x86)/Microsoft
>> Visual Studio/2019/Community
>> $ ls -al VC/Auxiliary/Build/
>> total 25
>> drwxrwx---+ 1 Administrators A00187+None    0 Nov 13 07:25 .
>> drwxrwx---+ 1 Administrators A00187+None    0 Nov 13 07:25 ..
>> -rwxr-x---+ 1 Administrators A00187+None   13 Nov 13 07:19
>> Microsoft.VCRedistVersion.default.txt
>> -rwxr-x---+ 1 Administrators A00187+None  401 Nov 13 07:19
>> Microsoft.VCToolsVersion.default.props
>> -rwxr-x---+ 1 Administrators A00187+None   13 Nov 13 07:19
>> Microsoft.VCToolsVersion.default.txt
>> -rwxr-x---+ 1 Administrators A00187+None  401 Nov 13 07:19
>> Microsoft.VCToolsVersion.v142.default.props
>> -rwxr-x---+ 1 Administrators A00187+None   13 Nov 13 07:19
>> Microsoft.VCToolsVersion.v142.default.txt
>> -rwxr-x---+ 1 Administrators A00187+None   39 Nov 13 07:19 vcvars32.bat
>> -rwxr-x---+ 1 Administrators A00187+None   39 Nov 13 07:19 vcvars64.bat
>> -rwxr-x---+ 1 Administrators A00187+None 9859 Nov 13 07:19 vcvarsall.bat
>> -rwxr-x---+ 1 Administrators A00187+None   43 Nov 13 07:19 vcvarsamd64_x86.bat
>> -rwxr-x---+ 1 Administrators A00187+None   43 Nov 13 07:19 vcvarsx86_amd64.bat
>>
>
> So that's good.  Not sure why you don't then have the Start menu option for "x64 Native Tools Command Prompt for VS 2019".  You can make one manually in a regular Cmd prompt by calling the vcvars64.bat file from the above directory.

I will give that a try later and see if things match up.

> I would suggest not using Cygwin when doing this, it has been the source of lots of weird issues in the past.  In fact, I highly recommend that you keep Cygwin and Wireshark development on separate machines.

I only have one Dev laptop unfortunately, although I have some VMs I could use.

-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)(传说杜康是酒的发明者)