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

Installation On Windows 8 x64 #335

Closed
ZeroHackeR opened this issue Oct 8, 2013 · 27 comments
Closed

Installation On Windows 8 x64 #335

ZeroHackeR opened this issue Oct 8, 2013 · 27 comments

Comments

@ZeroHackeR
Copy link

Using

  • node v0.10.15 x64
  • python 2.7.3
  • gtk 2.22
  • VS 2012 Ultimate
  • node-gyp 0.10.10

They were individually tested and working.

And canvas installation failed...
2013-10-08_0942

where can I find this common.gypi ?

@rvagg
Copy link
Contributor

rvagg commented Oct 8, 2013

it gets included with the Node package that's placed in to ~/.node-gyp. Try completely removing the C:\Users\Aye Maung Maung Kyi\.node-gyp\ directory and doing the install again; it ought to re-download and set up that 0.10.15 package again.

@ZeroHackeR
Copy link
Author

Hi ravgg, thanks for your fast response.. I'm trying now... ;)

@ZeroHackeR
Copy link
Author

image

Still no luck... :(

@rvagg
Copy link
Contributor

rvagg commented Oct 8, 2013

@TooTallNate your territory, I got nothin'

@TooTallNate
Copy link
Contributor

Why are you terminating the batch job in the middle of the installation process? Try doing what @rvagg said from scratch again, but this time be sure to wait for the installation process to go through. If you need some re-assurance that it's not hanging then add the --verbose flag to your npm install canvas command.

@ZeroHackeR
Copy link
Author

Once again, thanks. It was terminated as I thought, it hanged. i just reinstalled node js to c:\node and trying again. phew....

@ZeroHackeR
Copy link
Author

Interesting... got a new error messages with --verbose flag
Please kindly guide
image

@ZeroHackeR
Copy link
Author

I think, I need to use VS2010. Is there anyway to use VS2012 which I already installed.?

@ZeroHackeR
Copy link
Author

Just downloaded and installed VC 2010 Express. Still no luck... Why is it so difficult to install? or Just me? Almost 2 days now... :(

image

@ZeroHackeR
Copy link
Author

Just downloaded x32 version of everything and tried once more time... still no luck... each giving me diff errors... really tired but, I will get it done, any help or suggestion appreciated.

image

@ZeroHackeR
Copy link
Author

I now updated PNG.h to include cairo/cairo.h
image

It's also differ from github version. How come?
https://github.com/LearnBoost/node-canvas/blob/master/src/PNG.h

@ZeroHackeR
Copy link
Author

Something is not right.. anyone? please help!

image

@japj
Copy link

japj commented Oct 9, 2013

There is apparently already a pull request that might fix your problem?
#326

@ZeroHackeR
Copy link
Author

Ok @japj, thanks!. I will try once I got spare time. 2 days has been wasted :(

@kangax
Copy link
Collaborator

kangax commented Oct 10, 2013

@japj Version 1.1.1 includes some of the fixes from #326, so check if that works

@japj
Copy link

japj commented Oct 10, 2013

@kangax if I look at what is currently in the 1.1.1 tree, the #326 pull request and the change that @ZeroHackeR had to 'manually solve' (see above), then it should probably work out of the box now (but I currently do not have a system with all dependencies where I can test this).

@ZeroHackeR when you have time to try with node-canvas version 1.1.1 can you let us know the results? Thanks in advance!

@kangax
Copy link
Collaborator

kangax commented Oct 10, 2013

@japj The only thing that 1.1.1 doesn't have that #326 has is addition of "'<(GTK_Root)/include/cairo'," in the libs to include under Win. I think that change might still be needed, but I'm not fully sure.

@japj
Copy link

japj commented Oct 10, 2013

@kangax true, but it does include d96183f which is what @ZeroHackeR did above (and I believe that is the 'same' netto result).

@Kikketer
Copy link

Kikketer commented Mar 9, 2014

@ZeroHackeR you are not alone, I'm trapped trying to get this thing installed. It's been weeks...
Win 8.1
NPM: 1.3.24
NodeJS: 0.10.25
Visual Studio 2012 Express

The kicker for me was when I tried to uninstall VS 2012 and install 2010, it refused to install at all. I couldn't find any reason why it would complain (except maybe being Win 8.1?). The error states that maybe we could update the project?

I did manage last week to get 2010 installed with 2012 already installed. Of course it crashed immediately upon opening. I did get this same exact error.
node-canvas

@Inateno
Copy link

Inateno commented Apr 6, 2014

Same problem for me, this is really annoying :/

@Mathyn
Copy link

Mathyn commented Jul 24, 2014

I am having the same problem, also on Windows 8.1 x64. I believe I followed the instructions in the wiki correctly but still no luck in getting it installed.
Can anyone help?

@Inateno
Copy link

Inateno commented Jul 24, 2014

Install a Linux VM it's faster xD (I surrended and work with this only on linux..)

@Mathyn
Copy link

Mathyn commented Jul 31, 2014

I think I'll do that. Ubuntu should work right? I am not very experienced with Linux.

@Inateno
Copy link

Inateno commented Jul 31, 2014

It works directly just npm install node-canvas tadam finished lol (you have to be logged as root ofc).
Get an ubuntu desktop it's really easy (or ubuntu server with console only if you feel a little more crazzy and experienced with console, personally I use only Linux in console mode ^^ there is tons of tutorials).

@Agamnentzar
Copy link
Contributor

Setting default visual studio version and fixing include paths (#589) fixed the issue for me.

npm config set msvs_version 2013 --global

@relu-xz
Copy link

relu-xz commented Aug 30, 2015

Hey guys, I've posted a solution for this.

@LinusU
Copy link
Collaborator

LinusU commented Feb 15, 2016

Closing this since it's an old thread, please see our new installation instructions and report back if you still have problems...

@LinusU LinusU closed this as completed Feb 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests