MuseScore icon indicating copy to clipboard operation
MuseScore copied to clipboard

[MU4 Issue] Build and running issues

Open LuFlo opened this issue 2 years ago • 4 comments
trafficstars

Describe the bug

I've been following these guides in order to setup a build environment:

  • https://github.com/musescore/MuseScore/wiki/Set-up-developer-environment
  • https://github.com/musescore/MuseScore/wiki/Install-Qt-and-Qt-Creator
  • https://github.com/musescore/MuseScore/wiki/Compile-on-the-command-line
  • https://github.com/musescore/MuseScore/wiki/Compile-in-Qt-Creator

Building and running the normal version in Qt-Creator worked fine after I managed to link Qt-Creator to the actual QT installation (I wonder why this is not done automatically during installation but whatever :D ).

In order to test the software I needed the "installed version", in order to create scores etc... So I added the deployment steps. Then some libraries were not found:

/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/install/bin/mscore: error while loading shared libraries: libQt5NetworkAuth.so.5: cannot open shared object file: No such file or directory

I ran the normal version again and looked up what the content of LD_LIBRARY_PATH was and added this manually to the environment. I also had to add /home/lukas/Programs/QTCreator/QT/Tools/QtDesignStudio/lib/Qt/lib/, otherwise libcrypto.so.1.1 is not found. Really weird...

Screenshot from 2022-12-23 19-50-08

The content of LD_LIBRARY_PATH is: /home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/framework/global:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/framework/draw:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/framework/ui:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/framework/uicomponents:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/framework/fonts:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/framework/network:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/diagnostics:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/engraving:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/framework/actions:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/framework/accessibility:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/appshell:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/context:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/framework/shortcuts:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/workspace:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/framework/audio:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/framework/mpe:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/framework/midi:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/learn:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/notation:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/project:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/print:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/commonscene:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/palette:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/inspector:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/playback:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/instrumentsscene:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/converter:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/stubs/framework/vst:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/update:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/thirdparty/freetype:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/cloud:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/languages:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/importexport/musicxml:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/importexport/bb:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/importexport/braille:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/importexport/bww:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/importexport/capella:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/importexport/guitarpro:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/importexport/midi:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/importexport/musedata:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/importexport/ove:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/importexport/audioexport:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/importexport/imagesexport:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/plugins:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/multiinstances:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/autobot:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/framework/musesampler:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/diagnostics/google_crashpad_client:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/thirdparty/KDDockWidgets/src:/home/lukas/Programs/QTCreator/QT/5.15.2/gcc_64/lib:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/framework/audio/lame:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/framework/audio/opusenc:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/framework/audio/opusenc/opus:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/framework/audio/flac:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/framework/audio/fluidsynth:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/rtf2html:/home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/src/beatroot:/home/lukas/Programs/QTCreator/QT/Tools/QtDesignStudio/lib/Qt/lib/

So finally I managed to run it and create a score. But as soon as I added some notes I get a SIGABRT and following error:

