[Others] Qt模块安装失败
Tofloor
poster avatar
189******68
deepin
2023-02-13 04:24
Author

V20.8 和 V23 Alpha 2版本下都用命令行进行了系统自带Qt5的安装

具体命令如下:

sudo apt-get install qt5-default
sudo apt-get install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools qtcreator qtdeclarative5-dev
sudo apt-get install qt5*

进入qtcreator打开项目源码后提示出错如下:

👎 error: Project ERROR: Unknown module(s) in QT: positioning qml quick quickcontrols2 quickwidgets svg texttospeech multimedia serialport location-private positioning-private charts x11extras waylandclient

然后运行如下命令:

sudo apt-get install libsdl2-dev libqt5svg5-dev qtlocation5-dev qtquickcontrols2-5-dev qtquickcontrols2-5-private-dev libqt5texttospeech5-dev libqt5x11extras5-dev qtmultimedia5-dev qml-module-qtcharts libqt5charts5-dev libqt5serialport5-dev libqt5waylandclient5-dev qtpositioning5-dev qml-module-qtpositioning qml-module-qt-labs-location libqt5positioning5-plugins qml-module-qtlocation

新的出错信息如下:

👎 error: Project ERROR: Unknown module(s) in QT: location-private positioning-private

现在请求大佬能给一个安装命令解决此问题!

Reply Favorite View the author
All Replies
fax928
deepin
Q&A Team
2023-02-13 05:59
#1

试试命令重装下装过的qt组件

sudo apt purge 组件 (完全卸载组件)

sudo apt install 组件 (安装组件)

也有可能.pro里要加载的模块有问题。blush

Reply View the author
q77190858
deepin
2023-02-13 09:52
#2

不要一股脑的装。这个得一个一个试。有的软件包名字不一定完全对的上,善用apt search和搜索引擎

Reply View the author
忘记、过去
deepin
2023-02-13 18:13
#3

谷歌查了下,这俩好像都是自己下载 qtlocation 源码编译安装的......

Reply View the author