Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run the build artifacts? #105

Open
tom-sherman opened this issue Aug 28, 2020 · 8 comments
Open

How to run the build artifacts? #105

tom-sherman opened this issue Aug 28, 2020 · 8 comments

Comments

@tom-sherman
Copy link

tom-sherman commented Aug 28, 2020

After running packer on windows, I get the follwoing directory structure:

.
├── config.json
└── win32
    ├── NvmGui
    │   ├── platforms
    │   ├── qode.json
    │   └── styles
    └── build
        └── NvmGui
            ├── D3Dcompiler_47.dll
            ├── Qt5Core.dll
            ├── Qt5Gui.dll
            ├── Qt5Widgets.dll
            ├── dist
            │   ├── 08ef36629f2fe40bdcbe135ae303d949.jpg
            │   ├── index.js
            │   └── nodegui_core-1adbd57cebe81664d2e1405d9c9f704f.node
            ├── imageformats
            │   ├── qgif.dll
            │   ├── qico.dll
            │   └── qjpeg.dll
            ├── libEGL.dll
            ├── libGLESV2.dll
            ├── platforms
            │   └── qwindows.dll
            ├── qode.exe
            ├── qode.json
            └── styles
                └── qwindowsvistastyle.dll

How do I run the application? I tried running qode.exe which did nothing, I also tried running qode.exe and passing the path of the built index.js file as an argument, this also did nothing.

Everything works fine in dev mode.

I'm new to QT and native development in general so my next question is how should I go about creating a windows installer, but I'm sure I can figure that out myself when I can run the application!

@tom-sherman tom-sherman changed the title How do you run the build artifacts? How to run the build artifacts? Aug 28, 2020
@thcheung
Copy link

thcheung commented Sep 2, 2020

I think I am having the same issue. I followed the commands in this repo and tried running build/app/qode.exe by doubling clicking it. However, there is nothing pop up on the screen. (I am using Windows 10, the apps did work during development)

@sunmasters
Copy link

I also had same problem. This is the main issue with nodegui. I can't run on my client machine. Can't we run without visual studio?

@danielo515
Copy link

Hey, I had the same surprise when I setup a pipeline for the windows build. How are we supposed to use this? There is no info in the docs, and the docs doesn't mention that the windows build is going to be impossible to use.

@liudonghua123
Copy link
Contributor

I have the same problems.

@liudonghua123
Copy link
Contributor

Maybe it is related to nodegui/nodegui#907.

@liudonghua123
Copy link
Contributor

I have found my problems. I installed anaconda which included qt already, but the version is 5.9.7.0, when I run npx nodegui-packer --pack ./dist, the actual command D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\windeployqt.exe D:\code\node\nodegui-starter\dist\nodegui_core.node --verbose=2 --release --no-translations --compiler-runtime --dir=. will be executed which will use the qt bundled in anaconda instead of @nodegui\nodegui.

If I firstly executed set PATH=D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin;%PATH% then ran npx nodegui-packer --pack ./dist, it will be ok.

The related code is in

const winDeployQt = spawn(
winDeployQtBin,
[
...allAddons,
"--verbose=2",
"--release",
"--no-translations",
"--compiler-runtime",
`--dir=${buildDir}`,
],
{
cwd: buildDir,
}
);

See the following logs for more details.

cmd logs
D:\code\node\nodegui-starter\windeployqt>D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\windeployqt.exe --help
Usage: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\windeployqt.exe [options] [files]
Qt Deploy Tool 5.14.1

The simplest way to use windeployqt is to add the bin directory of your Qt
installation (e.g. <QT_DIR\bin>) to the PATH variable and then run:
  windeployqt <path-to-app-binary>
If ICU, ANGLE, etc. are not in the bin directory, they need to be in the PATH
variable. If your application uses Qt Quick, run:
  windeployqt --qmldir <path-to-app-qml-files> <path-to-app-binary>

