Automattic / Automattic/node-canvas

SVG support on Windows?

Open
#1,211 13 comments 0 reactions 0 assignees View on GitHub
Bug Build
Dominant language
JavaScript
Stars
10.7k
Forks
1.2k
Avg merge
4d 8h
Merged PRs (30d)
1

Description

Glad to see [this PR adding SVG](https://github.com/Automattic/node-canvas/pull/1206) landed, but it doesn't appear to work on Windows when using a standard `npm install canvas`

So I looked at the binding.gyp and saw options for windows and that librsvg was false by default, so tried `node-gyp rebuild --with_rsvg=true` but it complains that it's missing headers etc. for librsvg:

```
fatal error C1083: Cannot open include file: 'librsvg/rsvg.h': No such file or directory
```

I found the librsvg files built for windows with dlls, src and headers etc on the same ftp server as gtk but not sure where to put them? Tried just copying them into c:\gtk at the appropriate places but rebuild still failing

Also tried putting them in c:\librsvg, I'm not a C++ dev though so really just guessing and flailing in the dark here, any ideas?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.