• Register
0 votes

Problem :

Facing following error
this application failed to start because it could not find or load the qt platform plugin "xcb"
6.9k points

1 Answer

0 votes

Solution :

You need to make sure that you have installed the platform plugins when you try to deploy your application. Depending on that you need to deploy things, there are mainly two methods to tell your application the location where the platform plugins are at runtime which should work for you.

To export the path to the directory through the QT_QPA_PLATFORM_PLUGIN_PATH variable.

e.g QT_QPA_PLATFORM_PLUGIN_PATH=path/to/plugins ./my_qt_app


export QT_QPA_PLATFORM_PLUGIN_PATH=path/to/plugins

The other option, which is to create a qt.conf file in the same directory which contains your executable. The contents of which would be:

36.1k points

Related questions

1 vote
1 answer 33 views
Problem : I am trying to using Qt 5.1.1 with Visual Studio 2012 Application is compiled in "Release"-mode and can be executed if directly started with Qt Creator. But when starting from the "release"-Folder, i get the following error this application failed to start because it could not find or load the qt platform plugin windows
asked Nov 11, 2019 peterlaw 6.9k points
1 vote
1 answer 22 views
Problem: I have gained fundamental knowledge on PHP programming after going through online tutorials. Now I am trying to debug the issue related with WP_cron() so I have tried to write the very short app to list the cron() tasks which are pending as shown below. <? php ... -wp-cron-test.php on line 12 Is there anything basic which I am missing about the building of a very simple plugin in PHP?
asked May 30 Martin K 6.6k points
0 votes
2 answers 181 views
Problem : I am new to Qt. I am trying to compile the hello world program in Qt Using Qt Creator. But I am getting following error 'cl' is not recognized as an internal or external command. I am on Windows 8 and also both Vs 2008 and 2010 installed on my machine ... error. Even after Setting my Env Path =..;..;C:\Program Files\Microsoft Visual Studio 9.0\VC\bin also it is showing the same error.
asked Nov 26, 2019 alecxe 7.5k points
0 votes
1 answer 19 views
Problem: I am very new to Cucumber. Recently I was reworking my project in the Intellij into my modules and suddenly I came across below error: "C:\Program Files\Java\jdk1.8.0_181\bin\java.exe" "-Dorg.jetbrains.run.directory=C:\Users\Raphael\Documents\1_Code Stuff ... guru-pet-clinic" Error: Could not find or load main class cucumber.cli.Main Can some Cucumber expert help me in fixing above error?
asked Jul 27 Raphael Pacheco 2.6k points
1 vote
1 answer 18 views
Problem: What is the meaning of Java could not find or load main class, and why does it happen? I&rsquo;ll appreciate your sharing.
asked Mar 6 Gavin 15.2k points