Options:
  -?, -h, --help            Displays help on commandline options.
  --help-all                Displays help including Qt specific options.
  -v, --version             Displays version information.
  --dir <directory>         Use directory instead of binary directory.
  --libdir <path>           Copy libraries to path.
  --plugindir <path>        Copy plugins to path.
  --debug                   Assume debug binaries.
  --release                 Assume release binaries.
  --pdb                     Deploy .pdb files (MSVC).
  --force                   Force updating files.
  --dry-run                 Simulation mode. Behave normally, but do not
                            copy/update any files.
  --no-patchqt              Do not patch the Qt5Core library.
  --no-plugins              Skip plugin deployment.
  --no-libraries            Skip library deployment.
  --qmldir <directory>      Scan for QML-imports starting from directory.
  --qmlimport <directory>   Add the given path to the QML module search
                            locations.
  --no-quick-import         Skip deployment of Qt Quick imports.
  --no-translations         Skip deployment of translations.
  --no-system-d3d-compiler  Skip deployment of the system D3D compiler.
  --compiler-runtime        Deploy compiler runtime (Desktop only).
  --no-virtualkeyboard      Disable deployment of the Virtual Keyboard.
  --no-compiler-runtime     Do not deploy compiler runtime (Desktop only).
  --webkit2                 Deployment of WebKit2 (web process).
  --no-webkit2              Skip deployment of WebKit2.
  --json                    Print to stdout in JSON format.
  --angle                   Force deployment of ANGLE.
  --no-angle                Disable deployment of ANGLE.
  --no-opengl-sw            Do not deploy the software rasterizer library.
  --list <option>           Print only the names of the files copied.
                            Available options:
                             source:   absolute path of the source files
                             target:   absolute path of the target files
                             relative: paths of the target files, relative
                                       to the target directory
                             mapping:  outputs the source and the relative
                                       target, suitable for use within an
                                       Appx mapping file
  --verbose <level>         Verbose level (0-2).

Qt libraries can be added by passing their name (-xml) or removed by passing
the name prepended by --no- (--no-xml). Available libraries:
bluetooth concurrent core declarative designer designercomponents enginio
gamepad gui qthelp multimedia multimediawidgets multimediaquick network nfc
opengl positioning printsupport qml qmltooling quick quickparticles quickwidgets
script scripttools sensors serialport sql svg test webkit webkitwidgets
websockets widgets winextras xml xmlpatterns webenginecore webengine
webenginewidgets 3dcore 3drenderer 3dquick 3dquickrenderer 3dinput 3danimation
3dextras geoservices webchannel texttospeech serialbus webview

Arguments:
  [files]                   Binaries or directory containing the binary.

