元芳给我记录qtcreator无法打开的问题

ubuntu安装qtcreator无法打开问题解决

一.安装过程

1.阿里源下载在线安装工具qt-unified-linux-x64-4.6.0-online.run
2../qt-unified-linux-x64-4.6.0-online.run运行,根据提示完成安装
3.默认安装路径为/home/user/Qt
4.ubuntu图形界面点击打开qtcreator无反应

二.问题解决

图形界面打开无反应,我们打开shell,进入qtcreator安装目录/home/user/Qt/Tools/QtCreator/bin使用命令行打开

./qtcreator

提示qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in ““ even though it was found.
这个可能因为缺少某个xcb依赖库。
我们去检查一下
ldd /home/kunming/Qt/6.6.1/gcc_64/plugins/platforms/libqxcb.so
结果发现
libxcb-cursor.so.0 => not found
根据结果,安装对应包sudo apt install libxcb-cursor0
安装完成,qt creator 成功启动!

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
在使用Qt Creator编译并运行应用程序时,出现了错误代码0xc000007b,表示应用程序无法正常启动。这个错误通常是由于缺少必要的依赖项导致的。根据引用中的描述,你可以尝试以下步骤解决这个问题: 1. 确保你使用的是Release方式编译生成exe程序,而不是Debug方式。Release方式会自动将依赖项包含在内。 2. 在开始菜单中找到Qt命令行工具,并打开它。 3. 输入命令`cd /d D:\hellomw`,将当前路径切换到你的项目所在的目录。 4. 使用命令`windeployqt hellomw.exe`,其中`hellomw.exe`是你生成的可执行文件的名称。这个命令会自动查找并拷贝所需的依赖项到你的项目目录中。 通过执行以上步骤,你应该能够解决这个启动错误,并成功运行你的Qt Creator应用程序。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [Qt开发,应用程序错误,应用程序无法正常启动0xc000007b](https://blog.csdn.net/weixin_43782998/article/details/120115528)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] - *2* *3* [QT出现应用程序无法正常启动0xc000007b的错误](https://blog.csdn.net/smartvxworks/article/details/116199355)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值