Problems installing on Linux
Reported version
3.0
Priority
P2 - Medium
Type
Functional
Frequency
Few
Severity
S3 - Major
Reproducibility
Once
Status
closed
Regression
No
Workaround
No
Project
The mscore/CMakeLists.txt file, as it is, doesn't install on my computer. Instead, I have to comment out lines 620-631 (incl.), after which it will install fine. I suggest that a fix might be to change line 619 from:
if (NOT APPLE AND USE_WEBENGINE)
to
if (NOT APPLE AND NOT LN_EXECUTABLE AND USE_WEBENGINE)
and then changing line 632 respectively to
endif(NOT APPLE AND NOT LN_EXECUTABLE AND USE_WEBENGINE)
This fixes the problem for me. Tested on Ubuntu 18.04, x86_64. Qt (5.9.5) and all MuseScore dependencies were installed using apt. Since I don't know the ins and outs about how CMake works, would this fix be an ok one to make permanently?
Comments
Hmmm, the title isn't as descriptive as it could be.
Isn't this related to what is described here?
https://musescore.org/en/node/275316
Yes, it seems like it is related to to that. Are you planning on making a fix for this?
Off topic: that square bracket link trick
(unfortunately) works only for issues, not forum topics
Yes, I realised :)
The fix suggested by TheOtherJThistle works for me on Fedora 28 too. I believe the fix by dmitrio95 would as well but I haven't tested it due to my lack of knowledge of cmake.
Fix: https://github.com/musescore/MuseScore/pull/4036
@dmitrio95, are you building MuseScore without the mentioned fix?
Yes, I use no modifications to MuseScore code to build and install MuseScore. That is because I use Qt version installed with the installer from Qt website while people affected by this bug are probably using Qt versions as packaged by their distributions' maintainers. In such a case all installed files are placed in different directory which is handled by Qt but not handled by our CMake files (see my other comment). Still we are better to figure out first whether we actually need to include some files to our installation.
If you are right, so there is no an issue at all. We have instructions which recommend the flow. If someone creates his/her own flow, we shouldn't apply changes to the codebase to support it.
I believe this is an issue as this would make package maintainers develop these fixes independently instead of fixing this once and in one place. This also creates unnecessary problems for those who would like to compile for some reasons MuseScore from the source code. The only reason I use Qt official installer is versions mismatch between Qt version available in Debian 9 and Qt version required for MuseScore.
In fact I had some drafts for the solution of this problem based on using locations obtained from qmake properties so I could review them again and propose that solution as a new pull request. Still if not including some of Qt libraries in MuseScore installation won't damage all MuseScore functionality perhaps this could be the simpler solution.
Is this really Critical severity and High priority?
Concerning severity and priority I believe this is really rated a bit high currently.
'Normal' might be more appropriate but doesn't exist
Another option to fix this: https://github.com/musescore/MuseScore/pull/4224
In reply to Another option to fix this:… by dmitrio95
I'll try it out when I have a moment, thanks for the fix.
@dmitrio95 - your PR works! Thank you.
Fixed in branch master, commit 9866c8cfdb
fix #275539: use correct paths for retrieving Qt installation files
Fixed in branch master, commit af128b5817
Merge pull request #4224 from dmitrio95/fix-install-linux
fix #275539: use correct paths for retrieving Qt installation files
Automatically closed -- issue fixed for 2 weeks with no activity.