![]() These problems are now fixed, making it possible to start debugging MuseScore in Visual Studio immediately after building.įinally, in the “CMakeSettings.json” schema file, the “buildCommandArgs” property of the “圆4-RelWithDebInfo” configuration was set to “-v”. Otherwise, any attempt to debug failed with a series of very confusing error messages (e.g., “MuseScore3.exe - Entry Point Not Found: The procedure entry point ? could not be located in the dynamic link library C:\Qt\5.9.9\msvc2017_64\bin\Qt5XmlPatterns.dll.”). Prior to this fix, the developer had to manually apply the above settings each and every time the Visual Studio projects were generated or regenerated by CMake. Set “Debugging” | “Working Directory” to the full path of the location of the built executable installed by the “INSTALL” project. (Note: This setting requires CMake 3.13.0 or later, so it won't work in Visual Studio 2017, which comes with CMake 3.12.x.) Set “Debugging” | “Command Arguments” to “-debug” so that MuseScore is run in debug mode while being debugged. ![]() Set “Debugging” | “Command” to the full path of the built executable installed by the “INSTALL” project. This is now fixed.Īdditionally, the following settings are now applied: (It's possible that this syntax used to work in previous versions of Visual Studio, but it doesn't work in either Visual Studio 2017 or Visual Studio 2019). However, the second setting was applied using incorrect syntax, causing the startup project to end up not getting set at all. The “CMakeLists.txt” CMake configuration file for MuseScore applies the following default settings to generated Microsoft Visual Studio projects:įorce the “install” and “package” targets not to depend on the “all” target. _Fix #303483: CMake creates Microsoft Visual Studio projects with incorrect settings Since MSBuild already shows the command lines by default, the incorrect "-v" setting should simply be removed.įixed in branch master, commit a0a9298ca5 In Ninja, the "-v" option is used to show all command lines while building. Consequently, building inside Visual Studio using the CMake | Build All command fails with the following error message: “error MSB1016: Specify the verbosity level.” ![]() Instead, it specifies the “Visual StuWin64” generator, which uses the Microsoft Build Engine (MSBuild). This is a setting for the Ninja generator, but the schema isn't set up for that generator. Otherwise, any attempt to debug fails with a series of very confusing error messages (e.g., “MuseScore3.exe - Entry Point Not Found: The procedure entry point could not be located in the dynamic link library C:\Qt\5.9.9\msvc2017_64\bin\Qt5XmlPatterns.dll.”).įixing these problems will make it possible to start debugging MuseScore in Visual Studio immediately after building.įinally, in the CMakeSettings.json schema file, the buildCommandArgs property of the 圆4-RelWithDebInfo configuration is set to "-v". Set Debugging | Working Directory to the full path of the location of the built executable installed by the INSTALL project.Ĭurrently, the developer has to manually apply the above settings each and every time the Visual Studio projects are generated or regenerated by CMake. Note: This setting requires CMake 3.13.0 or later, so it won't work in Visual Studio 2017, which comes with CMake 3.12.x. Set Debugging | Command Arguments to -debug so that MuseScore is run in debug mode while being debugged. Set Debugging | Command to the full path of the built executable installed by the INSTALL project. This needs to be fixed.Īdditionally, the following settings should also be applied: ![]() However, the second setting is applied using incorrect syntax, causing the startup project to end up not getting set at all. The CMakeLists.txt CMake configuration file for MuseScore currently applies the following default settings to generated Microsoft Visual Studio projects:įorce the install and package targets not to depend on the all target.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |