0%

Setup qtchooser

Three things you need to verify:

1. Contents In File /usr/share/qtchooser/qt5-x86_64-linux-gnu.conf

1
2
3
4
5
6
7
8
9
➜  ~ cd /usr/share/qtchooser
➜ qtchooser ls
qt4-x86_64-linux-gnu.conf qt5-x86_64-linux-gnu.conf
➜ qtchooser cat qt4-x86_64-linux-gnu.conf
/usr/lib/x86_64-linux-gnu/qt4/bin
/usr/lib/x86_64-linux-gnu
➜ qtchooser cat qt5-x86_64-linux-gnu.conf
/opt/Qt/Current/gcc_64/bin
/opt/Qt/Current/gcc_64/lib

2. Use Qt5 By Default: /usr/lib/x86_64-linux-gnu/qt-default/qtchooser/default.conf

1
2
3
4
5
6
7
➜  qtchooser cd /usr/lib/x86_64-linux-gnu/qt-default/qtchooser 
➜ qtchooser ll
total 0
lrwxrwxrwx 1 root root 53 Apr 5 21:21 default.conf -> ../../../../share/qtchooser/qt5-x86_64-linux-gnu.conf
➜ qtchooser cat default.conf
/opt/Qt/Current/gcc_64/bin
/opt/Qt/Current/gcc_64/lib

3. Doublecheck /usr/lib/x86_64-linux-gnu/qtchooser

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
➜  qtchooser cd /usr/lib/x86_64-linux-gnu/qtchooser
➜ qtchooser pwd
/usr/lib/x86_64-linux-gnu/qtchooser
➜ qtchooser ll
total 0
lrwxrwxrwx 1 root root 50 Dec 21 2017 4.conf -> ../../../share/qtchooser/qt4-x86_64-linux-gnu.conf
lrwxrwxrwx 1 root root 50 Dec 21 2017 5.conf -> ../../../share/qtchooser/qt5-x86_64-linux-gnu.conf
lrwxrwxrwx 1 root root 50 Dec 21 2017 qt4.conf -> ../../../share/qtchooser/qt4-x86_64-linux-gnu.conf
lrwxrwxrwx 1 root root 50 Dec 21 2017 qt5.conf -> ../../../share/qtchooser/qt5-x86_64-linux-gnu.conf
➜ qtchooser cat 4.conf
/usr/lib/x86_64-linux-gnu/qt4/bin
/usr/lib/x86_64-linux-gnu
➜ qtchooser cat 5.conf
/opt/Qt/Current/gcc_64/bin
/opt/Qt/Current/gcc_64/lib