|more useful options|
Re: Image Conversion: SVG to PNGby syphilis (Chancellor)
|on Apr 23, 2017 at 09:44 UTC||Need Help??|
Has anyone successfully installed Image::LibRSVG on an MSWin platform?
I just have - and it builds ok, and passes its 27 tests.
Native Win32 LibRSVG libraries (both 32-bit and 64-bit) are available via MSYS2 pacman - and these are what I used.
During the compilation phase there are a number of warnings about the presence of deprecated symbols (in LibRSVG.xs) such as g_type_init, rsvg_pixbuf_from_file_at_size, rsvg_pixbuf_from_file_at_zoom, rsvg_pixbuf_from_file_at_zoom_with_max, and maybe some others as well.
Apart from that, the build proceeds fine, but the module initially wouldn't load for me because of incompatibilities between the libstdc++-6.dll that gets loaded (by perl at startup) and the libstdc++-6.dll that glib requires (which is located inside MSYS2 - and won't get loaded because libstdc++-6.dll has already been loaded).
The MSYS2 glib libraries are built using (I think) mingw64 ports of gcc-5.4.0. If your Windows perl was built using gcc-5.4.0 (and mine wasn't) then it will probably all work without any need to do the hurdling (with two twists and pyke) that I need to do.
Basically - I just rename the dlls to something unique, and alter the glib dlls to load the renamed versions. (It's the only way I know of getting around the problem.)
If you want a ppm package just let me know and I'll upload one - or, if you need help building Image::LibRSVG from source on Windows, just sing out.
(I'll probably create and upload PPM packages for this module anyway, now that I've built it.)
Update: PPM packages for Image-LibRSVG-0.07 have now been added to sisyphusion repo.
Well ... that filled in the evening quite effectively.
(If anyone testing this PPM package finds a problem, please let me know.)