packer icon indicating copy to clipboard operation
packer copied to clipboard

qt.conf in Ubuntu is being ignored

Open amaillo opened this issue 2 years ago • 0 comments

This issue is related to https://github.com/nodegui/packer/issues/177

This time I was using Ubuntu 22.04.3 Jammy , but when modified qt.conf as in issue https://github.com/nodegui/packer/issues/177 to run my app, was not working.

After that, I used

sudo QT_DEBUG_PLUGINS=1 ./AppRun

And then got

qt.core.plugin.factoryloader: checking directory path "/home/User/MyApp/deploy/linux/build/MyApp/platforms" ...

qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""

qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""

This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

I had to use the following command to run my app:

sudo QT_PLUGIN_PATH=~/MyApp/node_modules/@nodegui/nodegui/miniqt/6.4.1/gcc_64/plugins ./AppRun

I leave it here since it can be useful for anyone else.

amaillo avatar Oct 12 '23 14:10 amaillo