• Register
0 votes
47 views

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

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
38.6k points

Related questions

1 vote
1 answer 69 views
69 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 31 views
31 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 460 views
460 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 71 views
71 views
Problem : I am very new to the Linux but want to set up my MySQL databases on the Amazon ec2 instance. I have followed some directions I found about resetting a user login pass by using a --skip-grant-tables option of the MySQL. Now I want to add my user ... HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement How can I turn above option off?
asked Jan 30 jwilliam 3.9k points