Repository not running locally in wsl

• Mar 3, 2025 - 23:37

I try to run the code after building, and it has message: "CMake Error at build.cmake:293 (message):
Run step failed with status 255. See output above for details."


Comments

So you are building MuseScore from the sources on a Windows PC, but in WSL, so a Linux build rather than a Windows build?
Quite unusual and ambitious...
But when running that build, how does cmake come into play?
And what does that output above say?

In reply to by Jojo-Schmitz

Should i try to build in Windows? I thought it wasn't possible...

The output says:
11:32:14.782 | ERROR | main_thread | LanguagesService::setCurrentLanguage | Unsupported language code: "system"
11:32:14.792 | WARN | main_thread | IpcSocket::connect | failed connect to server
11:32:14.793 | WARN | main_thread | IpcSocket::connect | failed connect to server
11:32:14.794 | INFO | main_thread | IpcSocket::connect | success connected to ipc server
11:32:14.794 | INFO | 139660714043072 | IpcServer::listen | id: "b7d1986b22da4f86a9f7dda845bd2c4d"
11:32:14.814 | WARN | main_thread | DiagnosticsModule::onInit | crash handling disabled
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1342:(snd_func_refer) error evaluating name
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM default
11:32:14.920 | ERROR | main_thread | LinuxAudioDriver::open | Unable to open device: default, err code: -2
11:32:14.920 | ERROR | main_thread | AudioModule::setupAudioDriver | audio output open failed
11:32:14.921 | ERROR | main_thread | MuseSamplerLibHandler::MuseSamplerLibHandler | Unable to open MuseSampler library, path: /home/margarida/.local/share/MuseSampler/lib/libMuseSamplerCoreLib.so
11:32:14.921 | ERROR | main_thread | MuseSamplerResolver::doInit | Incompatible MuseSampler library; ignoring
11:32:14.921 | ERROR | main_thread | MuseSamplerLibHandler::MuseSamplerLibHandler | Unable to open MuseSampler library, path: libMuseSamplerCoreLib.so
11:32:14.921 | ERROR | main_thread | MuseSamplerResolver::doInit | Incompatible MuseSampler library; ignoring
ALSA lib seq_hw.c:528:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
ALSA lib seq_hw.c:528:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
11:32:14.924 | INFO | 139660697257664 | AudioEngine::setAudioChannelsCount | Audio channels: 2
11:32:14.924 | INFO | 139660697257664 | AudioEngine::setSampleRate | Sample rate: 44100
11:32:14.924 | INFO | 139660697257664 | AudioEngine::setReadBufferSize | Read buffer size: 1024
11:32:14.924 | WARN | main_thread | Qt | QIODevice::read (QFile, "/home/margarida/.local/share/MuseScore/MuseScore4Development/shortcuts.xml"): device not open
11:32:14.925 | WARN | main_thread | Qt | QIODevice::read (QFile, "/home/margarida/.local/share/MuseScore/MuseScore4Development/midi_mappings.xml"): device not open
11:32:14.940 | ERROR | main_thread | ToursService::initTours | failed read file: :/resources/tours.json, err: [406] An error occurred when reading from the file
11:32:14.953 | WARN | main_thread | AbstractCloudService::readTokens | Could not find the tokens file: /home/margarida/.local/share/MuseScore/MuseScore4Development/musescorecom_cred.dat
11:32:14.953 | WARN | main_thread | AbstractCloudService::readTokens | Could not find the tokens file: /home/margarida/.local/share/MuseScore/MuseScore4Development/audiocom_cred.dat
ALSA lib seq_hw.c:528:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
ALSA lib seq_hw.c:528:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
ALSA lib seq_hw.c:528:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
ALSA lib seq_hw.c:528:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
11:32:15.676 | INFO | main_thread | GuiApp::perform | Using graphics api: "opengl"
11:32:15.682 | INFO | main_thread | GuiApp::perform | Detecting problems with graphics api
11:32:15.704 | WARN | main_thread | Qt | QQmlApplicationEngine failed to load component
11:32:15.704 | ERROR | main_thread | GuiApp::perform | error: qrc:/qml/platform/linux/Main.qml: module "QtQml.WorkerScript" is not installed

11:32:15.704 | WARN | main_thread | Qt | qrc:/qml/platform/linux/Main.qml: module "QtQml.WorkerScript" is not installed
11:32:15.704 | WARN | main_thread | Qt | QObject::connect(QQuickWindow, QApplication): invalid nullptr parameter
11:32:15.704 | INFO | main_thread | AudioOutputDeviceController::init | Available output devices changed, checking connection...
ALSA lib seq_hw.c:528:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
ALSA lib seq_hw.c:528:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
ALSA lib seq_hw.c:528:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
ALSA lib seq_hw.c:528:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
11:32:15.710 | ERROR | main_thread | GuiApp::perform | failed Qml load

11:32:15.722 | INFO | main_thread | Profiler |

