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

node-canvas fails on require('canvas') #654

Closed
HendrixString opened this issue Oct 27, 2015 · 3 comments
Closed

node-canvas fails on require('canvas') #654

HendrixString opened this issue Oct 27, 2015 · 3 comments

Comments

@HendrixString
Copy link

Hi.

please help me if you can

I am reporting an issue with the following scenario:

  1. I compiled node-canvas on a windows 7 machine, with io.js, Python 2.7
    and visual studio 2013 and GTK. all versions are 64 bit. Everything went smoothly,
    and 'canvas.node' was created inside the Release folder.
  2. I copied the node-canvas folder into another machine with windows 8.1, where I am using github-electron. I embedded node-canvas folder inside the 'node_modules' folder, and also changed the
    main package.json file to add node-canvas as a dev-dependency.
  3. I wrote a test script that only used require('canvas').
  4. I ran the software and got an error without any message. only that require has failed.

additional info:

  • 'canvas.node' is present
@LinusU
Copy link
Collaborator

LinusU commented Oct 27, 2015

I don't think that electron can use binaries compiled for io.js, please recompile it with the tools provided by electron.

Also, electron has the canvas from WebKit built in, do you really need this library?

@tonbz
Copy link

tonbz commented Nov 2, 2015

Did you test it working or not on windows 7? And I think you need to build it in windows 8.1 again for current environment.

@mreshetHaifa
Copy link

worked like a charm on windows 10

@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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants