Musescore 2.3.2 on Gentoo
Hello, I'm getting this one compile error:
In file included from /var/tmp/portage/media-sound/musescore-2.3.2/work/MuseScore-2.3.2/mscore/musescore.cpp:110:0:
/var/tmp/portage/media-sound/musescore-2.3.2/work/MuseScore-2.3.2/mscore/startcenter.h:20:10: fatal error: QWebView: No such file or directory
#include
^~~~~~~~~~
compilation terminated.
make[2]: *** [mscore/CMakeFiles/mscore.dir/build.make:1365: mscore/CMakeFiles/mscore.dir/musescore.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/media-sound/musescore-2.3.2/work/musescore-2.3.2_build'
make[1]: *** [CMakeFiles/Makefile2:310: mscore/CMakeFiles/mscore.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/media-sound/musescore-2.3.2/work/musescore-2.3.2_build'
make: *** [Makefile:152: all] Error 2
I already have dev-qt/qtwebview package installed.
Thanks.
Comments
You need Qt 5.4, nothing newer IIRC
In reply to You need Qt 5.4, nothing… by Jojo-Schmitz
Oops, the error is actually:
#include <QWebView> ^~~~~~~~~~
Just used code tag instead of cmake tag.
In reply to Oops, the error is actually:… by Too Much Noise
QWebVeiw has been removed from newer Qt versions, you need 5.4. Maybe 5.5 works too, 5.9 and later sure do not
In reply to QWebvVew has been removed… by Jojo-Schmitz
What about 5.11? This is what i have in my system:
dev-qt/qtwebview-5.11.1:5/5.11
Maybe is a different implementation or something...
Also there's a page in the Qt documentation for the 5.11 version:
https://doc.qt.io/qt-5.11/qtwebview-index.html
I will search more. Thanks
In reply to What about 5.11? This is… by Too Much Noise
What I wrote may be for Windows only, but for Linux is an extra package to install
In reply to What I wrote may be for… by Jojo-Schmitz
All my environment is built with Qt 5.11, merge an older version (like 5.4) would give me a slot conflict. I have no idea why is this happening, maybe i can find out something on Gentoo forums.
I also have the QtWebView folder at /usr/include/qt5/ with the following content:
QtWebView
├── 5.11.1
│ └── QtWebView
│ └── private
│ ├── qabstractwebview_p.h
│ ├── qnativeviewcontroller_p.h
│ ├── qquickviewcontroller_p.h
│ ├── qquickwebviewloadrequest_p.h
│ ├── qquickwebview_p.h
│ ├── qwebviewfactory_p.h
│ ├── qwebviewinterface_p.h
│ ├── qwebviewloadrequest_p.h
│ ├── qwebview_p.h
│ └── qwebviewplugin_p.h
├── QtWebView
├── QtWebViewDepends
├── qtwebviewfunctions.h
├── QtWebViewVersion
├── qtwebviewversion.h
└── qwebview_global.h
3 directories, 16 files
Everything was supposed to work correctly :/
In reply to All my environment is built… by Too Much Noise
I would think there should be a way to merge Qt 5.4 alongside Qt 5.11. If not, you can download the Qt installer from https://www.qt.io/download.
In reply to What about 5.11? This is… by Too Much Noise
Jojo is correct. MuseScore 2.3.2 requires Qt 5.4. You can have Qt 5.11 installed as well, but CMake needs to be able to find Qt 5.4 in order to properly configure the MuseScore project. Of course, as a Gentoo user, you shouldn't have to worry about any of this, since
emerge musescore
is supposed to take care of all of this for you.In reply to Jojo is correct. MuseScore 2… by mattmcclinch
I'm getting this error with emerge. Qt 5.4 is not available on the Gentoo repo (maybe on a overlay?), only 5.11 and 5.9. I will install 5.9, the only problem is that I will get a slot conflict (slot qt5). What i gonna do is unmerge all dev-qt and re-merge specifying the version. I will give a feed back when it's done.
In reply to I'm getting this error with… by Too Much Noise
Don't install 5.9. Qt 5.4 is the required version.
In reply to Don't install 5.9. Qt 5.4 is… by mattmcclinch
Where did you get Qt 5.4 for Gentoo? For me
equery y qtwebview
or any other dev-qt package have only versions 5.9 and 5.11 available (with Qt overlay).In reply to I'm getting this error with… by Too Much Noise
Qt 5.9 won't help with MuseScore 2.3.2. It is, however, the version to use with current master
In reply to Qt 5.9 won't help with… by Jojo-Schmitz
2.1.0 is the current master right? I will try to find out a properly to install Qt 5.4, else i will install the version which works with Qt 5.9 or 5.11.
In reply to 2.1.0 is the current master… by Too Much Noise
No, master means the development version (not a released version), see: https://musescore.org/en/download#Development-builds, which works with a newer version of Qt.
The last released version is 2.3.2 (at time of this comment, be aware of the AppImage: https://musescore.org/en/download#Linux), it seems 2.1.0 is the last available package for gentoo (see: https://packages.gentoo.org/packages/media-sound/musescore) and (AFAIK) as mentioned you'll need to install QT 5.4 to compile one of these versions from source.
In reply to 2.1.0 is the current master… by Too Much Noise
To be clear:
"master" builds are fine for development and testing, but they absolutely not to be used for real work. Not even close to stable enough for that, and scores created today probably won't open correctly in future versions. Only attempt to build master if your goal is to help with development or testing.
If your goal is simply to use MuseScore, you absolutely must use a 2.x version, and that means you absolutely must install Qt 5.4 if you intend to build MuseScore from source. If that's inconvenient, better to not try building MuseScore at all but to simply use the version provided by your distro or the AppImage version we provide.
In reply to To be clear:… by Marc Sabatella
The announcement for the 3.0 alpha says differently, it claims the file format not to change anymore in an incompatible way.
In reply to The announcement for the 3.0… by Jojo-Schmitz
Well, just because there are no plans to change the file format doesn't mean things will actually work as expected. The file might load but things could be "off". Even if the intent is to not do this deliberately, it's just the nature of development that these things happen. Caveat emptor.
@Jojo-Schmitz
@mattmcclinch
@kuwitt
@Marc Sabatella
Just to clarify the results, i could install MuseScore 2.3.2 with Qt 5.11.1, i don't know how but just merged correctly after the installation of Jack and Ardour (
emerge --ask media-sound/jack media-sound/ardour
). Now I'm getting Xorg related errors, but MuseScore was merged successfully.musescore --version
MuseScore2 2.3.2
equery list qtwebview
* Searching for qtwebview ...
[IP-] [ ] dev-qt/qtwebview-5.11.1:5/5.11
I think it can be marked as [SOLVED].
In reply to @Jojo-Schmitz… by Too Much Noise
Fixed the Xorg errors (needed to reinstall the video card drivers). Now I'm getting a segmentation fault, I'm really getting tired of this...
In reply to Fixed the Xorg errors … by Too Much Noise
Try launching musescore with the -w flag. This will disable WebView in the Start Center.
In reply to @Jojo-Schmitz… by Too Much Noise
To repeat: MuseScore 2.x uses and needs QtWebView, this had been discontinued with Qt versions after 5.4 (not sure exactly when, might have been 5.6, but definitely isn't in 5.9 or later), so in order to build MuseScore 2.3.2 you need Qt 5.4.
This is (one of) the reason(s) we use QtWebEngine for the next version of MuseScore now.
Edit: this (removal of WebView) is at least true for Windows