nodegui / packer

Package and deploy apps built with NodeGui to all platforms
206 stars 14 forks source link

The plugins path in qt.conf (linux mint) points to a non-existent folder (Bug) #177

Open amaillo opened 1 year ago

amaillo commented 1 year ago

Hello, i was testing my app in linux mint (linuxmint-21.1-cinnamon-64bit) with a Virtual machine, after the installation in the console wrote:

sudo apt install -y git
sudo apt-get install -y nodejs
sudo apt install -y cmake
sudo cd my-app
sudo npm install
sudo npm start

sudo npx nodegui-packer --init my-app
sudo npx nodegui-packer --pack dist

Then i tried to run the .AppImage with ./AppRun, but the console print: qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""

I used QT_DEBUG_PLUGINS=1 ./AppRun and got: qt.core.plugin.factoryloader: checking directory path "/usr/lib/node_modules/my-app/deploy/linux/build/my-app/platforms"

The "platforms" folder does not exist, so i changed the path for plugins on qt.conf for /usr/lib/node_modules/@nodegui/nodegui/miniqt/6.4.1/gcc_64/plugins

All is working now, but since seems to be a bug, i wanted to make a post about it, have a good day/night.

heipiao233 commented 11 months ago

NodeGUI uses QT 6 now, but the newest version of this only supports QT 5. you can replace node_modules/@nodegui/packer/deps/linuxdeployqt with https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage

heipiao233 commented 11 months ago

If you need, @dmclmc/packer-fork