Repository not running locally in wsl
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."
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."
Do you still have an unanswered question? Please log in first to post your question.
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 So you are building… 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 Should i try to build in… by miacravas
Of course building on Windows is possible, I'm doing this ever since!
In reply to Of course building on… by Jojo-Schmitz
Great! Do you know what i need to have installed?
In reply to Great! Do you know what i… by miacravas
See https://github.com/musescore/MuseScore/wiki/Set-up-developer-environment
In reply to Should i try to build in… by miacravas
Did you run the install step after the builds
Do you run MuseScore from the install directory rather than the build directory
In reply to Did you run the install step… 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 i tried to run the indicated… by miacravas
The developers' handbook on musescore.org is outdated, use the Wiki on GitHub
Still: is Qt installed and in PATH? If it were that error message wouln'zt show
In reply to i tried to run the indicated… by miacravas
So it is the build that fails, not the run, right?
In reply to So it is the build that… 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 currently yes, and know i… by miacravas
Apparently not. Else that error won't show.
What does "echo $PATH" say, what "qmake --version"
In reply to Apparently not. Else that… 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 echo $PATH /mingw64/bin:/usr… by miacravas
No Qt in sight...
In reply to No Qt in sight... by Jojo-Schmitz
but i did everything the asked. should i also put the QT in bashrc?
In reply to No Qt in sight... by Jojo-Schmitz
i have this, as instructed:# build_overrides.cmake
set(ENV{QTDIR} "C:/Qt/6.2.4/msvc2019_64")
and i verified mannually, the folder exists!
In reply to i have this, as instructed:#… by miacravas
It is not in PATH
In reply to It is not in PATH by Jojo-Schmitz
do you have any suggestion please?
In reply to do you have any suggestion… by miacravas
Put the location of the Qt binaries into PATH
In reply to Put the location of the Qt… 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
In reply to my path echoes echo $PATH … by miacravas
set(ENV{QTDIR} "C:/Qt/6.2.4/msvc2019_64")
vs.
c/Qt/6.2.4/mingw_64/bin
That doesn't mix and match
For Mu4 forget MinGW. And for WSL forget MSVC too, you need GCC and the Linux toolchain
In reply to set(ENV{QTDIR} "C:/Qt/6.2.4… by Jojo-Schmitz
i altered that, but know qhen i try to build it says marga@LAPTOP-Q8ILCERA:~/Documents/uni_W/PIC/repos/MuseScore$ cmake -P build.cmake -DCMAKE_BUILD_TYPE=Release
bash: cmake: command not found
In reply to i altered that, but know… by miacravas
Then now cmake isn't in PATH
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
In reply to If you insist on building in… by Jojo-Schmitz
i have been trying on windows since you suggested it, and now i already have both variables on path, and the error is now in the compilation:
In reply to i have been trying on… by miacravas
Remove everything, start from scratch
In reply to Remove everything, start… by Jojo-Schmitz
thank you for all your help!