Wireshark mailing list archives

Re: Building with VStudio 2019 not possible


From: Graham Bloice <graham.bloice () trihedral com>
Date: Wed, 21 Aug 2019 13:05:37 +0100

Have you run vcvars64.bat, that's still required? After that, you should
have an env var "Platform" with a value of x64.

On Wed, 21 Aug 2019 at 12:43, Anders Broman <anders.broman () ericsson com>
wrote:

I have been thinking of dropping the external requirement for CMake and
using the one that comes with VS.

Sounds reasonable. How do you go about doing that?

I got

1> [CMake] CMake Error at C:\Development\wireshark\CMakeLists.txt:86
(message):

1> [CMake]   The PLATFORM environment variable ([undefined]) doesn't match
the generator

1> [CMake]   platform (win64)



Do I have to do the settings I do in the build shell “globally” now?

Regards

Anders



*From:* Wireshark-dev <wireshark-dev-bounces () wireshark org> *On Behalf Of
*Graham Bloice
*Sent:* den 21 augusti 2019 13:20
*To:* Developer support list for Wireshark <wireshark-dev () wireshark org>
*Subject:* Re: [Wireshark-dev] Building with VStudio 2019 not possible





On Wed, 21 Aug 2019 at 12:14, Roland Knall <rknall () gmail com> wrote:

Switched to cmake 3.15 and it builds. Seems to be, that the chocolatey
version doesn’t work wit VStudio 2019. Should be mentioned on the guide.



I have been thinking of dropping the external requirement for CMake and
using the one that comes with VS.  I've been doing that with VS2017 for a
number of months.







Cheers



Anders Broman <anders.broman () ericsson com> schrieb am Mi. 21. Aug. 2019
um 13:11:

Hi,

Did you clear your build dir before running cmake?

/Anders



*From:* Wireshark-dev <wireshark-dev-bounces () wireshark org> *On Behalf Of
*Roland Knall
*Sent:* den 21 augusti 2019 12:54
*To:* Developer support list for Wireshark <wireshark-dev () wireshark org>
*Subject:* Re: [Wireshark-dev] Building with VStudio 2019 not possible



Yes to both. CMake was installed using chocolatey and is the
version  3.14.19060802-MSVC_2



That's what I am wondering, because I more or less assume that I am doing
something wrong, otherwise somebody else must have run across that issue? I
couldn't find anything on ask about it.



regards

Roland





Anders Broman <anders.broman () ericsson com> schrieb am Mi. 21. Aug. 2019
um 12:37:

Hi,

I build with VStudio 2019(professional) regularly without problems.

Did you run

cmake -G "Visual Studio 16 2019" -A x64 ? What version of cmake do you
have? ( 3.14.1 )

Regards

Anders



*From:* Wireshark-dev <wireshark-dev-bounces () wireshark org> *On Behalf Of
*Roland Knall
*Sent:* den 21 augusti 2019 10:37
*To:* Developer support list for Wireshark <wireshark-dev () wireshark org>
*Subject:* [Wireshark-dev] Building with VStudio 2019 not possible



Hi



Building with the community edition gives you currently:



  cl : Befehlszeile error D8016 : Die Befehlszeilenoptionen /ZI und
/guard:cf sind inkompatibel.

C:\Program Files (x86)\Microsoft Visual
Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429

,5): error MSB6006: "CL.exe" wurde mit dem Code 2 beendet.
[C:\dev\wireshark\build\mmdbresolve.vcxproj]





Seems that the options /ZI /guard:cf do not work with each other. Anyone
experiencing something similar, or am I missing something?



regards

Roland

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org
?subject=unsubscribe

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org
?subject=unsubscribe

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org
?subject=unsubscribe




--

Graham Bloice

Software Developer

Trihedral UK Limited
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org
?subject=unsubscribe



-- 
Graham Bloice
Software Developer
Trihedral UK Limited
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: