qt5解决This application failed to start because it could not find or load the Qt platform plugin "xc

解决“This application failed to start because it could not find...“的问题 问题描述: 在学习动态排版的时候,使用Rstudio运行Latex、R和Python代码,运行Python有关画图的代码的时候弹窗报错 "This application failed to start because it could not find or load the Qt platform plugin “windows” 原因分析: 具体原因其实我也不太懂,网上搜索了好多种解决方式都试过了还是不行,最后自己琢磨琢磨出来的,仅供参考~ 解决方案: 1: 首先说说我的解决方法,添加QT的环境变 阅读详情

pyqt5解决This application failed to start because it could not find or load the Qt platform plugin “xcb”.

bug提示信息

This application failed to start because it could not find or load the Qt platform plugin “xcb”.
Available platform plugins are: linuxfb, minimal, offscreen, xcb.
Reinstalling the application may fix this problem. Aborted (core dumped)

问题定位

  1. 定位xcb的路径,通过ldd指令查看xcb库的依赖库状况。这里我们在执行 ldd ~/miniconda3/lib/python3.7/site-packages/PyQt5/Qt/plugins/platforms/libqxcb.so出现了一条信息:

    libxkbcommon-x11.so.0 => not found。

20191126034007.png

问题原因

在Qt-5.12.1更新日志中描述:xkbcommon库被移除,因为基本所以的平台中都默认有这个库了。

[QTBUG-65503] Removed xkbcommon from bundled sources. This library is present on all supported platforms. The minimal required version now is 0.5.0.

解决方案

手动安装libxkbcommon-x11.so.0库即可。
在这里提供ubuntu系统对应的安装指令: sudo apt-get install libxkbcommon-x11-0.

ROS 2 Windows二进制安装指南:15分钟快速部署实操 ROS 2 是面向机器人系统的中间件框架,其核心依赖于 DDS 通信、C++/Python 客户端库(rclcpp/rclpy)及运行时管理器(RMW)。在 Windows 平台,源码编译常因 MSVC 工具链、Python 环境冲突与路径长度限制(MAX_PATH)而失败;相比之下,官方提供的 Windows 二进制安装(binary release)通过预编译组件、conda-forge 依赖分发与 pixi 环境管理,实现稳定、可复现的轻量级部署。该方案规避了 ABI 不兼容、DLL 加载失败等典型问 阅读详情

相关推荐

成功解决This application failed to start because it could not find or load the Qt platform plugin “windo

​ 成功解决This application failed to start because it could not find or load the Qt platform plugin “windows” in "!Reinstalling the application may fix this problem. 目录 解决问题 解决思路 解决方法 解决问题 This application failed to start because it could not find or

