seo-rii / electron-acrylic-window

Add acrylic effect to your electron application
MIT License
278 stars 23 forks source link

yarn add electron-acrylic-window fails #92

Open CanPacis opened 2 years ago

CanPacis commented 2 years ago

I've checked out the previous issues like mine but couldn't find a solution.

error C:\Users\tmwwd\JavaScript\kasif-electron\node_modules\@seorii\win32-displayconfig: Command failed.
Exit code: 1
Command: npm run rebuild
Arguments:
Directory: C:\Users\tmwwd\JavaScript\kasif-electron\node_modules\@seorii\win32-displayconfig
Output:
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

> @seorii/win32-displayconfig@0.1.1 rebuild
> node-gyp rebuild

gyp info it worked if it ends with ok
gyp info using node-gyp@8.4.1
gyp info using node@16.15.1 | win32 | ia32
gyp info find Python using Python version 3.9.7 found at "C:\Python39\python.exe"
gyp info find VS using VS2017 (15.9.28307.2019) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Python39\python.exe
gyp info spawn args [
gyp info spawn args   'C:\\Users\\tmwwd\\JavaScript\\kasif-electron\\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:\\Users\\tmwwd\\JavaScript\\kasif-electron\\node_modules\\@seorii\\win32-displayconfig\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\tmwwd\\JavaScript\\kasif-electron\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\tmwwd\\AppData\\Local\\node-gyp\\Cache\\16.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\\tmwwd\\AppData\\Local\\node-gyp\\Cache\\16.15.1',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\tmwwd\\JavaScript\\kasif-electron\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\tmwwd\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.15.1\\\\<(target_arch)\\\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\tmwwd\\JavaScript\\kasif-electron\\node_modules\\@seorii\\win32-displayconfig',
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:\\Users\\tmwwd\\JavaScript\\kasif-electron\\node_modules\\@seorii\\win32-displayconfig\\build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\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=Win32'
gyp info spawn args ]
Bu ��z�mde projeler tek tek derlenir. Paralel bir derlemeyi etkinle�tirmek i�in l�tfen "/m" anahtar�n� ekleyin.
  win32-displayconfig.cc
c:\users\tmwwd\javascript\kasif-electron\node_modules\@seorii\win32-displayconfig\win32-displayconfig.cc(83): error C2664: 'HANDLE CreateThread(LPSECURITY_ATTRIBUTES,SIZE_T,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD)' : 3 ba��ms�z de�i�keni 'DWORD (__cdecl *)(LPVOID)' de�erinden 'LPTHREAD_START_ROUTINE' de�erine d�n��t�r�lemez [C:\Users\tmwwd\JavaScript\kasif-electron\node_modules\@seorii\win32-displayconfig\build\win32_displayconfig.vcxproj]
  c:\users\tmwwd\javascript\kasif-electron\node_modules\@seorii\win32-displayconfig\win32-displayconfig.cc(83): note: Kapsamdaki bu ada sahip hi�bir i�lev hedef t�r�yle e�le�miyor
c:\users\tmwwd\javascript\kasif-electron\node_modules\@seorii\win32-displayconfig\win32-displayconfig.cc(744): warning C4018: '<': imzal�/imzas�z uyu�mazl��� [C:\Users\tmwwd\JavaScript\kasif-electron\node_modules\@seorii\win32-displayconfig\build\win32_displayconfig.vcxproj]
c:\users\tmwwd\javascript\kasif-electron\node_modules\@seorii\win32-displayconfig\win32-displayconfig.cc(758): warning C4018: '<': imzal�/imzas�z uyu�mazl��� [C:\Users\tmwwd\JavaScript\kasif-electron\node_modules\@seorii\win32-displayconfig\build\win32_displayconfig.vcxproj]
c:\users\tmwwd\javascript\kasif-electron\node_modules\@seorii\win32-displayconfig\win32-displayconfig.cc(771): warning C4018: '<': imzal�/imzas�z uyu�mazl��� [C:\Users\tmwwd\JavaScript\kasif-electron\node_modules\@seorii\win32-displayconfig\build\win32_displayconfig.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\tmwwd\JavaScript\kasif-electron\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Windows_NT 10.0.19043
gyp ERR! command "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Users\\tmwwd\\JavaScript\\kasif-electron\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\tmwwd\JavaScript\kasif-electron\node_modules\@seorii\win32-displayconfig

What am I doing wrong?

not-manu commented 2 years ago

Having the same problem as of now.

BryanEnid commented 2 years ago

same

BryanEnid commented 2 years ago

This also fails (per documentation):

git clone https://github.com/Seo-Rii/electron-acrylic-window.git
cd electron-acrylic-window
yarn install
yarn run test
BryanEnid commented 2 years ago

Now it's working after installing Python 3.10.5.

  1. Download it from here https://www.python.org/
  2. Go through the entire install process and don't forget to add the option of adding python in the environment variables.
  3. Check python is installed by opening a new terminal and typing python --version
  4. Try ```yarn install electron-acrylic-window" again.
not-manu commented 2 years ago

If the above doesn't work for anyone I would recommend the package Glasstron which is essentially the same as electron-acrylic-window.