Build errors with MuseScore 3.6.2
Hello All,
I am new to MuseScore and this my first post on this forum. I am trying to build MuseScore 3.6.2 from source. I followed the compilation instruction to the tee. The build fails with multiple errors related to two projects in the solution - "inspectorplugin" and "awlplugin." Attached below are the filtered build logs for these two projects. Although the build failed - the Musescore3.exe was created in the build folder and I was able to install it too. The application started without issues. However, when I tried to package the setup file - it failed. Build log is attached also.
I am not very experienced and am unable to diagnose the issue. I would appreciate if anyone can provide a hint or direction to proceed and get a clean build.
Thanks in advance!
Attachment | Size |
---|---|
mscore3_build_log_filtered_awlplugin.txt | 214.91 KB |
mscore3_build_log_filtered_inspectorplugin.txt | 3.52 KB |
mscore3_package_log.txt | 3.11 KB |
Comments
Why would you want to create a setup file for Windows, for MuseScore 3.6.2? Just take the one from https://musescore.org/en/download.
Why would yo want to build 3.6.2 yourself?
I could understand if you'd want to build from the master branch (will become MuseScore 4 one day), or even from the 3.x branch (it is some 73 commits ahead of 3.6.2), but anything else seems pretty pointless?
In reply to Why would you want to create… by Jojo-Schmitz
Hello Jojo. Thanks for the response. Yes, I did initially try to build from the master branch. But there many more build failures/errors. I was initially thinking that its an issue with my build toolchain setup. To confirm that I wanted to make sure that I am able to build a stable release that already has an installer. I wanted to use the build process for 3.6.2 as a learning experience - and eventually get to the master branch when I am able to get a clean build from 3.6.2.
In reply to Hello Jojo. Thanks for the… by svanimisetti
The master branch does build cleanly for me, in Visual Studio 2019, and since quite long.
Not sure about the installer though, but that isn't needed currently anyway.
I'm building the 3.x branch using QtCreator/MinGW though, it's been quite a while that I tried it with Visual Studio.
With such issue you'd best join the developers on the Discord server for MuseScore
In reply to The master branch does build… by Jojo-Schmitz
Thanks for the information Jojo. I will join the discord server. I will attempt both QtCreator/MinGW and VS2019 builds on the master branch again.
In reply to Thanks for the information… by svanimisetti
VS2019 is the official way. It works on GitHub CI and the official builds are done that way
In reply to VS2019 is the official way… by Jojo-Schmitz
Thanks for your help Jojo. I was able to figure out the issue with my toolchain and fixed it. Now I am able to clean build both 3.6.2 and the master branch too. I am also on the Discord channel now.
In reply to Thanks for your help Jojo. I… by svanimisetti
That failure of getting an installer for master due to a missing file might be worth a pull request? It is still quite some time till 4.0 will get released, but why not provide a fix for this now?
In reply to That failure of getting an… by Jojo-Schmitz
Sorry, I'm late.... But I confirm that building Musescore 3.6.5 with Visual Studio 2022 and MSVC 2019 64-bit create errors on awlplugin and inspectorplugin.
I didn't try on a later release. (because I try to develop a plugin on a stable release. I will try later release after).
In reply to Sorry, I'm late.... But I… by bubu93200
There ia in 3.6.5. and it should work with VS2019, as that happens with the artifacts of my PR #9000 an GitHub CI
In reply to There ia in 3.6.5. and it… by Jojo-Schmitz
thanks
In reply to There ia in 3.6.5. and it… by Jojo-Schmitz
sorry, I have another question.
I built musescore with explanations on https://musescore.org/fr/handbook/developers-handbook/compilation/compi…
Ok. It runs. I can launch MuseScore in release or debug mode.
I have a plugin to develop now.
How to do this ? I want to be able to debug it with MuseScore in debug mode (your "plugins creator" is useless because nothing to debug code).
So how to do this ? I create a project "Myplugin" in Visual studio (so I have 28 projects in VS and I have access to all Musescore Modules) but how to link Myplugin with Musescore
There is no explanation about this.
Thanks a lot for your reply.
In reply to sorry, I have another… by bubu93200
Open it in the plugin creator and run it there
In reply to sorry, I have another… by bubu93200
Or place it in the plugin folder and enable it in the plugin manager, then use it.
You'd need to restart MuseScore each time you want t run an updated version of it.
In reply to Or place it in the plugin… by Jojo-Schmitz
but no debug with these solutions ?
I can launch musescore in debug mode. its not possible to launch it with plugin so I can put breackpoints in plugin ?
In reply to but no debug with these… by bubu93200
I don't know, but don't think so