Main thread. Top 150 by sum time (total count: 26)
Function Call time Call count Sum time
SoundFontRepository::loadSoundFonts 74.856 ms 1 74.856 ms
InstrumentsRepository::load 49.740 ms 1 49.740 ms
ShortcutsRegister::reload 3.335 ms 1 3.335 ms
ShortcutsRegister::readFromFile 1.254 ms 2 2.508 ms
InstrumentsRepository::loadStringTuningsPresets 1.300 ms 1 1.300 ms
SymNames::loadNameToSymIdHash 0.991 ms 1 0.991 ms
LanguagesService::init 0.729 ms 1 0.729 ms
NotationActionController::init 0.572 ms 1 0.572 ms
LanguagesService::loadLanguages 0.568 ms 1 0.568 ms
UiActionsRegister::updateShortcutsAll 0.453 ms 1 0.453 ms
ShortcutsRegister::expandStandardKeys 0.221 ms 2 0.442 ms
AbstractCloudService::init 0.184 ms 2 0.367 ms
UiActionsRegister::updateCheckedAll 0.247 ms 1 0.247 ms
AbstractCloudService::readTokens 0.114 ms 2 0.229 ms
ShortcutsRegister::makeUnique 0.215 ms 1 0.215 ms
LanguagesService::setCurrentLanguage 0.111 ms 1 0.111 ms
RegisterAudioPluginsScenario::init 0.062 ms 1 0.062 ms
KnownAudioPluginsRegister::load 0.055 ms 1 0.055 ms
UiActionsRegister::updateEnabledAll 0.039 ms 1 0.039 ms
InstrumentsRepository::loadMuseInstruments 0.009 ms 1 0.009 ms
UiContextResolver::currentUiContext 0.006 ms 1 0.006 ms
RecentFilesController::init 0.005 ms 1 0.005 ms
Workspace::rawData 0.001 ms 4 0.005 ms
SlurTieLayout::avoidCollisions 0.001 ms 6 0.005 ms
UiConfiguration::readThemes 0.002 ms 1 0.002 ms
ProjectAutoSaver::update 0.001 ms 1 0.001 ms

Other threads. Top 150 by sum time (total count: 2)
Function Call time Call count Sum time
SynthResolver::resolveAvailableResources 0.483 ms 1 0.483 ms
MuseSoundsRepository::th_requestSounds 0.000 ms 0 0.000 ms

11:32:15.722 | INFO | main_thread | GuiApp::finish | activeThreadCount: 1
11:32:16.676 | INFO | main_thread | main | Goodbye!! code: -1
CMake Error at build.cmake:293 (message):
Run step failed with status 255. See output above for details.

In reply to by Jojo-Schmitz

i tried to run the indicated command to build and i got this error... can you help me pls

$ cmake -P build.cmake -DCMAKE_BUILD_TYPE=Release
CMake Error at buildscripts/cmake/GetUtilsFunctions.cmake:122 (message):

Unable to find Qt (cmd: qmake6, qmake)

Please make sure Qt is installed and available in your PATH environment
variable.

See https://musescore.org/en/handbook/developers-handbook/compilation

Call Stack (most recent call first):
build.cmake:98 (fn__require_program)

In reply to by Jojo-Schmitz

currently yes, and know i have installed all there is in the wiki, and added the file to locate the Qt, but it still says this:
marga@LAPTOP-Q8ILCERA MINGW64 ~/Documents/uni_W/PIC/repos/MuseScore (master)
$ cmake -P build.cmake -DCMAKE_BUILD_TYPE=Release
CMake Error at buildscripts/cmake/GetUtilsFunctions.cmake:122 (message):

Unable to find Qt (cmd: qmake6, qmake)

Please make sure Qt is installed and available in your PATH environment
variable.

See https://musescore.org/en/handbook/developers-handbook/compilation

Call Stack (most recent call first):
build.cmake:98 (fn__require_program)

In reply to by Jojo-Schmitz

echo $PATH
/mingw64/bin:/usr/bin:/c/Users/marga/bin:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/c/Windows/System32/OpenSSH:/c/Program Files/Docker/Docker/resources/bin:/c/ProgramData/chocolatey/bin:/c/tools/gsudo/Current:/c/Program Files/CMake/bin:/cmd:/c/Users/marga/AppData/Local/Microsoft/WindowsApps:/c/Users/marga/AppData/Local/Programs/Microsoft VS Code/bin:/c/ProgramData/marga/GitHubDesktop/bin:/c/Users/marga/AppData/Local/GitHubDesktop/bin

In reply to by Jojo-Schmitz

my path echoes

echo $PATH
/mingw64/bin:/usr/bin:/c/Users/marga/bin:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/c/Windows/System32/OpenSSH:/c/Program Files/Docker/Docker/resources/bin:/c/ProgramData/chocolatey/bin:/c/tools/gsudo/Current:/c/Program Files/CMake/bin:/cmd:/c/Users/marga/AppData/Local/Microsoft/WindowsApps:/c/Users/marga/AppData/Local/Programs/Microsoft VS Code/bin:/c/ProgramData/marga/GitHubDesktop/bin:/c/Users/marga/AppData/Local/GitHubDesktop/bin:/c/Qt/6.2.4/mingw_64/bin

but when i try to build, the error is the same and qmake --version says wmake is not available

If you insist on building in WSL, you're basically on your own, as far as I can tell nobody did this before, at least nobody documented it ever before.
If ypou get it gpoing, make sure to document it, so that others can benefit from it ;-)

Else just check the Developers' Handbook in GitHub and follow the steps outlined there to get your build going from Windows directly

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