QT报错记录

Ubuntu22.04安装Qt之后启动Qt Creator报错:

Fron 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platforn plugin.
Could not load.
This application failed to start because no Qt platforn plugin could be initialized. Reinstalling the application nay fix this problen.
Available platforn plugins are: wayland, uayland-eg1, xcb, 1inuxfb, vnc, nininalegl, vkkhrdisplay, eglfs, nininal, offscreen.

解决:

解决方法(需要安装 xcb-cursor0 库):
终端内执行:
sudo apt-get update
sudo apt-get install libxcb-cursor0

在MobaXterm中安装Qt程序报错:

命令:sudo ./qt-unified-linux-x64-4.6.0-online.run --mirror https://mirrors.aliyun.com/qt

报错:

MoTTY X11 proxy: Unsupported authorisation protocol
qt.qpa.xcb: could not connect to display localhost:11.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: minimal, xcb.

解决:

1、打开profile文件,添加变量:sudo vim /etc/profile

2、在其中添加:export DISPLAY=localhost:10.0

3、执行:source /etc/profile

Ubuntu设置修改root密码(初始密码)

在终端输入命令:sudo passwd root #回车

[sudo] password for kerwin: #输入当前用户密码
New password: #输入root新密码
Retype new password: #再次输入root密码
passwd: password updated successfully #密码更新成功

VM打开虚拟机版本报错:修改虚拟机中.vmx文件的virtualHW.version = "16"对应版本值

找不到文件: G:\Virtual Machines\ATK- DLRK3568\ATK-DL RK3568.vmdk 开启此虚拟机需要用到此文件。如果移动了此文件 , 请提供它的新位置。

解决:修改虚拟机中.vmx文件的scsi0:0.fileName = "E:\WorkSpace\Virtual Machines\ATK-DLRK3568\ATK-DLRK3568.vmdk"对应文件路径的值

在Github上拉取一个QT项目执行cmake时报错:

root@alientek-virtual-machine:/home/alientek/QtProject/cnc-qt-master/build# cma                                                                                                                                ke ..
CMake Deprecation Warning at CMakeLists.txt:5 (CMAKE_POLICY):
......
CMake Error at CMakeLists.txt:187 (FIND_PACKAGE):
  By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5" with any of
  the following names:

    Qt5Config.cmake
    qt5-config.cmake
.....
-- Configuring incomplete, errors occurred!



解决

sudo apt-get install qtbase5-dev
sudo apt-get install qtdeclarative5-dev

报错:QML debugging is enabled. Only use this in a safe environment.
QQmlApplicationEngine failed to load component
qrc:/main.qml:15:1: module "AQuickPlugin" is not installed

解决:使用release版本编译,因为release编译版本默认禁用QML调试器

解决QML debugging is enabled.Only use this in a safe environment.警告_qml debugging is enabled. only use this in a safe -CSDN博客

QQmlApplicationEngine failed to load component
qrc:/main.qml:15:1: module "AQuickPlugin" is not installed

  • 12
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值