Musescore 2.3.2 on Gentoo

• Sep 11, 2018 - 16:25

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

In reply to 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 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 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 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 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.

@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 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

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