0x61726b/electron-vibrancy

node-gyp build error v8::Value::BooleanValue

marmelin opened this issue · 9 comments

I installed everything for node-gyp, but it still gives errors. This one seems like a code or build-version problem. Does anyone know something about it?

thx in advance

Error

With Windows 10 SDK (10.0.19041.0)

Vibrancy.cc
C:\Projects\tmp\hyper-transparent\electron-vibrancy\src\Vibrancy.cc(86,57): 
   error C2660: "v8::Value::BooleanValue": 
   Function does not accept null values 
        [C:\Projects\tmp\hyper-transparent\electron-vibrancy\build\Vibrancy.vcxproj]
C:\Users\lochmar\AppData\Local\node-gyp\Cache\15.1.0\include\node\v8.h(2904,8): 
   message : See declaration of  "v8::Value::BooleanValue" 
        [C:\Projects\tmp\hyper-transparent\electron-vibrancy\build\Vibrancy.vcxproj]
Complete node-gyp build error ``` C:\Projects\tmp\hyper-transparent\electron-vibrancy>npm install

electron-vibrancy@0.1.3 install
node-gyp rebuild

gyp info it worked if it ends with ok
gyp info using node-gyp@7.1.2
gyp info using node@15.1.0 | win32 | x64
gyp info find Python using Python version 3.9.0 found at "C:...\Python\Python39\python.exe"
gyp info find VS using VS2019 (16.8.30711.63) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
gyp ERR! find VS - found "Visual Studio C++ core features"
gyp ERR! find VS - found VC++ toolset: v142
gyp ERR! find VS - found Windows 10 SDK (10.0.19041.0)
gyp info find VS run with --verbose for detailed information
gyp info spawn C:...\Python\Python39\python.exe
gyp info spawn args [
gyp info spawn args 'C:\Projects\tmp\hyper-transparent\electron-vibrancy\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 'C:\Projects\tmp\hyper-transparent\electron-vibrancy\build\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Projects\tmp\hyper-transparent\electron-vibrancy\node_modules\node-gyp\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\..\AppData\Local\node-gyp\Cache\15.1.0\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:\..\AppData\Local\node-gyp\Cache\15.1.0',
gyp info spawn args '-Dnode_gyp_dir=C:\Projects\tmp\hyper-transparent\electron-vibrancy\node_modules\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\..\\AppData\\Local\\node-gyp\\Cache\\15.1.0\\<(target_arch)\\node.lib',
gyp info spawn args '-Dmodule_root_dir=C:\Projects\tmp\hyper-transparent\electron-vibrancy',
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 'C:\Projects\tmp\hyper-transparent\electron-vibrancy\build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe
gyp info spawn args [
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'
gyp info spawn args ]
Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parallele Erstellung zu ermöglichen, müssen Sie den Schalter "-m" hinzufügen.
Vibrancy.cc
C:\Projects\tmp\hyper-transparent\electron-vibrancy\src\Vibrancy.cc(86,57): error C2660: "v8::Value::BooleanValue": Funktion akzeptiert keine 0 Argumente [C:\Projects\tmp\hyper-transpare
nt\electron-vibrancy\build\Vibrancy.vcxproj]
C:\Users\lochmar\AppData\Local\node-gyp\Cache\15.1.0\include\node\v8.h(2904,8): message : Siehe Deklaration von "v8::Value::BooleanValue" [C:\Projects\tmp\hyper-transparent\electron-vibr
ancy\build\Vibrancy.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Projects\tmp\hyper-transparent\electron-vibrancy\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (node:events:327:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:277:12)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Projects\tmp\hyper-transparent\electron-vibrancy\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! not ok
npm ERR! code 1
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c "node-gyp rebuild"

</details>

Same error with Windows 10 SDK (10.0.18362.0) & Windows 10 SDK (10.0.17763.0)

Do I need to compile it with VS2017 or earlier?

Could you try:
npm install --global windows-build-tools

You need to install node version v6.17.1. I used nvm to switch without uninstalling my current version of node.
If your on Mac you also need to install libstdc++ which you can get by downloading the files from here:
https://github.com/miaozhang9/libstdc

I'm also having problems installing on Windows 10.

node_modules\electron-vibrancy\src\Vibrancy.cc(86,57): error C2660: 'v8::Value
::BooleanValue': function does not take 0 arguments [D:\Documents\Coding\GitHub\sveltelectron\node_modules\electron-vib
rancy\build\Vibrancy.vcxproj]

Fixed in my fork along with a cleanup, package updates and improvements. https://github.com/DrunkWinter/electron-vibrancy

@drunkwinter 404 Page Not Found.

Fixed in my fork along with a cleanup, package updates and improvements. https://github.com/DrunkWinter/electron-vibrancy

I am also interested.

Fixed in my fork along with a cleanup, package updates and improvements. https://github.com/DrunkWinter/electron-vibrancy

@drunkwinter 404 Page Not Found.

Fixed in my fork along with a cleanup, package updates and improvements. https://github.com/DrunkWinter/electron-vibrancy

I am also interested.

@danielehrhardt @ttqftech I deleted the fork, because I noticed there was no real demand for it.

Is there any particular reason why this: https://github.com/Seo-Rii/electron-acrylic-window from Seo-Rii is not good enough of a replacement?

If there is a good reason, I might consider putting it back up.

extremely slow when drag.

Installing visual studio build tools will allow you to override the system and install the module manually. Give that a try. After that try installing with --force or -g for global