20:20:39: Debugging /home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/install/bin/mscore ...
QML debugging is enabled. Only use this in a safe environment.
QEventLoop: Cannot be used without QApplication
QEventLoop: Cannot be used without QApplication
20:20:42.306 | INFO  | main_thread | GlobalModule | onPreInit: log path: /home/lukas/.local/share/MuseScore/MuseScore4Development/logs/MuseScore_221223_202042.log
20:20:42.306 | INFO  | main_thread | GlobalModule | onPreInit: === Started MuseScore 4.0.0-Development, build number  ===
20:20:42.371 | DEBUG | main_thread | DiagnosticsModule | onInit: crash server url: 
20:20:42.377 | INFO  | main_thread | DiagnosticsModule | onInit: success start crash handler
20:20:42.387 | DEBUG | main_thread | ShortcutsRegister | expandStandardKeys: removed 5 shortcut, because they are not bound to standard key
20:20:42.388 | DEBUG | main_thread | ShortcutsRegister | expandStandardKeys: added 3 shortcut, because they are alternative shortcuts for the given standard keys
20:20:42.391 | DEBUG | main_thread | ShortcutsRegister | expandStandardKeys: removed 176 shortcut, because they are not bound to standard key
20:20:42.417 | DEBUG | main_thread | LinuxAudioDriver | open: Connected to default
20:20:42.754 | DEBUG | main_thread | InstrumentTemplate | read: InstrumentTemplate:: init instrument <contrabass> not found
20:20:42.763 | DEBUG | main_thread | AlsaMidiInPort | connect: Connected to 0:20:0
20:20:42.763 | DEBUG | main_thread | AlsaMidiOutPort | connect: Connected to 0:20:0
20:20:42.812 | DEBUG | main_thread | Score      | tick2segment: no measure for tick -1
20:20:42.878 | DEBUG | main_thread | Score      | tick2segment: no measure for tick -1
20:20:42.889 | WARN  | main_thread | CloudService | readTokens: Could not find the tokens file: /home/lukas/.local/share/MuseScore/MuseScore4Development/cred.dat
20:20:42.889 | WARN  | main_thread | IpcSocket  | connect: failed connect to server
20:20:42.889 | WARN  | main_thread | IpcSocket  | connect: failed connect to server
20:20:42.890 | INFO  | main_thread | IpcSocket  | connect: success connected to ipc server
20:20:42.890 | INFO  | 140736257320512 | IpcServer  | listen: id: "63a65e7b2d4a4d9aae82024407dfdf94" 
20:20:42.890 | DEBUG | main_thread | WorkspacesDataProvider | rawData: get data from default workspace, key: ui_settings
20:20:42.890 | DEBUG | main_thread | WorkspacesDataProvider | rawData: get data from default workspace, key: ui_states
20:20:42.890 | DEBUG | main_thread | WorkspacesDataProvider | rawData: get data from default workspace, key: ui_toolconfigs
20:20:42.891 | DEBUG | main_thread | UiActionsRegister | updateEnabledAll: currentCtx: UiCtxUnknown
20:20:42.904 | DEBUG | main_thread | Score      | tick2segment: no measure for tick -1
20:20:42.928 | DEBUG | main_thread | Score      | tick2segment: no measure for tick -1
20:20:42.935 | DEBUG | main_thread | WorkspacesDataProvider | rawData: get data from default workspace, key: palettes
20:20:42.935 | DEBUG | main_thread | PaletteWorkspaceSetup | setup: no palette data in workspace, will use default
20:20:42.946 | DEBUG | main_thread | Score      | tick2segment: no measure for tick -1
20:20:42.971 | DEBUG | main_thread | Score      | tick2segment: no measure for tick -1
20:20:43.531 | DEBUG | main_thread | UiActionsRegister | updateEnabledAll: currentCtx: UiCtxUnknown
20:20:43.844 | DEBUG | main_thread | Qt         | onFireOpen: try open uri: musescore://home, page: {"modal":"","params":{"sync":true},"path":"","sync":true,"type":1,"uri":"musescore://home"}
20:20:44.062 | ERROR | 140735785465408 | NetworkManager | execRequest: [503] Error transferring https://youtube.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId=PLTYuWi2LmaPEhcwZJwFZqoyQ2xXx_maPa&key=&maxResults=100 - server replied: Forbidden
20:20:44.062 | WARN  | 140735785465408 | LearnService | refreshPlaylists: [503] Error transferring https://youtube.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId=PLTYuWi2LmaPEhcwZJwFZqoyQ2xXx_maPa&key=&maxResults=100 - server replied: Forbidden
20:20:44.062 | ERROR | 140735777072704 | NetworkManager | execRequest: [503] Error transferring https://youtube.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId=PL24C760637A625BB6&key=&maxResults=100 - server replied: Forbidden
20:20:44.062 | WARN  | 140735777072704 | LearnService | refreshPlaylists: [503] Error transferring https://youtube.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId=PL24C760637A625BB6&key=&maxResults=100 - server replied: Forbidden
20:20:44.851 | DEBUG | main_thread | UiActionsRegister | updateEnabledAll: currentCtx: UiCtxHomeOpened
20:20:44.872 | WARN  | main_thread | Qt         | QObject::connect(QQuickItem, mu::uicomponents::PopupViewCloseController): invalid nullptr parameter
20:20:44.872 | WARN  | main_thread | Qt         | QObject::connect(QObject, mu::uicomponents::PopupViewCloseController): invalid nullptr parameter
20:20:44.872 | DEBUG | main_thread | UiActionsRegister | updateEnabledAll: currentCtx: UiCtxHomeOpened
20:20:44.873 | DEBUG | main_thread | UiActionsRegister | updateEnabledAll: currentCtx: UiCtxHomeOpened
20:20:44.873 | DEBUG | main_thread | UiActionsRegister | updateEnabledAll: currentCtx: UiCtxHomeOpened
20:20:45.905 | ERROR | 140735785465408 | UpdateService | parseRelease: failed parse, err: "illegal value" 
20:20:45.915 | ERROR | main_thread | UpdateScenario | doCheckForUpdate: Unable to check for update, error: [1701] 
20:20:48.172 | DEBUG | main_thread | UiActionsRegister | updateEnabledAll: currentCtx: UiCtxHomeOpened
20:20:48.205 | DEBUG | main_thread | UiActionsRegister | updateEnabledAll: currentCtx: UiCtxHomeOpened
20:20:48.205 | INFO  | main_thread | ActionsDispatcher | dispatch: try call action: file-open
20:20:48.680 | DEBUG | main_thread | IpcChannel | syncRequestToAll: ret code: 1
20:20:48.681 | DEBUG | main_thread | NotationProject | load: try load: /home/lukas/.local/share/MuseScore/MuseScore4Development/new_project.mscz
20:20:48.721 | DEBUG | main_thread | MeasureRW  | readVoice: remove keysig c at tick 0
20:20:48.743 | DEBUG | main_thread | XmlWriter  | tagProperty: property value type mismatch, prop: barLineSpan
20:20:48.767 | DEBUG | main_thread | NotationProject | makeCurrentFileAsBackup: project just created
20:20:48.767 | INFO  | main_thread | NotationProject | doSave: success save file: "/home/lukas/.local/share/MuseScore/MuseScore4Development/new_project.mscz" 
20:20:48.769 | DEBUG | main_thread | UiActionsRegister | updateEnabledAll: currentCtx: UiCtxHomeOpened
20:20:48.781 | DEBUG | main_thread | Qt         | onFireOpen: try open uri: musescore://notation, page: {"modal":"","params":{"sync":true},"path":"","sync":true,"type":1,"uri":"musescore://notation"}
20:20:48.782 | DEBUG | main_thread | WorkspacesDataProvider | setRawData: set data to default workspace, key: ui_states
20:20:48.893 | DEBUG | main_thread | UiActionsRegister | updateEnabledAll: currentCtx: UiCtxHomeOpened
20:20:48.898 | DEBUG | main_thread | UiActionsRegister | updateEnabledAll: currentCtx: UiCtxNotationFocused
20:20:48.986 | DEBUG | 140736567690816 | MuseSamplerWrapper | setSampleRate: Successfully initialized sampler
20:20:48.989 | ERROR | 140736567690816 | SynthResolver | resolveSynth: invalid audio source params for trackId: 1
20:20:48.993 | DEBUG | 140736567690816 | FluidSynth | init: synth inited

