nodegui / packer

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

Can't build on Linux #152

Open raphtlw opened 3 years ago

raphtlw commented 3 years ago

I get this error whenever I try to build my nodegui program:

~/Desktop/Minecraft/big-dub/ServerApp main*
❯ npm run build                                                   

> @ build /home/raphael/Desktop/Minecraft/big-dub/ServerApp
> tsc && nodegui-packer --pack ./dist

cleaning build directory at /home/raphael/Desktop/Minecraft/big-dub/ServerApp/deploy/linux/build
creating build directory at /home/raphael/Desktop/Minecraft/big-dub/ServerApp/deploy/linux/build
copying qode
copying dist
running linuxdeployqt
stderr: /usr/bin/AppImageLauncher: /home/raphael/Desktop/Minecraft/big-dub/ServerApp/node_modules/@nodegui/nodegui/miniqt/5.14.1/gcc_64/lib/libQt5Core.so.5: version `Qt_5.15' not found (required by /usr/bin/AppImageLauncher)

OS: Arch linux

eXConf commented 3 years ago

Same error with sample app on Linux Manjaro:

~/G/l/react-nodegui-starter ❯❯❯ npx nodegui-packer --pack ./dist                  18:27:48
cleaning build directory at /home/exconf/Github/lessons/react-nodegui-starter/deploy/linux/build
creating build directory at /home/exconf/Github/lessons/react-nodegui-starter/deploy/linux/build
copying qode
copying dist
running linuxdeployqt
stderr: /usr/bin/AppImageLauncher: /home/exconf/Github/lessons/react-nodegui-starter/node_modules/@nodegui/nodegui/miniqt/5.14.1/gcc_64/lib/libQt5Core.so.5: version `Qt_5.15' not found (required by /usr/bin/AppImageLauncher)

node:internal/process/promises:245
          triggerUncaughtException(err, true /* fromPromise */);
          ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "child process exited with code 1".] {
  code: 'ERR_UNHANDLED_REJECTION'
}
npm ERR! code 1
npm ERR! path /home/exconf/Github/lessons/react-nodegui-starter
npm ERR! command failed
npm ERR! command sh -c nodegui-packer "--pack" "./dist"

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/exconf/.npm/_logs/2021-02-26T15_28_43_365Z-debug.log