Problems building MuseScore involving Qt5 (Ubuntu 14.10)

• Feb 12, 2015 - 11:24
Type
Functional
Severity
3
Status
closed
Project

Hey guys, very new to this whole developer scene, and am having some problems building MuseScore. Here's the error I'm getting:

Linking CXX executable bww2mxml
make[3]: Leaving directory '/home/bigt/MuseScore/build.debug'
[100%] Built target bww2mxml
make[3]: Entering directory '/home/bigt/MuseScore/build.debug'
Scanning dependencies of target referenceDocumentation
make[3]: Leaving directory '/home/bigt/MuseScore/build.debug'
make[3]: Entering directory '/home/bigt/MuseScore/build.debug'
/bin/sh: 1: Qt5::qcollectiongenerator: not found
rdoc/CMakeFiles/referenceDocumentation.dir/build.make:54: recipe for target 'referenceDocumentation' failed
make[3]: *** [referenceDocumentation] Error 127
make[3]: Leaving directory '/home/bigt/MuseScore/build.debug'
CMakeFiles/Makefile2:1832: recipe for target 'rdoc/CMakeFiles/referenceDocumentation.dir/all' failed
make[2]: *** [rdoc/CMakeFiles/referenceDocumentation.dir/all] Error 2
make[2]: Leaving directory '/home/bigt/MuseScore/build.debug'
Makefile:133: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/bigt/MuseScore/build.debug'
Makefile:44: recipe for target 'debug' failed
make: *** [debug] Error 2

I'm pretty sure it has something to do with Qt5.4 not being properly installed or pathed. I was having this problem in Ubuntu 14.04, and so I did a clean installation of 14.10 thinking it would resolve the issue, but no luck. Any help in this matter would be greatly appreciated. I appologize for my poor developer skills as well.


Comments

I had the same problem; the Linux nightlies compiled successfully for me until a few days ago. It seems that the latest nightlies use a few features from a later version of Qt than is included with Ubuntu 14.10.

Solution: Install Qt5.4 or later

(Note: Ubuntu 14.10 only includes Qt5.3 by default).

  1. Download the latest version of Qt (currently 5.4) from http://qt-project.org/. The file you download is actually an installation script called something like "qt-opensource-linux-x64-1.6.0-8-online.run". (It will be called something different for 32-bit machines).
  2. Move installer (file you downloaded) to your Home directory and open a terminal window (Ctrl+Alt+T on Ubuntu).
  3. Give the installer execute permissions:
         sudo chmod +x qt-opensource-linux-x64-1.6.0-8-online.run
  4. Run the installer ("sudo" is not required if you choose to install to your Home directory):
         sudo ./qt-opensource-linux-x64-1.6.0-8-online.run
  5. Follow the installation wizard and write down the installation directory (default: "/opt/Qt". You can choose somewhere else if you want but make sure it doesn't have spaces anywhere in the path). Finish the install.
  6. In your file browser, navigate to the installation directory and find the path to the Qt "bin" directory. (Mine is "/opt/Qt/5.4/gcc_64/bin". This will be different on different machines.)
  7. Add the "bin" directory to your $PATH environment variable so that MuseScore knows where it is. (Modify the following command with the correct path as appropriate.):
         echo "PATH=/opt/Qt/5.4/gcc_64/bin:$PATH" >> ~/.bashrc
  8. Load your new $PATH variable.
         source ~/.bashrc

Once you've done this you should be able to install MuseScore successfully.

I can't determine whether the Qt installation warnings mean Qt is not properly installed. The directories seem there. Here is the output from the installation of Qt and of Musescore

sudo ./qt-unified-linux-x64-2.0.2-2-online.run
qt.network.ssl: QSslSocket: cannot resolve SSLv2_client_method
qt.network.ssl: QSslSocket: cannot resolve SSLv2_server_method
[531002] Warning: QXcbWindow: Unhandled client message: "_GTK_LOAD_ICONTHEMES"
nigel@p4dx2 ~/musescore $ echo "PATH=/opt/Qt/5.5/gcc_64/bin:$PATH" >> ~/.bashrc
nigel@p4dx2 ~/musescore $ source ~/.bashrc
nigel@p4dx2 ~/musescore $ sudo apt-get install musescore
Reading package lists... Done
Building dependency tree
Reading state information... Done
musescore is already the newest version.

The above refers to Musescore 1.3
So you can see I have not managed to install Musescore 2.

Thanks for your reply. I was going by the post above by
Posted by shoogle on February 13, 2015 - 4:08am
where he ends by saying
Once you've done this you should be able to install MuseScore successfully.
But you are right in that at the top of his post he says he is building it.

I'll have to make do with 1.3

Installing 2.0 should be possible too, may need to configure a different PPA (or some sich, I'm not on Linux). @shoogle should know all the dirty details ;-)

Installing 2.0 should be possible too, may need to configure a different PPA (or some such, I'm not on Linux). @shoogle should know all the dirty details ;-)

Sorry, my mistake. I should have said "build" rather than "install" in my previous post.

But as far as installing is concerned, if you are on Ubuntu 14.04 or later (any flavour), or the equivalent Mint or other Ubuntu derivative, then you simply need to add this PPA (follow the instructions on that page).

For other distros, try the Downloads page. If you are on an earlier Ubuntu, or an obscure distro, then you currently have to build from source, but I'm working on a portable package as we speak.

There seem to be two related threads discussing this, or something similar:
https://musescore.org/en/node/47406#comment-419981
and
https://musescore.org/en/node/52311#comment-419321

My Linux is Peppermint Three running on Lubuntu 12.04. I have the correct distribution
501 sudo add-apt-repository ppa:mscore-ubuntu/mscore-stable
502 sudo apt-get update
503 sudo apt-get install musescore
504 sudo apt-get uninstall musescore
505 sudo apt-get remove musescore
506 sudo apt-get install musescore
but I still have version 1.3.

I have installed Qt 5.5. I still cannot install Musescore 2.

I am going to stick with version 1.3 since I don't use the Linux box very much and the work involved is too great. I have said in the other thread that I tend to use cloud based and browser based computing for most of my work these days.

I am very grateful to those who devote their time to writing such excellent software as Musescore.

As I said before, MuseScore is not currently available for versions of Ubuntu (or its derivatives) prior to 14.04. Your Peppermint is based on 12.04 so you can't get the latest version of MuseScore unless you compile it yourself (which isn't easy otherwise someone would have made a package by now).

As it happens, I am making a package that will run on 12.04 and pretty much every Linux, so stay tuned!