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

Install Fails on Windows (10) #146

Open
computersarecool opened this issue Nov 9, 2015 · 2 comments
Open

Install Fails on Windows (10) #146

computersarecool opened this issue Nov 9, 2015 · 2 comments

Comments

@computersarecool
Copy link

I do not see any way to get around the gyp error. I am trying to install on Windows 10, here is the output:

Running

$ npm install -g shader-school --python=python2.7 > error.log

Outputs this to stdout:

npm WARN deprecated [email protected]: deprecated in favor of rework-import
npm WARN deprecated [email protected]: Use the globby package instead
npm WARN optional dep failed, continuing [email protected]
npm WARN optional dep failed, continuing [email protected]
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"4.2.1",
"npm":"2.14.8"})
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` fail
ed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (c:\Program Files (x86)\nodejs\node_mo
dules\npm\node_modules\node-gyp\lib\build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_proces
s.js:200:12)
gyp ERR! System Windows_NT 10.0.10240
gyp ERR! command "c:\\Program Files (x86)\\nodejs\\node.exe" "c:\\Program Files
(x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "reb
uild"
gyp ERR! cwd C:\Users\willy\AppData\Romaning\npm\node_modules\shader-school\node
_modules\gl-axes\node_modules\vectorize-text\node_modules\canvas-browserify\node
_modules\canvas
gyp ERR! node -v v4.2.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
parsing ply file
unpacking positions
generating module
writing module
parsing ply file
unpacking positions
generating module
writing module
parsing ply file
unpacking positions
generating module
writing module
parsing ply file
unpacking positions
generating module
writing module
npm WARN optional dep failed, continuing [email protected]

And this to the logfile

> [email protected] install C:\Users\willy\AppData\Romaning\npm\node_modules\shader-school\node_modules\gl-axes\node_modules\vectorize-text\node_modules\canvas-browserify\node_modules\canvas
> node-gyp rebuild


C:\Users\willy\AppData\Romaning\npm\node_modules\shader-school\node_modules\gl-axes\node_modules\vectorize-text\node_modules\canvas-browserify\node_modules\canvas>if not defined npm_config_node_gyp (node "c:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild ) 
Warning: Missing input files:
C:\GTK\bin\zlib1.dll
C:\GTK\bin\libexpat-1.dll
C:\GTK\bin\libpng14-14.dll
C:\GTK\bin\libcairo-2.dll
C:\GTK\bin\libfontconfig-1.dll
C:\GTK\bin\libfreetype-6.dll
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  Canvas.cc
  CanvasGradient.cc
  CanvasPattern.cc
  CanvasRenderingContext2d.cc
  color.cc
  Image.cc
  ImageData.cc
  init.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\stdio.h(1925): warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\CanvasPattern.cc) [C:\Users\willy\AppData\Romaning\npm\node_modules\shader-school\node_modules\gl-axes\node_modules\vectorize-text\node_modules\canvas-browserify\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\stdio.h(1925): note: command-line arguments:  see previous definition of 'snprintf' (compiling source file ..\src\CanvasPattern.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Library function declaration (compiling source file ..\src\CanvasPattern.cc) [C:\Users\willy\AppData\Romaning\npm\node_modules\shader-school\node_modules\gl-axes\node_modules\vectorize-text\node_modules\canvas-browserify\node_modules\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\stdio.h(1925): warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\Image.cc) [C:\Users\willy\AppData\Romaning\npm\node_modules\shader-school\node_modules\gl-axes\node_modules\vectorize-text\node_modules\canvas-browserify\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\stdio.h(1925): note: command-line arguments:  see previous definition of 'snprintf' (compiling source file ..\src\Image.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Library function declaration (compiling source file ..\src\Image.cc) [C:\Users\willy\AppData\Romaning\npm\node_modules\shader-school\node_modules\gl-axes\node_modules\vectorize-text\node_modules\canvas-browserify\node_modules\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\stdio.h(1925): warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\CanvasGradient.cc) [C:\Users\willy\AppData\Romaning\npm\node_modules\shader-school\node_modules\gl-axes\node_modules\vectorize-text\node_modules\canvas-browserify\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\stdio.h(1925): note: command-line arguments:  see previous definition of 'snprintf' (compiling source file ..\src\CanvasGradient.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Library function declaration (compiling source file ..\src\CanvasGradient.cc) [C:\Users\willy\AppData\Romaning\npm\node_modules\shader-school\node_modules\gl-axes\node_modules\vectorize-text\node_modules\canvas-browserify\node_modules\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\stdio.h(1925): warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\Canvas.cc) [C:\Users\willy\AppData\Romaning\npm\node_modules\shader-school\node_modules\gl-axes\node_modules\vectorize-text\node_modules\canvas-browserify\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\stdio.h(1925): note: command-line arguments:  see previous definition of 'snprintf' (compiling source file ..\src\Canvas.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Library function declaration (compiling source file ..\src\Canvas.cc) [C:\Users\willy\AppData\Romaning\npm\node_modules\shader-school\node_modules\gl-axes\node_modules\vectorize-text\node_modules\canvas-browserify\node_modules\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\stdio.h(1925): warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\color.cc) [C:\Users\willy\AppData\Romaning\npm\node_modules\shader-school\node_modules\gl-axes\node_modules\vectorize-text\node_modules\canvas-browserify\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\stdio.h(1925): note: command-line arguments:  see previous definition of 'snprintf' (compiling source file ..\src\color.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Library function declaration (compiling source file ..\src\color.cc) [C:\Users\willy\AppData\Romaning\npm\node_modules\shader-school\node_modules\gl-axes\node_modules\vectorize-text\node_modules\canvas-browserify\node_modules\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\stdio.h(1925): warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\init.cc) [C:\Users\willy\AppData\Romaning\npm\node_modules\shader-school\node_modules\gl-axes\node_modules\vectorize-text\node_modules\canvas-browserify\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\stdio.h(1925): note: command-line arguments:  see previous definition of 'snprintf' (compiling source file ..\src\init.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Library function declaration (compiling source file ..\src\init.cc) [C:\Users\willy\AppData\Romaning\npm\node_modules\shader-school\node_modules\gl-axes\node_modules\vectorize-text\node_modules\canvas-browserify\node_modules\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\stdio.h(1925): warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\ImageData.cc) [C:\Users\willy\AppData\Romaning\npm\node_modules\shader-school\node_modules\gl-axes\node_modules\vectorize-text\node_modules\canvas-browserify\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\stdio.h(1925): note: command-line arguments:  see previous definition of 'snprintf' (compiling source file ..\src\ImageData.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Library function declaration (compiling source file ..\src\ImageData.cc) [C:\Users\willy\AppData\Romaning\npm\node_modules\shader-school\node_modules\gl-axes\node_modules\vectorize-text\node_modules\canvas-browserify\node_modules\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\stdio.h(1925): warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\CanvasRenderingContext2d.cc) [C:\Users\willy\AppData\Romaning\npm\node_modules\shader-school\node_modules\gl-axes\node_modules\vectorize-text\node_modules\canvas-browserify\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\stdio.h(1925): note: command-line arguments:  see previous definition of 'snprintf' (compiling source file ..\src\CanvasRenderingContext2d.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Library function declaration (compiling source file ..\src\CanvasRenderingContext2d.cc) [C:\Users\willy\AppData\Romaning\npm\node_modules\shader-school\node_modules\gl-axes\node_modules\vectorize-text\node_modules\canvas-browserify\node_modules\canvas\build\canvas.vcxproj]

> [email protected] postinstall C:\Users\willy\AppData\Romaning\npm\node_modules\shader-school\node_modules\stanford-dragon
> npm run build


> [email protected] build C:\Users\willy\AppData\Romaning\npm\node_modules\shader-school\node_modules\stanford-dragon
> npm run res1 && npm run res2 && npm run res3 && npm run res4


> [email protected] res1 C:\Users\willy\AppData\Romaning\npm\node_modules\shader-school\node_modules\stanford-dragon
> node lib/build.js models/dragon_vrip.ply.gz 1.js


> [email protected] res2 C:\Users\willy\AppData\Romaning\npm\node_modules\shader-school\node_modules\stanford-dragon
> node lib/build.js models/dragon_vrip_res2.ply.gz 2.js


> [email protected] res3 C:\Users\willy\AppData\Romaning\npm\node_modules\shader-school\node_modules\stanford-dragon
> node lib/build.js models/dragon_vrip_res3.ply.gz 3.js


> [email protected] res4 C:\Users\willy\AppData\Romaning\npm\node_modules\shader-school\node_modules\stanford-dragon
> node lib/build.js models/dragon_vrip_res4.ply.gz 4.js

C:\Users\willy\AppData\Romaning\npm\shader-school -> C:\Users\willy\AppData\Romaning\npm\node_modules\shader-school\index.js
[email protected] C:\Users\willy\AppData\Romaning\npm\node_modules\shader-school
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected])

Please let me know if anyone else has any ideas. Thanks

@mattdesl
Copy link
Member

mattdesl commented Jan 5, 2016

I am getting install errors too on my OSX but it seems like everything is working fine when I actually run shader-school. Is this the same for you?

@computersarecool
Copy link
Author

No - I get nothing.

'shader-school' is not recognized as an internal or external command....

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

2 participants