Qt5 needed to compile and run MuseScore 2.0.1?

• May 27, 2015 - 23:58

With the help of my daughter (who, unlike me, is a computer programmer), I'm hoping to compile MuseScore 2.0.1 from source and turn it into a package for Puppy Linux, which she and I use. In the Makefile, I notice there's a line about changing path to include your Qt5 installation. Right now I'm using MuseScore 1.0 with Qt 4.8.2. Will MuseScore 2.0.1 work with that version of Qt, or does it need version 5?

David McClamrock


Comments

In reply to by [DELETED] 5

One more step: any chance that 5.2 would be good enough? I'm informed that there's a Puppy Linux package for Qt 5.2. (If that won't work, maybe I could beg the guy who prepared the 5.2 package to do the same for 5.3 or 5.4.) I did try the online and offline installers from the Qt website, after setting the permissions to execute, but I got error messages saying the binaries wouldn't run.

Now my daughters and I are about to have a code-compiling party, in which we hope we'll compile Qt 5.4.1 and then MuseScore 2.0.1, and turn them into Puppy Linux packages. Supposing the Qt compilation and installation go OK, do we then just add the Qt5 directory to PATH, or is more needed before the MuseScore build process will work? (And, if we want a static MuseScore build with no external dependencies, is it easy to include everything needed from Qt?)

In reply to by Jojo-Schmitz

I've looked pretty hard and haven't found one. My daughters and I are now doing the compile process (I hope it succeeds!). In case it doesn't . . . Puppy can use Ubuntu packages, but I didn't find one in any Ubuntu repository available through the Puppy package manager. I figure there's got to be an Ubuntu package somewhere for Qt 5.4, or 5.3 at the very least. Can anybody help me find it?

That's more like it! Since the version of Puppy I'm running is Vividpup beta 2, which uses Ubuntu Vivid Vervet packages, I've downloaded the musescore-common_2.0.0+dfsg1-0ubuntu~vivid2_all.deb package from the repository you mentioned. After work today, I hope, I'll install it and give it a try. Thanks--I'll let you know how it works!

. . . or if it works. I installed musescore-common and then the AMD64 build (since my computer has an AMD64 processor), but got an error message saying exec format was wrong. Uninstalled that, installed the i386 build, got this error message:

mscore: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory

Any suggestions?

In reply to by [DELETED] 5

Should be, I would have thought, but I don't see it there. But . . . on the page you referred me to, it says "the following binary packages are built from this source package." Among the binary packages, it looks like I would need:

libqt5core5a (Qt 5 core module)
libqt5gui5 (Qt 5 GUI module)
libqt5printsupport5 (Qt 5 print support module)
libqt5widgets5 (Qt 5 widgets module)

If I install these, will I then be ready to compile MuseScore 2 (or to try the binary package for Ubuntu again), or is there more to it than that?

Update: Well, that was a bit of an underestimate of how many Qt5 and related packages I'd need. Here's the complete list (in alphabetical order, not order of installation) :

libdouble-conversion1_2.0.1
libgstreamer-plugins-base1.0-0_1.4.5
libgstreamer1.0-0_1.4.5.files
libportaudio2_19+svn20140130
libqt5clucene5_5.4.1
libqt5core5a_5.4.1+dfsg
libqt5dbus5_5.4.1+dfsg
libqt5gui5_5.4.1+dfsg
libqt5help5_5.4.1
libqt5network5_5.4.1+dfsg
libqt5opengl5_5.4.1+dfsg
libqt5printsupport5_5.4.1+dfsg
libqt5qml5_5.4.1
libqt5quick5_5.4.1
libqt5sql5_5.4.1+dfsg
libqt5svg5_5.4.1
libqt5webkit5_5.4.1+dfsg
libqt5widgets5_5.4.1+dfsg
libqt5xml5_5.4.1+dfsg
libqt5xmlpatterns5_5.4.1

I'm pretty sure this list is complete because, when I had all these installed, I started getting a new error message instead of the ones about missing libraries when I tried to run MuseScore 2.0 from the command line. Here's the new error message:

"This application failed to start because it could not find or load the Qt platform plugin "xcb".

Available platform plugins are: eglfs, kms, linuxfb, minimal, minimalegl, offscreen, xcb.

Reinstalling the application may fix this problem."

Reinstalling the application didn't fix the problem. I do have a large number of "xcb" files on my system. Could anybody please help me out with a suggestion about what might fix the problem?

Yes:

/usr/lib/libxcb.so
/usr/lib/libxcb.so.1
/usr/lib/libxcb.so.1.1.0

I read the other thread you mentioned; I'll try things like s-linking libxcb to the Qt5 plugin directory and see if it works (but probably not before I go to work this morning). Thanks!

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