Problems building MuseScore involving Qt5 (Ubuntu 14.10)
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
Did you install Qt from the Qt website or from the repositories?
I followed the steps found on the compile instructions to the letter, so from the repositories.
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).
sudo chmod +x qt-opensource-linux-x64-1.6.0-8-online.run
sudo ./qt-opensource-linux-x64-1.6.0-8-online.run
echo "PATH=/opt/Qt/5.4/gcc_64/bin:$PATH" >> ~/.bashrc
source ~/.bashrc
Once you've done this you should be able to install MuseScore successfully.
Install Qt5.4 or later. (See above.)
Automatically closed -- issue fixed for 2 weeks with no activity.
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.
Different Problem, you're trying to install MuseScore, this issue is about building it.
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!