AceCentre / EyeCommander

An open source computer vision interface that tracks eye movements for individuals with severely-limited mobility.
https://docs.acecentre.org.uk/eyecommander
MIT License
53 stars 6 forks source link

Fix window build #62

Closed gavinhenderson closed 2 years ago

gavinhenderson commented 2 years ago

I get various errors.

Here is one:

Run yarn install
yarn install v1.22.17
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "@tensorflow/tfjs > @tensorflow/tfjs-data@3.11.0" has unmet peer dependency "seedrandom@~2.4.3".
warning " > copy-webpack-plugin@9.0.1" has unmet peer dependency "webpack@^5.1.0".
warning " > eslint-plugin-react@7.26.1" has incorrect peer dependency "eslint@^3 || ^4 || ^5 || ^6 || ^7".
warning " > babel-loader@8.2.3" has unmet peer dependency "webpack@>=2".
warning " > css-loader@6.5.0" has unmet peer dependency "webpack@^5.0.0".
warning " > node-loader@2.0.0" has unmet peer dependency "webpack@^5.0.0".
warning " > style-loader@3.3.1" has unmet peer dependency "webpack@^5.0.0".
[4/4] Building fresh packages...
error D:\a\EyeCommander\EyeCommander\node_modules\robotjs: Command failed.
Exit code: 1
info Visit yarnpkg.com/en/docs/cli/install for documentation about this command.
Command: prebuild-install || node-gyp rebuild
Arguments: 
Directory: D:\a\EyeCommander\EyeCommander\node_modules\robotjs
Output:
prebuild-install WARN install No prebuilt binaries found (target=16.14.0 runtime=node arch=x64 libc= platform=win32)

D:\a\EyeCommander\EyeCommander\node_modules\robotjs>if not defined npm_config_node_gyp (node "C:\hostedtoolcache\windows\node\16.14.0\x64\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild ) 
gyp info it worked if it ends with ok
gyp info using node-gyp@8.4.1
gyp info using node@16.14.0 | win32 | x64
gyp info find Python using Python version 3.9.[10](https://github.com/AceCentre/EyeCommander/runs/5425012973?check_suite_focus=true#step:8:10) found at "C:\hostedtoolcache\windows\Python\3.9.10\x64\python3.exe"
gyp http GET nodejs.org/download/release/v16.14.0/node-v16.14.0-headers.tar.gz
gyp http 200 nodejs.org/download/release/v16.14.0/node-v16.14.0-headers.tar.gz
gyp http GET nodejs.org/download/release/v16.14.0/SHASUMS256.txt
gyp http GET nodejs.org/download/release/v16.14.0/win-x86/node.lib
gyp http GET nodejs.org/download/release/v16.14.0/win-x64/node.lib
gyp http GET nodejs.org/download/release/v16.14.0/win-arm64/node.lib
gyp http 200 nodejs.org/download/release/v16.14.0/SHASUMS256.txt
gyp http 200 nodejs.org/download/release/v16.14.0/win-x64/node.lib
gyp http 404 nodejs.org/download/release/v16.14.0/win-arm64/node.lib
gyp http 200 nodejs.org/download/release/v16.14.0/win-x86/node.lib
gyp info find VS using VS2022 (17.1.32210.238) found at:
gyp info find VS "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\hostedtoolcache\windows\Python\3.9.10\x64\python3.exe
gyp info spawn args [
gyp info spawn args   'C:\\hostedtoolcache\\windows\\node\\16.14.0\\x64\\node_modules\\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   'D:\\a\\EyeCommander\\EyeCommander\\node_modules\\robotjs\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\hostedtoolcache\\windows\\node\\16.14.0\\x64\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\runneradmin\\AppData\\Local\\node-gyp\\Cache\\16.14.0\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\runneradmin\\AppData\\Local\\node-gyp\\Cache\\16.14.0',
gyp info spawn args   '-Dnode_gyp_dir=C:\\hostedtoolcache\\windows\\node\\16.14.0\\x64\\node_modules\\npm\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\runneradmin\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.14.0\\\\<(target_arch)\\\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=D:\\a\\EyeCommander\\EyeCommander\\node_modules\\robotjs',
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   'D:\\a\\EyeCommander\\EyeCommander\\node_modules\\robotjs\\build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp: C:\Users\runneradmin\AppData\Local\node-gyp\Cache\16.14.0\common.gypi not found (cwd: D:\a\EyeCommander\EyeCommander\node_modules\robotjs) while reading includes of binding.gyp 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:\hostedtoolcache\windows\node\16.14.0\x64\node_modules\npm\node_modules\node-gyp\lib\configure.js:259:16)
gyp ERR! stack     at ChildProcess.emit (node:events:520:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:[12](https://github.com/AceCentre/EyeCommander/runs/5425012973?check_suite_focus=true#step:8:12))
gyp ERR! System Windows_NT 10.0.20348
gyp ERR! command "C:\\hostedtoolcache\\windows\\node\\16.[14](https://github.com/AceCentre/EyeCommander/runs/5425012973?check_suite_focus=true#step:8:14).0\\x64\\node.exe" "C:\\hostedtoolcache\\windows\\node\\[16](https://github.com/AceCentre/EyeCommander/runs/5425012973?check_suite_focus=true#step:8:16).14.0\\x[64](https://github.com/AceCentre/EyeCommander/runs/5425012973?check_suite_focus=true#step:8:64)\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\a\EyeCommander\EyeCommander\node_modules\robotjs
gyp ERR! node -v v16.14.0
gyp ERR! node-gyp -v v8.4.1
gyp ERR! not ok