20:20:49.056 | INFO  | 140736567690816 | FluidSynth | addSoundFonts: success load soundfont: /home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/install/share/mscore-4.0/sound/MS Basic.sf3
20:20:49.058 | INFO  | 140736567690816 | FluidSynth | addSoundFonts: success load soundfont: /home/lukas/dev/Contributions/build-MuseScore-Desktop-Debug/install/share/mscore-4.0/sound/MS Basic.sf3
20:20:49.059 | DEBUG | 140736567690816 | FluidSynth | init: Selected preset 'Woodblock' on channel 0
20:20:49.258 | DEBUG | 140735005324864 | Score      | tick2segment: no measure for tick -1
20:20:55.640 | DEBUG | main_thread | ShortcutsController | activate: N
20:20:55.640 | INFO  | main_thread | ActionsDispatcher | dispatch: try call action: note-input
20:20:55.643 | DEBUG | main_thread | UiActionsRegister | updateEnabledAll: currentCtx: UiCtxNotationFocused
20:20:55.653 | DEBUG | 140736567690816 | MuseSamplerWrapper | setCurrentPosition: Seek a new playback position, newPosition: 0
20:20:55.660 | DEBUG | main_thread | UiActionsRegister | updateEnabledAll: currentCtx: UiCtxNotationFocused
20:20:56.961 | INFO  | main_thread | ActionsDispatcher | dispatch: try call action: put-note
20:20:56.979 | DEBUG | main_thread | Score      | endCmd: Undo stack current macro child count: 9
20:20:56.980 | DEBUG | main_thread | UiActionsRegister | updateEnabledAll: currentCtx: UiCtxNotationFocused
Fatal (internal) error in ../celt/celt_decoder.c, line 118: assertion failed: st->mode == opus_custom_mode_create(48000, 960, NULL)
20:20:57.012 | DEBUG | 140736567690816 | MuseSamplerWrapper | setCurrentPosition: Seek a new playback position, newPosition: 0

It is not possible to continue, I always get new signals (SIGCONT).

Screenshot from 2022-12-23 19-48-43

Also when I compile via command line I also have to include LD_LIBRARY_PATH in the overrides and I get the same error. Long story short: Something is not right here :D Am I missing something? Am I using the proper build setup guide (I've found multiple...)?

LuFlo avatar Dec 23 '22 19:12 LuFlo

I updated the repository but still the same result. Is the build process broken right now? Can anyone confirm?

LuFlo avatar Dec 29 '22 18:12 LuFlo

No, the build process works fine in principle. So it must be something on your machine... I don't immediately see what though. Changing LD_LIBRARY_PATH should not be necessary. Maybe something is wrong with the Qt installation; normally, Qt Creator detects your Qt installation automatically. The Qt forum may have information about this.

cbjeukendrup avatar Dec 29 '22 18:12 cbjeukendrup

I didn't install Qt to the default location, maybe that's the issue. However, the build environment should take this into consideration. I'll look into this if this is really the issue...

LuFlo avatar Dec 29 '22 18:12 LuFlo

Maybe it helps to make sure that you pass to CMake -DCMAKE_PREFIX_PATH=<the path to Qt> (or in Qt Creator, set the CMAKE_PREFIX_PATH option to the path to Qt), where <the path to Qt> is the folder that contains the bin folder that contains qmake. Normally Qt Creator does this automatically, but maybe that didn't work in this case.

cbjeukendrup avatar Dec 29 '22 19:12 cbjeukendrup

Closing due to inactivity

cbjeukendrup avatar Mar 12 '23 18:03 cbjeukendrup