D:\code\node\nodegui-starter\windeployqt>D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\windeployqt.exe D:\code\node\nodegui-starter\dist\nodegui_core.node --verbose=2 --release --no-translations --compiler-runtime --dir=.
Qt binaries in C:\Users\Liu.D.H\anaconda3\Library\bin
readPeExecutable: D:\code\node\nodegui-starter\dist\nodegui_core.node 64 bit, dependent libraries: 15, release
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Svg.dll 64 bit, dependent libraries: 10
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Widgets.dll 64 bit, dependent libraries: 14
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Gui.dll 64 bit, dependent libraries: 17
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Core.dll 64 bit, dependent libraries: 23
D:\code\node\nodegui-starter\dist\nodegui_core.node 64 bit, release executable
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Core.dll 64 bit, dependent libraries: 23
Adding ICU version 58
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\plugins\iconengines\qsvgicon.dll 64 bit, release
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\plugins\iconengines\qsvgicon.dll 64 bit, dependent libraries: 7
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Svg.dll 64 bit, dependent libraries: 10
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Widgets.dll 64 bit, dependent libraries: 14
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Gui.dll 64 bit, dependent libraries: 17
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Core.dll 64 bit, dependent libraries: 23
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\plugins\imageformats\qgif.dll 64 bit, release
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\plugins\imageformats\qicns.dll 64 bit, release
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\plugins\imageformats\qico.dll 64 bit, release
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\plugins\imageformats\qjpeg.dll 64 bit, release
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\plugins\imageformats\qsvg.dll 64 bit, release
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\plugins\imageformats\qtga.dll 64 bit, release
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\plugins\imageformats\qtiff.dll 64 bit, release
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\plugins\imageformats\qwbmp.dll 64 bit, release
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\plugins\imageformats\qwebp.dll 64 bit, release
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\plugins\imageformats\qgif.dll 64 bit, dependent libraries: 7
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Gui.dll 64 bit, dependent libraries: 17
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Core.dll 64 bit, dependent libraries: 23
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\plugins\imageformats\qicns.dll 64 bit, dependent libraries: 7
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Gui.dll 64 bit, dependent libraries: 17
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Core.dll 64 bit, dependent libraries: 23
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\plugins\imageformats\qico.dll 64 bit, dependent libraries: 6
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Gui.dll 64 bit, dependent libraries: 17
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Core.dll 64 bit, dependent libraries: 23
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\plugins\imageformats\qjpeg.dll 64 bit, dependent libraries: 8
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Gui.dll 64 bit, dependent libraries: 17
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Core.dll 64 bit, dependent libraries: 23
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\plugins\imageformats\qsvg.dll 64 bit, dependent libraries: 7
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Svg.dll 64 bit, dependent libraries: 10
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Widgets.dll 64 bit, dependent libraries: 14
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Gui.dll 64 bit, dependent libraries: 17
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Core.dll 64 bit, dependent libraries: 23
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\plugins\imageformats\qtga.dll 64 bit, dependent libraries: 7
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Gui.dll 64 bit, dependent libraries: 17
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Core.dll 64 bit, dependent libraries: 23
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\plugins\imageformats\qtiff.dll 64 bit, dependent libraries: 13
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Gui.dll 64 bit, dependent libraries: 17
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Core.dll 64 bit, dependent libraries: 23
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\plugins\imageformats\qwbmp.dll 64 bit, dependent libraries: 6
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Gui.dll 64 bit, dependent libraries: 17
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Core.dll 64 bit, dependent libraries: 23
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\plugins\imageformats\qwebp.dll 64 bit, dependent libraries: 8
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Gui.dll 64 bit, dependent libraries: 17
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Core.dll 64 bit, dependent libraries: 23
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\plugins\platforminputcontexts\qtvirtualkeyboardplugin.dll 64 bit, release
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\plugins\platforminputcontexts\qtvirtualkeyboardplugin.dll 64 bit, dependent libraries: 8
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Quick.dll 64 bit, dependent libraries: 14
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Network.dll 64 bit, dependent libraries: 15
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Gui.dll 64 bit, dependent libraries: 17
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Qml.dll 64 bit, dependent libraries: 13
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Core.dll 64 bit, dependent libraries: 23
Skipping plugin qtvirtualkeyboardplugin.dll due to disabled dependencies (Qt5Qml Qt5Quick).
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\plugins\platforms\qwindows.dll 64 bit, release
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\plugins\platforms\qwindows.dll 64 bit, dependent libraries: 23
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Gui.dll 64 bit, dependent libraries: 17
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Core.dll 64 bit, dependent libraries: 23
Direct dependencies: Qt5Core Qt5Gui Qt5Svg Qt5Widgets
All dependencies   : Qt5Core Qt5Gui Qt5Svg Qt5Widgets
To be deployed     : Qt5Core Qt5Gui Qt5Svg Qt5Widgets
Plugins: C:/Users/Liu.D.H/anaconda3/Library/plugins/iconengines/qsvgicon.dll,C:/Users/Liu.D.H/anaconda3/Library/plugins/imageformats/qgif.dll,C:/Users/Liu.D.H/anaconda3/Library/plugins/imageformats/qicns.dll,C:/Users/Liu.D.H/anaconda3/Library/plugins/imageformats/qico.dll,C:/Users/Liu.D.H/anaconda3/Library/plugins/imageformats/qjpeg.dll,C:/Users/Liu.D.H/anaconda3/Library/plugins/imageformats/qsvg.dll,C:/Users/Liu.D.H/anaconda3/Library/plugins/imageformats/qtga.dll,C:/Users/Liu.D.H/anaconda3/Library/plugins/imageformats/qtiff.dll,C:/Users/Liu.D.H/anaconda3/Library/plugins/imageformats/qwbmp.dll,C:/Users/Liu.D.H/anaconda3/Library/plugins/imageformats/qwebp.dll,C:/Users/Liu.D.H/anaconda3/Library/plugins/platforms/qwindows.dll
readPeExecutable: C:\Users\Liu.D.H\anaconda3\Library\bin\Qt5Gui.dll 64 bit, dependent libraries: 17
readPeExecutable: C:\Windows\system32\D3Dcompiler_47.dll 64 bit
Warning: Cannot find Visual Studio installation directory, VCINSTALLDIR is not set.
Checking C:/Users/Liu.D.H/anaconda3/Library/bin/icuin58.dll, ./icuin58.dll
Updating icuin58.dll.
Checking C:/Users/Liu.D.H/anaconda3/Library/bin/icuuc58.dll, ./icuuc58.dll
Updating icuuc58.dll.
Checking C:/Users/Liu.D.H/anaconda3/Library/bin/icudt58.dll, ./icudt58.dll
Updating icudt58.dll.
Checking C:/Users/Liu.D.H/anaconda3/Library/bin/Qt5Core.dll, ./Qt5Core.dll
Updating Qt5Core.dll.
Checking C:/Users/Liu.D.H/anaconda3/Library/bin/Qt5Gui.dll, ./Qt5Gui.dll
Updating Qt5Gui.dll.
Checking C:/Users/Liu.D.H/anaconda3/Library/bin/Qt5Svg.dll, ./Qt5Svg.dll
Updating Qt5Svg.dll.
Checking C:/Users/Liu.D.H/anaconda3/Library/bin/Qt5Widgets.dll, ./Qt5Widgets.dll
Updating Qt5Widgets.dll.
Checking C:/Users/Liu.D.H/anaconda3/Library/bin/libGLESV2.dll, ./libGLESV2.dll
Updating libGLESV2.dll.
Checking C:/Users/Liu.D.H/anaconda3/Library/bin/libEGL.dll, ./libEGL.dll
Updating libEGL.dll.
Checking C:/Windows/system32/D3Dcompiler_47.dll, ./D3Dcompiler_47.dll
Updating D3Dcompiler_47.dll.
Checking C:/Users/Liu.D.H/anaconda3/Library/bin/opengl32sw.dll, ./opengl32sw.dll
Updating opengl32sw.dll.
Creating directory D:/code/node/nodegui-starter/windeployqt/iconengines.
Checking C:/Users/Liu.D.H/anaconda3/Library/plugins/iconengines/qsvgicon.dll, D:/code/node/nodegui-starter/windeployqt/iconengines/qsvgicon.dll
Updating qsvgicon.dll.
Creating directory D:/code/node/nodegui-starter/windeployqt/imageformats.
Checking C:/Users/Liu.D.H/anaconda3/Library/plugins/imageformats/qgif.dll, D:/code/node/nodegui-starter/windeployqt/imageformats/qgif.dll
Updating qgif.dll.
Checking C:/Users/Liu.D.H/anaconda3/Library/plugins/imageformats/qicns.dll, D:/code/node/nodegui-starter/windeployqt/imaChecking C:/Users/Liu.D.H/anaconda3/Library/plugins/imageformats/qicns.dll, D:/code/node/nodegui-starter/windeployqt/imageformats/qicns.dll
Updating qicns.dll.
Checking C:/Users/Liu.D.H/anaconda3/Library/plugins/imageformats/qico.dll, D:/code/node/nodegui-starter/windeployqt/imageformats/qico.dll
Updating qico.dll.
Checking C:/Users/Liu.D.H/anaconda3/Library/plugins/imageformats/qjpeg.dll, D:/code/node/nodegui-starter/windeployqt/imageformats/qjpeg.dll
Updating qjpeg.dll.
Checking C:/Users/Liu.D.H/anaconda3/Library/plugins/imageformats/qsvg.dll, D:/code/node/nodegui-starter/windeployqt/imageformats/qsvg.dll
Updating qsvg.dll.
Checking C:/Users/Liu.D.H/anaconda3/Library/plugins/imageformats/qtga.dll, D:/code/node/nodegui-starter/windeployqt/imageformats/qtga.dll
Updating qtga.dll.
Checking C:/Users/Liu.D.H/anaconda3/Library/plugins/imageformats/qtiff.dll, D:/code/node/nodegui-starter/windeployqt/imageformats/qtiff.dll
Updating qtiff.dll.
Checking C:/Users/Liu.D.H/anaconda3/Library/plugins/imageformats/qwbmp.dll, D:/code/node/nodegui-starter/windeployqt/imageformats/qwbmp.dll
Updating qwbmp.dll.
Checking C:/Users/Liu.D.H/anaconda3/Library/plugins/imageformats/qwebp.dll, D:/code/node/nodegui-starter/windeployqt/imageformats/qwebp.dll
Updating qwebp.dll.
Creating directory D:/code/node/nodegui-starter/windeployqt/platforms.
Checking C:/Users/Liu.D.H/anaconda3/Library/plugins/platforms/qwindows.dll, D:/code/node/nodegui-starter/windeployqt/platforms/qwindows.dll
Updating qwindows.dll.

