[Seek Help] qmake无法使用
Tofloor
poster avatar
192******19
deepin
2024-03-07 23:29
Author

在网上找了一个QT项目,比较感兴趣,想自己动手打包成appimage,结果卡住了。提示是找不到qmake路径。然后我检查qmake版本才发现:

fsl3118@fsl3118-PC:~$ qmake -v
qmake: could not find a Qt installation of ''

啊这,我配置了家目录的.barshc,不应该找不到啊,而且QT就出现在路径里了:

fsl3118@fsl3118-PC:~​ echo PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin:/opt/010editor:/usr/local/mysql/bin/:/usr/lib/x86_64-linux-gnu/qt5/bin:/usr/lib/qt6/bin

这很奇怪了。

Reply Favorite View the author
All Replies
liwl
deepin
2024-03-07 23:38
#1

sudo apt install qt5-default

Reply View the author
192******19
deepin
2024-03-08 00:02
#2
liwl

sudo apt install qt5-default

qmake的问题确实解决了,但打包项目出现了新的报错:

fsl3118@fsl3118-PC:~/Desktop/build-reconstruction_gC-unknown-Release$ ./linuxdeployqt-continuous-x86_64.AppImage ./reconstruction_gC -unsupported-allow-new-glibc
linuxdeployqt  (commit 2b38449), build 62 built on 2023-12-27 21:00:01 UTC
WARNING: Not checking glibc on the host system.
The resulting AppDir or AppImage may not run on older systems.
This mode is unsupported and discouraged.
For more information, please see
https://github.com/probonopd/linuxdeployqt/issues/340
Not using FHS-like mode
app-binary: "/home/fsl3118/Desktop/build-reconstruction_gC-unknown-Release/reconstruction_gC"
appDirPath: "/home/fsl3118/Desktop/build-reconstruction_gC-unknown-Release"
relativeBinPath: "reconstruction_gC"
Keeping existing AppRun
qmakePath 3= ""
ERROR: lconvert not found at "/tmp/.mount_linuxd9fw4vP/usr/bin/lconvert"
ERROR: Failed to copy translations
Reply View the author
liwl
deepin
2024-03-08 08:51
#3
192******19

qmake的问题确实解决了,但打包项目出现了新的报错:

fsl3118@fsl3118-PC:~/Desktop/build-reconstruction_gC-unknown-Release$ ./linuxdeployqt-continuous-x86_64.AppImage ./reconstruction_gC -unsupported-allow-new-glibc
linuxdeployqt  (commit 2b38449), build 62 built on 2023-12-27 21:00:01 UTC
WARNING: Not checking glibc on the host system.
The resulting AppDir or AppImage may not run on older systems.
This mode is unsupported and discouraged.
For more information, please see
https://github.com/probonopd/linuxdeployqt/issues/340
Not using FHS-like mode
app-binary: "/home/fsl3118/Desktop/build-reconstruction_gC-unknown-Release/reconstruction_gC"
appDirPath: "/home/fsl3118/Desktop/build-reconstruction_gC-unknown-Release"
relativeBinPath: "reconstruction_gC"
Keeping existing AppRun
qmakePath 3= ""
ERROR: lconvert not found at "/tmp/.mount_linuxd9fw4vP/usr/bin/lconvert"
ERROR: Failed to copy translations

看提示应该不是qt的问题了,看看提示,再研究研究吧

Reply View the author