头部AI社区如有邀博主AI主题演讲请私信—心比天高,仗剑走天涯,保持热爱,奔赴向梦想!低调,专注,谦虚,自律,反思,成长,还算比较正能量的博主,公益免费传播…内心特别想在AI界做出一些可以推进历史进程影响力的技术(兴趣使然,有点小情怀,也有点使命感呀 3351

WSL踩过的坑。二(安装qt)

安装后启动出现问题:Could not load the Qt platform plugin "xcb"

swap_data的博客 1362

libxkbcommon-x11-0.7.1-3.el7.i686.rpm

官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装

阿里云linux主机安装qt报错:缺少libxkbcommon-x11.so.0

ubuntu云主机安装xfce桌面后,下载qt5.12.10,开发桌面应用,安装qt时报错缺少libxkbcommon-x11.so.0。 由于xfce是轻量级桌面不带libxkbcommon-x11.so.0,而qt5.12.10默认系统已经自带,所以,报错。此时更新一下apt源信息,然后重新安装即可。 apt-get update apt-get install libxkbcommon-x11-0 ./qt-opensource-linux-x64-5.12.1...

健忘16的博客 1万+

双重机器学习 stata教程 手把手教学

双重机器学习(DDML)的stata教程

weixin_59030591的博客 1万+

STM32H745xI双核芯片SMPS/LDO配置误区:从复位失败到精准排查的实战复盘

本文详细分析了STM32H745xI双核芯片在SMPS/LDO配置中的常见误区,特别是复位失败问题的排查过程。通过对比参考板与故障板的波形数据,揭示了电感选型不当导致的电源稳定性问题,并提供了硬件设计检查清单和调试技巧,帮助开发者避免类似陷阱。

weixin_42531588的博客 267

This application failed to start because it could not find or load the Qt platform plugin “xcb“.

This application failed to start because it could not find or load the Qt platform plugin “xcb”. linux系统下Qt5编译好的程序在未安装Qt的系统下运行会报以下错误: This application failed to start because it could not find or load the Qt platform plugin “xcb”. Reinstalling the applicat

wanyongtai的博客 245

Clang Static Analyzer 使用教程:本地 + CMake + GitHub Actions 自动静态分析实战

本文介绍了ClangStaticAnalyzer静态代码分析工具的使用方法。该工具基于Clang/LLVM,可检测C/C++代码中的内存泄漏、空指针等常见错误。主要内容包括:安装指南(Ubuntu/macOS/Windows)、命令行使用方法、CMake项目集成方案、GitHub Actions自动化分析配置,以及HTML报告生成与查看。文章还提供了官方资源链接,帮助开发者系统掌握从本地调试到持续集成的完整静态分析工作流,提升代码质量保障能力。适用于需要在开发过程中实施静态分析的C/C++项目。

u014358031的博客 2159

银河麒麟V10操控系统Qt安装

cannot find -lGL,缺少libxkbcommon-x11.so.0,银河麒麟V10操控系统安装

qq_39314918的博客 8780

相机标定原理与张氏标定法

这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入 欢迎使用Markdown编辑器 你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Mar

heeweii的博客 2281

linux 驱动 - pinctrl子系统

分析总结 pinctrl 子系统框架结构,平台 mtk6771 内核版本 kernel-4.4 , 本文所有的分析均基于此版本。

sty01z的博客 1559

centos打开spyder报错:libxkbcommon-x11.so.0: cannot open shared object file: No such file or directory

centos打开spyder报错:libxkbcommon-x11.so.0: cannot open shared object file: No such file or directory

qq_45633793的博客 1965

图数据挖掘 ECC K-core core number truss number clique

K-core:什么叫k-core,给定一个正整数k(k>=0),k-core是一个G的最大子图(也就是说k-core是一个图的限制),将这个子图定义为Hk,对于Hk中的每个顶点v,他的度数都是大于等于k的。 k-core是内嵌的,如下图所示,集合{ABCD}是H3,也就是3-core的子图。而集合{ABCDE}是H2,也就是2-core的子图,集合{ABCDEGF}是H1,也就是1-core的子图,而从集合的角度来讲H3<H2<H1。 core number:什么叫kcor

weixin_45193103的博客 1690

Pycharm问题:this applicatation failed to start because it could not find or laod the qt plaform plugin

添加系统变量:控制面板—>系统和安全—>系统—>高级系统设置—>高级—>环境变量,接着重启pycharm即可

ZFour_X的博客 4027

C++笔记之emplace_back(),push_back()性能比较i++ 、 ++i

操作是否需要临时对象/拷贝性能需要(构造临时对象)较慢不需要(直接构造)较快i++需要(保存旧值)对于内置类型无影响,但对于自定义类型(如迭代器、大对象)会有拷贝开销++i不需要相对更快(尤其是自定义类型)都存在"是否需要额外的临时对象/拷贝"这一性能差异点和++i都是更高效的版本(避免临时对象/拷贝)和i++都可能产生额外的临时对象(前者构造临时对象,后者保存旧值)对于内置类型(如int),i++和++i性能几乎没有差异(编译器会优化);但对于自定义类型(尤其是迭代器等重量级对象),

小勇博客 104

整车电检工艺流程

本文是笔者在从事汽车行业智能制造领域过程,对于整车电检工艺流程的理解与总结。

qq_40664711的博客 1万+

This application failed to start because it could not find or load the Qt platform plugin windows

一、问题出现 在win7 x64系统下,使用Qt5.6.2 MinGW32开发的程序,在本机运行没问题,可是把.exe和用到的.dll打包发到别人电脑上却运行不了,报错如下: 二、原因分析 为什么会这样?这是因为程序运行需要Qt本身的一些dll动态库,把这些缺失的dll补上就可以了。需要注意的是:一般遇到这个报错,是缺少plugins文件夹下的platforms和imageformats两个文件夹内的dll动态库。 三、解决办法 因此,解决办法就是将Qt安装目录下对应的动态库dll文.

woshisaoge的专栏 1万+

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

解决This application failed to start because it could not find or load the Qt platform plugin "windows

PyQt5+python做UI时,使用pyinstaller打包成exe,点击运行exe文件时,出现This application failed to start because it could not find or load the Qt platform plugin "windows错误。问题是,缺少必要的dll文件,我们找到路径:C:\ANACONDA\Lib\site-packag...

Perfect_Accepted 7万+

怀旧版电脑GBC模拟器

再现原版GBC掌机的界面,电脑运行连游戏界面都一样大小,很怀旧,很真实,(英文版)强烈推荐,很小的文件,很难才找到的。

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

踩坑--linux配置fbcnet环境

2.运行报错:libxkbcommon-x11.so.0: cannot open shared object file: No such file or directory。解决:linux里面装gcc -》显示ubuntu源问题 -》 apt源更新。解决:缺少libxkbcommon-x11.so.0库,1.psutil==5.6.3装不上。

qq_53635710的博客 396

jdk-8u144-linux-x64.tar.gz.

该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包

5分钟解决egui项目在Linux环境下缺失libxkbcommon-x11.so的问题

在Linux系统中开发egui应用时,你是否遇到过启动程序时突然报错缺少`libxkbcommon-x11.so`文件的情况?这个问题通常发生在首次运行基于egui的原生应用时,特别是使用官方推荐的[egui_glow](https://link.gitcode.com/i/704b83ac442e3a97bf7d9eee0dadc927)后端时。本文将带你快速定位问题原因,并通过3个简单步骤彻底...

gitblog_00953的博客 776

This application failed to start because it could not find or load the Qt platform plugin “windows“.

上述两种方案都没有解决我的问题。但是基本可以确定就是因为dll文件出的问题,于是我把环境变量下把32位的dll所在的bin文件夹从环境变量中删除了,问题消失。同样的方式也可以每次手动配以下自己所用的bin文件,感觉对这个问题也有帮助。好多同学的解决方案都是因为缺少了qwindows.dll 库,找到安装路径下连文件夹带文件copy到.exe 程序对应的文件夹写就可解决。另还有一种解决方案就是使用windeployqt .exe这个命令来进行直接拷贝。

weixin_45013621的博客 2129

This application failed to start because it could not find or load the Qt platform plugin “windows“

以上错误“This application failed to start because it could not find or load the Qt platform plugin ‘windows’”的原因通常涉及Qt应用程序在尝试启动并初始化其图形用户界面(GUI)时,无法找到或正确加载必要的平台插件。如果问题依旧存在,可能需要更详细地检查应用程序的日志或输出信息,以获取更具体的错误信息,或者考虑寻求来自Qt社区或专业开发者的帮助。

浩瀚之水的专栏 3953

This application failed to start because it could not find or load the Qt platform plugin

This application failed to start because it could not find or load the Qt platform plugin问题描述解决过程解决方案猜测1猜测2 问题描述 在window11上安装最新版本的pyqt5: pip install sip pip install pyqt5-tools 这样就会把pyqt5所有的工具都安装上啦。 然鹅!事情并不简单~ 运行弹窗信息: This application failed to start becau

big__banana的博客 6835

Qt报错This application failed to start because it could not find or load the Qt platform plugin “windo

Qt运行时报错: This application failed to start because it could not find or load the Qt platform plugin "windows" Reinstalling the application may fix this problem. 解决办法: QT为了简化生成发布版本,特别提供了工具 "windeployqt.exe",这个工具在 "...\Qt5.8.0\5.8\msvc2015_64\bin"的目录下,通过该

Mmagic1的博客 8478
上一篇: 《Estimator工程实现》系列三: 模型导出示例
CapsulE_07
博客等级 码龄10年 10粉丝 8原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值
⌂ 换网址