Having to build Musescore from sources, I try to install the dependencies. Far from simple. I could not find any documentation on Fedora’ s way related to Qt. (No
qt5-default package typically)
qmake is nowhere to be found. Looks like all Linux distributions uses
qmake-qt5. Fine, but they provide a
qt5-default package that solve the issue. Except Fedora.
qtchooser. But you cannot run
qtchooser that easily. You have to logout/login or
source /etc/profile.d/qtchooser.sh. Only then can you run it.
qtchooser -print-env QT_SELECT="default" QTTOOLDIR="/usr/lib64/qt4/bin" QTLIBDIR="/usr/lib64/qt4"
Why does it default to Qt4? How can I set the default? Let’s play …
I already ran
alternative but that was before installing
qtchooser (it was not in the dependencies). Now after installation:
alternatives --list | grep ^qt qtchooser-default auto /etc/xdg/qtchooser/4.conf qtchooser-4 auto /etc/xdg/qtchooser/4-64.conf qtchooser-5 auto /etc/xdg/qtchooser/5-64.conf
Looks good. Now remember
alternative syntax …
sudo alternatives --config qtchooser-default and you can select Qt5 ! Great.
This is better:
> qtchooser -print-env QT_SELECT="default" QTTOOLDIR="/usr/lib64/qt5/bin" QTLIBDIR="/usr"
> which qmake /usr/lib/qtchooser/qmake > qmake -version QMake version 3.1 Using Qt version 5.15.2 in /usr/lib64
Glad I am using toolbox to isolate all this packages.
Note: I googled and looked at lots of resources. It is not uncommon that people just abandon or strongly advice to remove Fedora packages and install directly from Qt installer. That is not an issue to me, but at least it should be documented. That would help.