문제는 소스에서 슈퍼콜라이더를 구축하기 전에 Qt5를 사용하고 있는지 확인하는 것입니다. 문제는 이것이다:
jsimon@edgy:~$ qmake -v
qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
jsimon@edgy:~$ locate qmake
/usr/bin/qmake
내 생각엔 qtchooser에 뭔가 잘못 구성된 것이 있는 것 같습니다. 여기에 문서가 있습니다.
그리고 여기:
더 자세히 살펴보면 일부 심볼릭 링크가 포함된 디렉토리가 있습니다.
jsimon@edgy:/usr/lib/x86_64-linux-gnu/qtchooser$ ls -al
lrwxrwxrwx 1 root root 50 Sep 1 06:04 4.conf -> ../../../share/qtchooser/qt4-x86_64-linux-gnu.conf
lrwxrwxrwx 1 root root 50 Sep 1 06:04 5.conf -> ../../../share/qtchooser/qt5-x86_64-linux-gnu.conf
lrwxrwxrwx 1 root root 50 Sep 1 06:04 qt4.conf -> ../../../share/qtchooser/qt4-x86_64-linux-gnu.conf
lrwxrwxrwx 1 root root 50 Sep 1 06:04 qt5.conf -> ../../../share/qtchooser/qt5-x86_64-linux-gnu.conf
그리고 나에게 문제처럼 보이는 또 다른 더 깊은 디렉토리는 Qt4를 기본값으로 제공하는 심볼릭 링크입니다.
jsimon@edgy:/usr/lib/x86_64-linux-gnu/qt-default/qtchooser$ ls -al
lrwxrwxrwx 1 root root 53 Sep 1 06:04 default.conf -> ../../../../share/qtchooser/qt4-x86_64-linux-gnu.conf
qtchooser의 일부 정보:
jsimon@edgy:~$ qtchooser -print-env
QT_SELECT="default"
QTTOOLDIR="/usr/lib/x86_64-linux-gnu/qt4/bin"
QTLIBDIR="/usr/lib/x86_64-linux-gnu"
이 페이지를 보면 다음과 같이 간단합니다.
하지만:
jsimon@edgy:~$ export QT_SELECT=qt5
jsimon@edgy:~$ printenv
[snip]
QT_SELECT=qt5
[snip]
jsimon@edgy:~$ qmake -v
qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt5/bin/qmake': No such file or directory
우리가 시작한 곳으로 돌아가면 변화가 없습니다. 이제 뭐?
답변1
이 모든 것은 빨간 청어로 판명되었습니다. 필요한 것은 qmake를 설치하는 것뿐이었습니다. 예를 들면 다음과 같습니다.
sudo apt install qt5-qmake