D:\code\node\nodegui-starter\windeployqt>set PATH=D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin;%PATH%

D:\code\node\nodegui-starter\windeployqt>D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\windeployqt.exe D:\code\node\nodegui-starter\dist\nodegui_core.node --verbose=2 --release --no-translations --compiler-runtime --dir=../windeployqt.1
Qt binaries in D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin
readPeExecutable: D:\code\node\nodegui-starter\dist\nodegui_core.node 64 bit, dependent libraries: 15, release
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\Qt5Svg.dll 64 bit, dependent libraries: 9
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\Qt5Widgets.dll 64 bit, dependent libraries: 15
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\Qt5Gui.dll 64 bit, dependent libraries: 17
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\Qt5Core.dll 64 bit, dependent libraries: 22
D:\code\node\nodegui-starter\dist\nodegui_core.node 64 bit, release executable
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\Qt5Core.dll 64 bit, dependent libraries: 22
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\plugins\iconengines\qsvgicon.dll 64 bit, release
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\plugins\iconengines\qsvgicond.dll 64 bit, debug
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\plugins\iconengines\qsvgicon.dll 64 bit, dependent libraries: 7
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\Qt5Svg.dll 64 bit, dependent libraries: 9
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\Qt5Widgets.dll 64 bit, dependent libraries: 15
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\Qt5Gui.dll 64 bit, dependent libraries: 17
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\Qt5Core.dll 64 bit, dependent libraries: 22
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\plugins\imageformats\qgif.dll 64 bit, release
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\plugins\imageformats\qgifd.dll 64 bit, debug
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\plugins\imageformats\qico.dll 64 bit, release
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\plugins\imageformats\qicod.dll 64 bit, debug
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\plugins\imageformats\qjpeg.dll 64 bit, release
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\plugins\imageformats\qjpegd.dll 64 bit, debug
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\plugins\imageformats\qsvg.dll 64 bit, release
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\plugins\imageformats\qsvgd.dll 64 bit, debug
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\plugins\imageformats\qgif.dll 64 bit, dependent libraries: 7
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\Qt5Gui.dll 64 bit, dependent libraries: 17
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\Qt5Core.dll 64 bit, dependent libraries: 22
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\plugins\imageformats\qico.dll 64 bit, dependent libraries: 6
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\Qt5Gui.dll 64 bit, dependent libraries: 17
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\Qt5Core.dll 64 bit, dependent libraries: 22
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\plugins\imageformats\qjpeg.dll 64 bit, dependent libraries: 10
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\Qt5Gui.dll 64 bit, dependent libraries: 17
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\Qt5Core.dll 64 bit, dependent libraries: 22
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\plugins\imageformats\qsvg.dll 64 bit, dependent libraries: 7
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\Qt5Svg.dll 64 bit, dependent libraries: 9
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\Qt5Widgets.dll 64 bit, dependent libraries: 15
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\Qt5Gui.dll 64 bit, dependent libraries: 17
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\Qt5Core.dll 64 bit, dependent libraries: 22
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\plugins\platforms\qwindows.dll 64 bit, release
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\plugins\platforms\qwindows.dll 64 bit, dependent libraries: 22
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\Qt5Gui.dll 64 bit, dependent libraries: 17
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\Qt5Core.dll 64 bit, dependent libraries: 22
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\plugins\styles\qwindowsvistastyle.dll 64 bit, release
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\plugins\styles\qwindowsvistastyled.dll 64 bit, debug
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\plugins\styles\qwindowsvistastyle.dll 64 bit, dependent libraries: 10
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\Qt5Widgets.dll 64 bit, dependent libraries: 15
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\Qt5Gui.dll 64 bit, dependent libraries: 17
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\Qt5Core.dll 64 bit, dependent libraries: 22
Direct dependencies: Qt5Core Qt5Gui Qt5Svg Qt5Widgets
All dependencies   : Qt5Core Qt5Gui Qt5Svg Qt5Widgets
To be deployed     : Qt5Core Qt5Gui Qt5Svg Qt5Widgets
Plugins: D:/code/node/nodegui-starter/node_modules/@nodegui/nodegui/miniqt/5.14.1/msvc2017_64/plugins/iconengines/qsvgicon.dll,D:/code/node/nodegui-starter/node_modules/@nodegui/nodegui/miniqt/5.14.1/msvc2017_64/plugins/imageformats/qgif.dll,D:/code/node/nodegui-starter/node_modules/@nodegui/nodegui/miniqt/5.14.1/msvc2017_64/plugins/imageformats/qico.dll,D:/code/node/nodegui-starter/node_modules/@nodegui/nodegui/miniqt/5.14.1/msvc2017_64/plugins/imageformats/qjpeg.dll,D:/code/node/nodegui-starter/node_modules/@nodegui/nodegui/miniqt/5.14.1/msvc2017_64/plugins/imageformats/qsvg.dll,D:/code/node/nodegui-starter/node_modules/@nodegui/nodegui/miniqt/5.14.1/msvc2017_64/plugins/platforms/qwindows.dll,D:/code/node/nodegui-starter/node_modules/@nodegui/nodegui/miniqt/5.14.1/msvc2017_64/plugins/styles/qwindowsvistastyle.dll
readPeExecutable: D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\Qt5Gui.dll 64 bit, dependent libraries: 17
readPeExecutable: C:\Windows\system32\D3Dcompiler_47.dll 64 bit
Warning: Cannot find Visual Studio installation directory, VCINSTALLDIR is not set.
Checking D:/code/node/nodegui-starter/node_modules/@nodegui/nodegui/miniqt/5.14.1/msvc2017_64/bin/Qt5Core.dll, ../windeployqt.1/Qt5Core.dll
Updating Qt5Core.dll.
Checking D:/code/node/nodegui-starter/node_modules/@nodegui/nodegui/miniqt/5.14.1/msvc2017_64/bin/Qt5Gui.dll, ../windeployqt.1/Qt5Gui.dll
Updating Qt5Gui.dll.
Checking D:/code/node/nodegui-starter/node_modules/@nodegui/nodegui/miniqt/5.14.1/msvc2017_64/bin/Qt5Svg.dll, ../windeployqt.1/Qt5Svg.dll
Updating Qt5Svg.dll.
Checking D:/code/node/nodegui-starter/node_modules/@nodegui/nodegui/miniqt/5.14.1/msvc2017_64/bin/Qt5Widgets.dll, ../windeployqt.1/Qt5Widgets.dll
Updating Qt5Widgets.dll.
Checking D:/code/node/nodegui-starter/node_modules/@nodegui/nodegui/miniqt/5.14.1/msvc2017_64/bin/libGLESV2.dll, ../windeployqt.1/libGLESV2.dll
Updating libGLESV2.dll.
Checking D:/code/node/nodegui-starter/node_modules/@nodegui/nodegui/miniqt/5.14.1/msvc2017_64/bin/libEGL.dll, ../windeployqt.1/libEGL.dll
Updating libEGL.dll.
Checking C:/Windows/system32/D3Dcompiler_47.dll, ../windeployqt.1/D3Dcompiler_47.dll
Updating D3Dcompiler_47.dll.
Creating directory D:/code/node/nodegui-starter/windeployqt.1/iconengines.
Checking D:/code/node/nodegui-starter/node_modules/@nodegui/nodegui/miniqt/5.14.1/msvc2017_64/plugins/iconengines/qsvgicon.dll, D:/code/node/nodegui-starter/windeployqt.1/iconengines/qsvgicon.dll
Updating qsvgicon.dll.
Creating directory D:/code/node/nodegui-starter/windeployqt.1/imageformats.
Checking D:/code/node/nodegui-starter/node_modules/@nodegui/nodegui/miniqt/5.14.1/msvc2017_64/plugins/imageformats/qgif.dll, D:/code/node/nodegui-starter/windeployqt.1/imageformats/qgif.dll
Updating qgif.dll.
Checking D:/code/node/nodegui-starter/node_modules/@nodegui/nodegui/miniqt/5.14.1/msvc2017_64/plugins/imageformats/qico.dll, D:/code/node/nodegui-starter/windeployqt.1/imageformats/qico.dll
Updating qico.dll.
Checking D:/code/node/nodegui-starter/node_modules/@nodegui/nodegui/miniqt/5.14.1/msvc2017_64/plugins/imageformats/qjpeg.dll, D:/code/node/nodegui-starter/windeployqt.1/imageformats/qjpeg.dll
Updating qjpeg.dll.
Checking D:/code/node/nodegui-starter/node_modules/@nodegui/nodegui/miniqt/5.14.1/msvc2017_64/plugins/imageformats/qsvg.dll, D:/code/node/nodegui-starter/windeployqt.1/imageformats/qsvg.dll
Updating qsvg.dll.
Creating directory D:/code/node/nodegui-starter/windeployqt.1/platforms.
Checking D:/code/node/nodegui-starter/node_modules/@nodegui/nodegui/miniqt/5.14.1/msvc2017_64/plugins/platforms/qwindows.dll, D:/code/node/nodegui-starter/windeployqt.1/platforms/qwindows.dll
Updating qwindows.dll.
Creating directory D:/code/node/nodegui-starter/windeployqt.1/styles.
Checking D:/code/node/nodegui-starter/node_modules/@nodegui/nodegui/miniqt/5.14.1/msvc2017_64/plugins/styles/qwindowsvistastyle.dll, D:/code/node/nodegui-starter/windeployqt.1/styles/qwindowsvistastyle.dll
Updating qwindowsvistastyle.dll.

