Build problems - V4.x - MSVC
Reported version
4.x-dev
Type
Development
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
needs info
Regression
No
Workaround
Yes
Project
There are 2 things you have to do to get MuseScore 4.x to run under MSVC in debug mode.
- comment out the following at the bottom of "src/main/cmakelists.txt" -- otherwise the program will not start. If you try to remove "--debug" using properties MSVC will keep adding it back in. Maybe there is a better way to work around this but commenting out these lines seems to work.
if (NOT ${CMAKE_VERSION} VERSION_LESS "3.13.0")
set_target_properties(${EXECUTABLE_NAME} PROPERTIES VS_DEBUGGER_COMMAND_ARGUMENTS "--debug")
endif ()
- The executable (musescore4.exe) is not copied to the install/bin folder after a build. Select the mscore project and add a "post build event" to copy the exe.
It seems to build and run cleanly after 1. and 2. above.
Comments
If the issue is missing documentation/instructions would it not make sense to expand page
https://musescore.org/en/handbook/developers-handbook/compilation/compi…
with the necessary steps?