after playing arround for some hours to the get a compiled windows exe, which finally worked. (the exe file still does not start but ok...)
this is now a little bit longer
i've look into the issue with @ronomon\base64...
the same issue is reproduceable for me when calling
PS F:\animator-5.1.2> yarn electron-rebuild
`yarn run v1.13.0
$ F:\animator-5.1.2\node_modules.bin\electron-rebuild
× Rebuild Failed
An unhandled error occurred inside electron-rebuild
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info spawn C:\Users\root.windows-build-tools\python27\python.exe
gyp info spawn args [ 'F:\animator-5.1.2\node_modules\node-gyp\gyp\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=2015',
gyp info spawn args '-I',
gyp info spawn args 'F:\animator-5.1.2\node_modules\@ronomon\base64\build\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'F:\animator-5.1.2\node_modules\node-gyp\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\root\.electron-gyp\iojs-2.0.8\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\Users\root\.electron-gyp\iojs-2.0.8',
gyp info spawn args '-Dnode_gyp_dir=F:\animator-5.1.2\node_modules\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\Users\root\.electron-gyp\iojs-2.0.8\<(target_arch)\iojs.lib',
gyp info spawn args '-Dmodule_root_dir=F:\animator-5.1.2\node_modules\@ronomon\base64',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'F:\animator-5.1.2\node_modules\@ronomon\base64\build',
gyp info spawn args '-Goutput_dir=.' ]
Warning: Missing input files:
F:\animator-5.1.2\node_modules@ronomon\base64\build\Release\binding.node
gyp info spawn C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
F:\animator-5.1.2\node_modules@ronomon\base64\build\binding.vcxproj(20,3): error MSB4019: The imported project "F:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (F:\animator-5.1.2\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 10.0.19044
gyp ERR! command "C:\Program Files\nodejs\versions\v8.15.1\node.exe" "F:\animator-5.1.2\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--target=2.0.8" "--arch=x64" "--dist-url=https://atom.io/download/electron" "--build-from-source" "--msvs_version=2015"
gyp ERR! cwd F:\animator-5.1.2\node_modules@ronomon\base64
gyp ERR! node -v v8.15.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Failed with exit code: 1
Error: gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info spawn C:\Users\root.windows-build-tools\python27\python.exe
gyp info spawn args [ 'F:\animator-5.1.2\node_modules\node-gyp\gyp\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=2015',
gyp info spawn args '-I',
gyp info spawn args 'F:\animator-5.1.2\node_modules\@ronomon\base64\build\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'F:\animator-5.1.2\node_modules\node-gyp\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\root\.electron-gyp\iojs-2.0.8\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\Users\root\.electron-gyp\iojs-2.0.8',
gyp info spawn args '-Dnode_gyp_dir=F:\animator-5.1.2\node_modules\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\Users\root\.electron-gyp\iojs-2.0.8\<(target_arch)\iojs.lib',
gyp info spawn args '-Dmodule_root_dir=F:\animator-5.1.2\node_modules\@ronomon\base64',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'F:\animator-5.1.2\node_modules\@ronomon\base64\build',
gyp info spawn args '-Goutput_dir=.' ]
Warning: Missing input files:
F:\animator-5.1.2\node_modules@ronomon\base64\build\Release\binding.node
gyp info spawn C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
F:\animator-5.1.2\node_modules@ronomon\base64\build\binding.vcxproj(20,3): error MSB4019: The imported project "F:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (F:\animator-5.1.2\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 10.0.19044
gyp ERR! command "C:\Program Files\nodejs\versions\v8.15.1\node.exe" "F:\animator-5.1.2\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--target=2.0.8" "--arch=x64" "--dist-url=https://atom.io/download/electron" "--build-from-source" "--msvs_version=2015"
gyp ERR! cwd F:\animator-5.1.2\node_modules@ronomon\base64
gyp ERR! node -v v8.15.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Failed with exit code: 1
at SafeSubscriber._error (F:\animator-5.1.2\node_modules\spawn-rx\lib\src\index.js:267:84)
at SafeSubscriber.__tryOrUnsub (F:\animator-5.1.2\node_modules\rxjs\internal\Subscriber.js:207:16)
at SafeSubscriber.error (F:\animator-5.1.2\node_modules\rxjs\internal\Subscriber.js:158:26)
at Subscriber._error (F:\animator-5.1.2\node_modules\rxjs\internal\Subscriber.js:92:26)
at Subscriber.error (F:\animator-5.1.2\node_modules\rxjs\internal\Subscriber.js:72:18)
at MapSubscriber.Subscriber._error (F:\animator-5.1.2\node_modules\rxjs\internal\Subscriber.js:92:26)
at MapSubscriber.Subscriber.error (F:\animator-5.1.2\node_modules\rxjs\internal\Subscriber.js:72:18)
at SafeSubscriber._next (F:\animator-5.1.2\node_modules\spawn-rx\lib\src\index.js:242:65)
at SafeSubscriber.__tryOrUnsub (F:\animator-5.1.2\node_modules\rxjs\internal\Subscriber.js:207:16)
at SafeSubscriber.next (F:\animator-5.1.2\node_modules\rxjs\internal\Subscriber.js:145:22)
error Command failed with exit code 4294967295.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.`
when checking the directory
F:\animator-5.1.2\node_modules@ronomon\base64\build
there is no Release folder with files in it...
now comes the interesting part...
electron-rebuild uses node-gyp to process F:\animator-5.1.2\node_modules@ronomon\base64 => binding.gyp
good...
the package compiles on windows when switching direct to the folder...
PS F:\animator-5.1.2> cd node_modules/@ronomon/base64
PS F:\animator-5.1.2\node_modules@ronomon\base64> node-gyp rebuild
i get following
PS F:\animator-5.1.2> cd node_modules/@ronomon/base64
PS F:\animator-5.1.2\node_modules@ronomon\base64> node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info find Python using Python version 2.7.18 found at "C:\Python27\python.exe"
gyp info find VS using VS2019 (16.8.30907.101) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Python27\python.exe
gyp info spawn args [ 'C:\Users\root\AppData\Roaming\npm\node_modules\node-gyp\gyp\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-I',
gyp info spawn args 'F:\animator-5.1.2\node_modules\@ronomon\base64\build\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\root\AppData\Roaming\npm\node_modules\node-gyp\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\root\AppData\Local\node-gyp\Cache\8.15.1\include\node\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\Users\root\AppData\Local\node-gyp\Cache\8.15.1',
gyp info spawn args '-Dnode_gyp_dir=C:\Users\root\AppData\Roaming\npm\node_modules\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\Users\\root\\AppData\\Local\\node-gyp\\Cache\\8.15.1\\<(target_arch)\\node.lib',
gyp info spawn args '-Dmodule_root_dir=F:\animator-5.1.2\node_modules\@ronomon\base64',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'F:\animator-5.1.2\node_modules\@ronomon\base64\build',
gyp info spawn args '-Goutput_dir=.' ]
Warning: Missing input files:
F:\animator-5.1.2\node_modules@ronomon\base64\build\Release\binding.node
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64' ]
Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parallele Erstellung zu ermöglichen, müssen Sie den Schalter "-m" hinzufügen.
binding.cc
win_delay_load_hook.cc
Bibliothek "F:\animator-5.1.2\node_modules@ronomon\base64\build\Release\binding.lib" und Objekt "F:\animator-5.1.2\node_modules@ronomon\base64\build\Release\binding.exp" werden erstellt.
Code wird generiert.
Previous IPDB not found, fall back to full compilation.
All 101 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
Codegenerierung ist abgeschlossen.
binding.vcxproj -> F:\animator-5.1.2\node_modules@ronomon\base64\build\Release\binding.node
Copying F:\animator-5.1.2\node_modules@ronomon\base64/build/Release/binding.node to F:\animator-5.1.2\node_modules@ronomon\base64
1 Datei(en) kopiert.
gyp info ok
checking the folder node_modules@ronomon\base64\build\Release\ exists with all needed files for compiling...
switching back
PS F:\animator-5.1.2\node_modules@ronomon\base64> cd ../../../
and calling it from there
PS F:\animator-5.1.2> node-gyp rebuild
fails.. like it does inside electron-rebuild
PS F:\animator-5.1.2> node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info find Python using Python version 2.7.18 found at "C:\Python27\python.exe"
gyp info find VS using VS2019 (16.8.30907.101) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Python27\python.exe
gyp info spawn args [ 'C:\Users\root\AppData\Roaming\npm\node_modules\node-gyp\gyp\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-I',
gyp info spawn args 'F:\animator-5.1.2\build\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\root\AppData\Roaming\npm\node_modules\node-gyp\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\root\AppData\Local\node-gyp\Cache\8.15.1\include\node\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\Users\root\AppData\Local\node-gyp\Cache\8.15.1',
gyp info spawn args '-Dnode_gyp_dir=C:\Users\root\AppData\Roaming\npm\node_modules\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\Users\\root\\AppData\\Local\\node-gyp\\Cache\\8.15.1\\<(target_arch)\\node.lib',
gyp info spawn args '-Dmodule_root_dir=F:\animator-5.1.2',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'F:\animator-5.1.2\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp: binding.gyp not found (cwd: F:\animator-5.1.2) while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\root\AppData\Roaming\npm\node_modules\node-gyp\lib\configure.js:351:16)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 10.0.19044
gyp ERR! command "C:\Program Files\nodejs\versions\v8.15.1\node.exe" "C:\Users\root\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd F:\animator-5.1.2
gyp ERR! node -v v8.15.1
gyp ERR! node-gyp -v v7.1.2
gyp ERR! not ok
so far so good...
calling it with
PS F:\animator-5.1.2> node-gyp rebuild --directory=node_modules/@ronomon/base64/
works like it should.... compiles and everything is fine...
i've looked and search the code for some hours, but i do not found the position to add this parameter to the electron-rebuild
(--directory=node_modules/@ronomon/base64/)
electron does only add -Dmodule_root_dir=F:\animator-5.1.2\node_modules\@ronomon\base64',
i think by solving this issue, there should be no need to call
yarn add --ignore-scripts @ronomon/base64 -W
before when calling
yarn compile-all
thx for help