Building version 4 fails.

• Sep 24, 2023 - 01:04

While I once was able to build version 2, I have issues building version 4.
I'm pretty sure I followed all the steps as described in the instructions for building version 4 for Windows with Visual Studio 2019, standard build.
With all files and dependencies in place, it's my understanding from reading the instructions that all I have to do (to get started with building VS solution and project files) is to open the MuseScore checkout folder in VS2017.
When I do that, CMAKE indeed starts, but I almost immediately get errors:
"CMake Error: Could not create named generator Visual Studio 17 2022 Win64"
see also below.

Why is it mentioning VS versions other than 2019? The instructions don't mention anything about configuring anything. And it seems to want to build for a lot of different systems (Borland???).

Did I miss a configuration step somewhere?

Any help is greatly appreciated!

=====================================================================
Severity Code Description Project File Line Suppression State
Error CMake Error: Could not create named generator Visual Studio 17 2022 Win64

Generators
* Visual Studio 16 2019 = Generates Visual Studio 2019 project files.
Use -A option to specify architecture.
Visual Studio 15 2017 [arch] = Generates Visual Studio 2017 project files.
Optional [arch] can be "Win64" or "ARM".
Visual Studio 14 2015 [arch] = Generates Visual Studio 2015 project files.
Optional [arch] can be "Win64" or "ARM".
Visual Studio 12 2013 [arch] = Generates Visual Studio 2013 project files.
Optional [arch] can be "Win64" or "ARM".
Visual Studio 11 2012 [arch] = Generates Visual Studio 2012 project files.
Optional [arch] can be "Win64" or "ARM".
Visual Studio 10 2010 [arch] = Generates Visual Studio 2010 project files.
Optional [arch] can be "Win64" or "IA64".
Visual Studio 9 2008 [arch] = Generates Visual Studio 2008 project files.
Optional [arch] can be "Win64" or "IA64".
Borland Makefiles = Generates Borland makefiles.
NMake Makefiles = Generates NMake makefiles.
NMake Makefiles JOM = Generates JOM makefiles.
MSYS Makefiles = Generates MSYS makefiles.
MinGW Makefiles = Generates a make file for use with
mingw32-make.
Green Hills MULTI = Generates Green Hills MULTI files
(experimental, work-in-progress).
Unix Makefiles = Generates standard UNIX makefiles.
Ninja = Generates build.ninja files.
Ninja Multi-Config = Generates build-.ninja files.
Watcom WMake = Generates Watcom WMake makefiles.
CodeBlocks - MinGW Makefiles = Generates CodeBlocks project files.
CodeBlocks - NMake Makefiles = Generates CodeBlocks project files.
CodeBlocks - NMake Makefiles JOM
= Generates CodeBlocks project files.
CodeBlocks - Ninja = Generates CodeBlocks project files.
CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.
CodeLite - MinGW Makefiles = Generates CodeLite project files.
CodeLite - NMake Makefiles = Generates CodeLite project files.
CodeLite - Ninja = Generates CodeLite project files.
CodeLite - Unix Makefiles = Generates CodeLite project files.
Eclipse CDT4 - NMake Makefiles
= Generates Eclipse CDT 4.0 project files.
Eclipse CDT4 - MinGW Makefiles
= Generates Eclipse CDT 4.0 project files.
Eclipse CDT4 - Ninja = Generates Eclipse CDT 4.0 project files.
Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 project files.
Kate - MinGW Makefiles = Generates Kate project files.
Kate - NMake Makefiles = Generates Kate project files.
Kate - Ninja = Generates Kate project files.
Kate - Unix Makefiles = Generates Kate project files.
Sublime Text 2 - MinGW Makefiles
= Generates Sublime Text 2 project files.
Sublime Text 2 - NMake Makefiles
= Generates Sublime Text 2 project files.
Sublime Text 2 - Ninja = Generates Sublime Text 2 project files.
Sublime Text 2 - Unix Makefiles
= Generates Sublime Text 2 project files.

'C:\WINDOWS\system32\cmd.exe' '/c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe" -G "Visual Studio 17 2022 Win64" -DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo" -DCMAKE_INSTALL_PREFIX:PATH="D:\MS\MuseScore\msvc.install_x64" -DCMAKE_BUILD_TYPE:STRING="RELWITHDEBINFO" -DMUE_COMPILE_BUILD_64:STRING="ON" -DCMAKE_PREFIX_PATH:STRING="C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\dotnet\;D:\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Git\cmd;C:\Users\Paul\AppData\Local\Programs\Python\Python311\Scripts\;C:\Users\Paul\AppData\Local\Programs\Python\Python311\;C:\Users\Paul\AppData\Local\Microsoft\WindowsApps;C:\Users\Paul\AppData\Local\GitHubDesktop\bin;C:\Users\Paul.dotnet\tools;D:\Qt\5.15.2\msvc2019_64\bin;D:\MS\MuseScore\dependencies" -DCMAKE_LIBRARY_PATH:STRING="D:\MS\MuseScore\dependencies\libx64" -Wno-deprecated "D:\MS\MuseScore" 2>&1"' execution failed with error: ''C:\WINDOWS\system32\cmd.exe' '/c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe" -G "Visual Studio 17 2022 Win64" -DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo" -DCMAKE_INSTALL_PREFIX:PATH="D:\MS\MuseScore\msvc.install_x64" -DCMAKE_BUILD_TYPE:STRING="RELWITHDEBINFO" -DMUE_COMPILE_BUILD_64:STRING="ON" -DCMAKE_PREFIX_PATH:STRING="C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\dotnet\;D:\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Git\cmd;C:\Users\Paul\AppData\Local\Programs\Python\Python311\Scripts\;C:\Users\Paul\AppData\Local\Programs\Python\Python311\;C:\Users\Paul\AppData\Local\Microsoft\WindowsApps;C:\Users\Paul\AppData\Local\GitHubDesktop\bin;C:\Users\Paul.dotnet\tools;D:\Qt\5.15.2\msvc2019_64\bin;D:\MS\MuseScore\dependencies" -DCMAKE_LIBRARY_PATH:STRING="D:\MS\MuseScore\dependencies\libx64" -Wno-deprecated "D:\MS\MuseScore" 2>&1"' returned with exit code: 1'. D:\MS\MuseScore\'C
Error (active) Variable CMAKE_BUILD_TYPE is defined multiple times. D:\MS\MuseScore\CMakeSettings.json 14

Do you still have an unanswered question? Please log in first to post your question.