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

win8.1環境下的install時的ERR,但運行test可以完成合併任務。 #4

Closed
xiaoyaojones opened this issue Apr 22, 2014 · 2 comments

Comments

@xiaoyaojones
Copy link

canvas@1.1.3 install Z:\Source\test\grunt-css-sprite-master\node_modules\sprit
esmith\node_modules\canvassmith\node_modules\canvas
node-gyp rebuild

Z:\Source\test\grunt-css-sprite-master\node_modules\spritesmith\node_modules\can
vassmith\node_modules\canvas>node "C:\Program Files\nodejs\node_modules\npm\bin
node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
CanvasRenderingContext2d.cc
CanvasPattern.cc
z:\source\test\grunt-css-sprite-master\node_modules\spritesmith\node_modules\ca
nvassmith\node_modules\canvas\src\Canvas.h(19): fatal error C1083: Cannot open
include file: 'cairo/cairo.h': No such file or directory (..\src\CanvasRenderin
gContext2d.cc) [Z:\Source\test\grunt-css-sprite-master\node_modules\spritesmith
\node_modules\canvassmith\node_modules\canvas\build\canvas.vcxproj]
z:\source\test\grunt-css-sprite-master\node_modules\spritesmith\node_modules\ca
nvassmith\node_modules\canvas\src\Canvas.h(19): fatal error C1083: Cannot open
include file: 'cairo/cairo.h': No such file or directory (..\src\CanvasPattern.
cc) [Z:\Source\test\grunt-css-sprite-master\node_modules\spritesmith\node_modul
es\canvassmith\node_modules\canvas\build\canvas.vcxproj]
color.cc
PixelArray.cc
..\src\color.cc(353): warning C4305: 'initializing' : truncation from 'double'
to 'float' [Z:\Source\test\grunt-css-sprite-master\node_modules\spritesmith\nod
e_modules\canvassmith\node_modules\canvas\build\canvas.vcxproj]
..\src\color.cc(356): warning C4305: '*=' : truncation from 'double' to 'float'
[Z:\Source\test\grunt-css-sprite-master\node_modules\spritesmith\node_modules
canvassmith\node_modules\canvas\build\canvas.vcxproj]
ImageData.cc
z:\source\test\grunt-css-sprite-master\node_modules\spritesmith\node_modules\ca
nvassmith\node_modules\canvas\src\Canvas.h(19): fatal error C1083: Cannot open
include file: 'cairo/cairo.h': No such file or directory (..\src\PixelArray.cc)
[Z:\Source\test\grunt-css-sprite-master\node_modules\spritesmith\node_modules
canvassmith\node_modules\canvas\build\canvas.vcxproj]
Canvas.cc
z:\source\test\grunt-css-sprite-master\node_modules\spritesmith\node_modules\ca
nvassmith\node_modules\canvas\src\Canvas.h(19): fatal error C1083: Cannot open
include file: 'cairo/cairo.h': No such file or directory (..\src\ImageData.cc)
[Z:\Source\test\grunt-css-sprite-master\node_modules\spritesmith\node_modules\c
anvassmith\node_modules\canvas\build\canvas.vcxproj]
init.cc
z:\source\test\grunt-css-sprite-master\node_modules\spritesmith\node_modules\ca
nvassmith\node_modules\canvas\src\Canvas.h(19): fatal error C1083: Cannot open
include file: 'cairo/cairo.h': No such file or directory (..\src\Canvas.cc) [Z:
\Source\test\grunt-css-sprite-master\node_modules\spritesmith\node_modules\canv
assmith\node_modules\canvas\build\canvas.vcxproj]
Image.cc
z:\source\test\grunt-css-sprite-master\node_modules\spritesmith\node_modules\ca
nvassmith\node_modules\canvas\src\Canvas.h(19): fatal error C1083: Cannot open
include file: 'cairo/cairo.h': No such file or directory (..\src\init.cc) [Z:\S
ource\test\grunt-css-sprite-master\node_modules\spritesmith\node_modules\canvas
smith\node_modules\canvas\build\canvas.vcxproj]
CanvasGradient.cc
z:\source\test\grunt-css-sprite-master\node_modules\spritesmith\node_modules\ca
nvassmith\node_modules\canvas\src\Canvas.h(19): fatal error C1083: Cannot open
include file: 'cairo/cairo.h': No such file or directory (..\src\Image.cc) [Z:
Source\test\grunt-css-sprite-master\node_modules\spritesmith\node_modules\canva
ssmith\node_modules\canvas\build\canvas.vcxproj]
z:\source\test\grunt-css-sprite-master\node_modules\spritesmith\node_modules\ca
nvassmith\node_modules\canvas\src\Canvas.h(19): fatal error C1083: Cannot open
include file: 'cairo/cairo.h': No such file or directory (..\src\CanvasGradient
.cc) [Z:\Source\test\grunt-css-sprite-master\node_modules\spritesmith\node_modu
les\canvassmith\node_modules\canvas\build\canvas.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules
npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:
12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modu
les\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd Z:\Source\test\grunt-css-sprite-master\node_modules\spritesmith\nod
e_modules\canvassmith\node_modules\canvas
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok

按網上的提示安裝了vs 2012,但還是提示以上錯誤,求大神指點。。

@laoshu133
Copy link
Owner

此错误不影响正常使用的,报错是因为 spritesmith 依赖在初始化时检测可用工具不存在

@xiaoyaojones
Copy link
Author

ok,感謝您的講解~!

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