D:\code\node\nodegui-starter\windeployqt>

liudonghua123 added a commit to liudonghua123/packer that referenced this issue Jan 4, 2022
a7ul pushed a commit that referenced this issue Jan 4, 2022
* fix packing uses the wrong qt

see #105 (comment) for more details

* fix PATH separator mistake
@thantez
Copy link

thantez commented Jan 31, 2022

I have found my problems. I installed anaconda which included qt already, but the version is 5.9.7.0, when I run npx nodegui-packer --pack ./dist, the actual command D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin\windeployqt.exe D:\code\node\nodegui-starter\dist\nodegui_core.node --verbose=2 --release --no-translations --compiler-runtime --dir=. will be executed which will use the qt bundled in anaconda instead of @nodegui\nodegui.

If I firstly executed set PATH=D:\code\node\nodegui-starter\node_modules\@nodegui\nodegui\miniqt\5.14.1\msvc2017_64\bin;%PATH% then ran npx nodegui-packer --pack ./dist, it will be ok.

The related code is in

const winDeployQt = spawn(
winDeployQtBin,
[
...allAddons,
"--verbose=2",
"--release",
"--no-translations",
"--compiler-runtime",
`--dir=${buildDir}`,
],
{
cwd: buildDir,
}
);

See the following logs for more details.
cmd logs

This solution doesn't work on Linux, although the PATH was wrong in this Environment too. What should we do?

@xandyxor
Copy link

This solution doesn't work on Windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants