当前位置:网站首页>Solve could not find or load the QT platform plugin "xcb" in "

Solve could not find or load the QT platform plugin "xcb" in "

2022-07-07 07:38:00 Trendy technology research society

Error description :

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

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Reinstalling the application may fix this problem.
Debugging has finished

Compiled is a CMake project , All the problems in the compilation process have been solved , But something went wrong when running .

See the error description above , Is it a little confused ? Can't find “xcb”? But next line , What is the last one ?xcb ah , What's the situation , I found it ?

ok , The explanation of the error is not detailed enough

We need more error output .

Open the terminal under the compilation directory , Then type the following command ,

$export QT_DEBUG_PLUGINS=1

$./xxxx

( Directly in QtCreator Inside Build Adding parameter bar has no effect )

Then you can see the following output , There are actually more , But just pick out some relevant information ,

原网站

版权声明
本文为[Trendy technology research society]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207070402162832.html