• Register
0 votes
76 views

Problem :

Facing following error
this application failed to start because it could not find or load the qt platform plugin "xcb"
6 5 3
6,930 points

Please log in or register to answer this question.

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

or

export QT_QPA_PLATFORM_PLUGIN_PATH=path/to/plugins
./my_qt_app

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:

[Paths]
Plugins=/path/to/plugins
9 7 4
38,600 points

Related questions

1 vote
1 answer 92 views
92 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
0 votes
1 answer 1 view
1 view
Problem: Do you have any suggestions about how i can solve this problem,"unix could not find or load main class."
asked 22 hours ago Humaira ahmed 8.1k points
0 votes
1 answer 1 view
1 view
Problem: Do you have any ideas about how I would be able to fix this problem,"error: could not find or load main class linux."
asked 23 hours ago Humaira ahmed 8.1k points
0 votes
2 answers 923 views
923 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
1 vote
1 answer 15 views
15 views
Problem : I am new in java. I'm running Hadoop 2.2.0. I'm tring configuring hadoop on a server running CentOs. When I run start-dfs.sh or stop-dfs.sh, I get the following error: WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable HELP! I need help understanding this Error.
asked Mar 19 Shovo210 13.2k points
1 vote
1 answer 43 views
43 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, 2020 Martin K 6.6k points
0 votes
1 answer 2 views
2 views
Problem: I'm getting the error: Symbols not found for architecture x86_64
asked Mar 22 ummesalma 22.8k points
0 votes
1 answer 146 views
146 views
Problem: Is there someone who can help me solve this problem &ldquo;The application has failed to start because its side-by-side configuration is incorrect&rdquo;?
asked Mar 30 tuhin1 47.2k points
0 votes
1 answer 13 views
13 views
Problem: HELP! I need help understanding this. Thank you in advance.
asked Mar 9 ummesalma 22.8k points
0 votes
1 answer 2 views
2 views
Problem: What caused this problem," API-ms-win-core dll files " ?
asked 1 day ago zayed1 24.7k points