On 10/14/20 12:10 PM, Wayne Sallee via blfs-support wrote:
The idea of using /opt to be able to create multiple versions of qt5 is
a good idea. I found some problems that might need to be addressed in
the BLFS instructions.
run:
find /usr/bin -lname '*/opt/qt*' | xargs ls -lhd
and you will find something like this:
lrwxrwxrwx 1 qt qt 32 Oct 14 09:57 /usr/bin/lconvert-qt5 ->
../../opt/qt-5.12.9/bin/lconvert
lrwxrwxrwx 1 qt qt 32 Oct 14 09:57 /usr/bin/lrelease-qt5 ->
../../opt/qt-5.12.9/bin/lrelease
lrwxrwxrwx 1 qt qt 31 Oct 14 09:57 /usr/bin/lupdate-qt5 ->
../../opt/qt-5.12.9/bin/lupdate
lrwxrwxrwx 1 qt qt 27 Oct 14 09:57 /usr/bin/moc-qt5 ->
../../opt/qt-5.12.9/bin/moc
lrwxrwxrwx 1 qt qt 29 Oct 14 09:57 /usr/bin/qmake-qt5 ->
../../opt/qt-5.12.9/bin/qmake
lrwxrwxrwx 1 qt qt 27 Oct 14 09:57 /usr/bin/rcc-qt5 ->
../../opt/qt-5.12.9/bin/rcc
lrwxrwxrwx 1 qt qt 27 Oct 14 09:57 /usr/bin/uic-qt5 ->
../../opt/qt-5.12.9/bin/uic
You can see from this, that I have most recently installed qt-5.12.9
But if I switch the link of /opt/qt5 to a previous version, the above
links don't also switch. And when you go to compile something it uses
/opt/qt-5.12.9/bin/qmake.
So after building qt5 it would probably be good to change the above
smlinks to:
lrwxrwxrwx 1 qt qt 32 Oct 14 09:57 /usr/bin/lconvert-qt5 ->
../../opt/qt5/bin/lconvert
lrwxrwxrwx 1 qt qt 32 Oct 14 09:57 /usr/bin/lrelease-qt5 ->
../../opt/qt5/bin/lrelease
lrwxrwxrwx 1 qt qt 31 Oct 14 09:57 /usr/bin/lupdate-qt5 ->
../../opt/qt5/bin/lupdate
lrwxrwxrwx 1 qt qt 27 Oct 14 09:57 /usr/bin/moc-qt5 ->
../../opt/qt5/bin/moc
lrwxrwxrwx 1 qt qt 29 Oct 14 09:57 /usr/bin/qmake-qt5 ->
../../opt/qt5/bin/qmake
lrwxrwxrwx 1 qt qt 27 Oct 14 09:57 /usr/bin/rcc-qt5 ->
../../opt/qt5/bin/rcc
lrwxrwxrwx 1 qt qt 27 Oct 14 09:57 /usr/bin/uic-qt5 ->
../../opt/qt5/bin/uic
There might be other links to change as well.
What do you think?
What you should have is /opt/qt5 -> qt-<version>. In that case the
links you have should automatically point to the current version.
See the tip on the qt5 page.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page