Hi, I'm trying to build wireshark for first time on a Windows environment. I follow the developer's guide and everything looks OK until step 2.2.12. A this time I have an error i do not understand. I put the description below. Can you help me understand it and solve it ? Thank you
asked 31 Jul ‘17, 09:54 Nicolas2333 edited 31 Jul ‘17, 23:59 Guy Harris ♦♦ |
One Answer:
Hi, I follow your advices and finally find the problem. In fact, i first have installed cmake 3.9 instead of cmake 3.8.2. When i tried to build with cmake 3.9 i had to declare an environment variable named "PLATFORM" in order the cmake command is performed. It is this environment variable that generates the error in my msbuild command. I delete this environment variable and build is successful. Thank you very much for your help! answered 02 Aug '17, 10:39 Nicolas2333 PLATFORM is an env var set by Visual Studio when building for x64. It's not required for CMake although we do sanity check that PLATFORM (if set it will be "x64") agrees with the WIRESHARK_TARGET_PLATFORM variable and the generator specified to CMake. CMake 3.9 is now OK to use with all versions back to 2.0 (02 Aug '17, 12:48) grahamb ♦ |
Can you show the complete CMake and msbuild output by redirecting them to files and posting them, i.e.
and
Can you also show your CMake and msbuild commands
Hi, Here are the two command lines I used :
I still have the same error. I look the Wireshark.sln.metaproj but i do not know the build process enought to find the problem.
Can you help me ?
Here are the cmmake.txt file :
And the build.txt file : Microsoft (R) Build Engine, version 12.0.31101.0 [Microsoft .NET Framework, Version 4.0.30319.42000] Copyright (C) Microsoft Corporation. Tous droits róervó.
I think msbuild is complaining that you’re using an invalid build configuration, but the command line you have looks correct to me.
Are you sure you have setup the command prompt correctly? What does the output of “cl” show?
I would highly recommend that you check the cmake and msbuild stdio output of the buildbot that most closely matches your development system. You can compare environment variables, etc. to see what’s different or what you might have missed.