Got this when building Wireshark: On AMD64 machine. Any resolution to that that does not involve modification to the cmake file?asked 02 Oct '16, 10:51 neuralsea edited 02 Oct '16, 11:54 Jaap ♦ |
One Answer:
As per the Developers Guide Section 2.2.10 you must create an environment variable indicating your target platform:
That means choose win32 or win64 as appropriate, not the whole string. answered 02 Oct '16, 12:37 grahamb ♦ [Your answer has been converted to a comment as that's how this site works. Please read the FAQ for more information.] Thank you grahamb. This did not resolve the issue. See console output below:
(02 Oct ‘16, 13:06) neuralsea CMakeList.txt actually says it’s the environment variable PLATFORM that has to be set in this case, not WIRESHARK_TARGET_PLATFORM. Simply reading CMakeList.txt should make it obvious what’s needed (although not the why) (02 Oct ‘16, 14:05) Jaap ♦ Thank you Jaap. CMake variables refer to x86 CXX path. Also: //Name of generator platform. CMAKE_GENERATOR_PLATFORM:INTERNAL= //Name of generator toolset. CMAKE_GENERATOR_TOOLSET:INTERNAL= Thank you again. (02 Oct ‘16, 16:05) neuralsea
Please read and follow the section of the Developers Guide I noted above, 2.2.10 to correctly set up your build environment. You might also note that support for VS2015 is currently experimental, the “official” compiler to use, as per the Developers Guide, is VS2013, although there have been reports of success with VS2015. (03 Oct ‘16, 02:52) grahamb ♦ Good point Graham. @neuralsea: Are you using VS2015 ? (03 Oct ‘16, 05:28) Jaap ♦ VS2015 should not be a problem as such, I’m using it every day to build Wireshark(64bits)… (03 Oct ‘16, 06:33) Anders ♦ Yes I am using VS 2015 (04 Oct ‘16, 11:34) neuralsea I pointed out the use of VS2015 more as an example of a deviation from the instructions in the Developers Guide, not as the particular issue in play here, which I believe is a deviation from the instructions in that the OP hasn’t opened a Visual Studio command prompt as per section 2.2.10 which will set the PLATFORM env. var. (05 Oct ‘16, 03:26) grahamb ♦ showing 5 of 8 show 3 more comments |
You left out the last part of the error message. Please provide that as well.