Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to fix Cmake The PLATFORM environment variable (x64) doesn't match the generator platform (win32)

Building in Windows Sandbox with choco install -y winflexbison3 cmake activeperl python3 asciidoctorj xsltproc docbook-bundle visualstudio2019community visualstudio2019-workload-nativedesktop Command prompt is titled "Administator: x64 Native Tools Command Prompt for VS 2019" and opens claiming to be "Visual Studio 2019 Developer Command Prompt v16.6.5" WIRESHARK_BASE_DIR and QT_BASE_DIR are set

cmake -G "Visual Studio 16 2019" -A x64 ..\wireshark-3.2.5

quits with:

CMake Error at CMakeLists.txt:91 (message): The PLATFORM environment variable (x64) doesn't match the generator platform (win32)

Also set WIRESHARK_TARGET_PLATFORM=win64 does not fix this. Any ideas how to persuade this to work?

Set reports: Platform=x64 PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel

How to fix Cmake The PLATFORM environment variable (x64) doesn't match the generator platform (win32)

Building in Windows Sandbox with with

choco install -y winflexbison3 cmake activeperl python3 asciidoctorj xsltproc docbook-bundle visualstudio2019community visualstudio2019-workload-nativedesktop

Command prompt is titled "Administator: x64 Native Tools Command Prompt for VS 2019" and opens claiming to be "Visual Studio 2019 Developer Command Prompt v16.6.5" v16.6.5".

WIRESHARK_BASE_DIR and QT_BASE_DIR are set

cmake -G "Visual Studio 16 2019" -A x64 ..\wireshark-3.2.5

..\wireshark-3.2.5

quits with:

CMake Error at CMakeLists.txt:91 (message):
  The PLATFORM environment variable (x64) doesn't match the generator
  platform (win32)

(win32)

Also set WIRESHARK_TARGET_PLATFORM=win64 does not fix this. Any ideas how to persuade this to work?

Set reports: reports:

Platform=x64
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel

GenuineIntel

How to fix Cmake The PLATFORM environment variable (x64) doesn't match the generator platform (win32)

Building in Windows Sandbox with

choco install -y winflexbison3 cmake activeperl python3 asciidoctorj xsltproc docbook-bundle visualstudio2019community visualstudio2019-workload-nativedesktop

Command prompt is titled "Administator: x64 Native Tools Command Prompt for VS 2019" and opens claiming to be "Visual Studio 2019 Developer Command Prompt v16.6.5".

WIRESHARK_BASE_DIR and QT_BASE_DIR QT5_BASE_DIR are set

cmake -G "Visual Studio 16 2019" -A x64 ..\wireshark-3.2.5

quits with:

CMake Error at CMakeLists.txt:91 (message):
  The PLATFORM environment variable (x64) doesn't match the generator
  platform (win32)

Also set WIRESHARK_TARGET_PLATFORM=win64 does not fix this. Any ideas how to persuade this to work?

Set reports:

Platform=x64
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel