2009-09-18 svg2pdf

Ah, the joys of compilation...

svg2pdf says it requires cairo which in turn requires *pixman* (get it from the cairo site). But then it turns out that cairo also requires fontconfig and that svg2pdf also requires librsvg. And that in turn requires gdk-pixbuf, libxml, pangoft2, and pangocairo. :groan:

svg2pdf

cairo

fontconfig

librsvg

Then again, I have `/Library/Frameworks/Gtk.framework` from somewhere. So now I need to get it all to work.

Time passes. This is trickier than I thought. I also seem to have `/Library/Frameworks/Cairo.framework` already. Wasted precious time installing it again, I guess! I get to run a few sudo make uninstall.

`PKG_CONFIG_PATH=/Library/Frameworks/Gtk.framework/Resources/dev/lib/pkgconfig:/Library/Frameworks/Cairo.framework/Resources/dev/lib/pkgconfig/:/usr/X11R6/lib/pkgconfig:/usr/lib/pkgconfig ./configure` seems to be doing quite well. All I’m missing is the pangoft2 stuff!

I can’t believe how hard it is to figure out where to get it.

Where is it!?

I think I’m giving up. 🙁

Well, it turns out I had already compiled such a binary on one of the shared hosts I’m on, but unfortunately it seems to produce white pages. I tried a Perl script I found on the internet that embeds SVG in PDF files, but those don’t display in my PDF readers, so they’re useless.

I think my Traveller mapping script will continue without PDF option. 👎

Traveller mapping script

​#Software

Comments

(Please contact me if you want to remove your comment.)

This post reminds me why I stopped using OS X. 😄

– Matt 2009-09-18 14:44 UTC

---

Gaaah! I’m sure I had very similar problems back when I was using Debian unstable and Slackware. But I think I’m forgetting as time passes.

– Alex Schroeder 2009-09-18 15:00 UTC

Alex Schroeder

---

Yeah. Dependency hell exists on every platform I think. Though I must say that out of curiosity I just installed svg2pdf on Arch Linux using community packages and the distro’s wonderful build system. Took all of two minutes. ;)

– Matt 2009-09-19 00:51 UTC

---

I feel stabbed... 😢

)

– Alex Schroeder 2009-09-19 01:12 UTC

Alex Schroeder

---

Sorry. All in good jest! (I like OS X too, but likewise sometimes find installing packages a challenge.)

Enjoy the blog, by the way (especially the fact that it’s also a wiki).

– Matt 2009-09-19 15:45 UTC

---

Thanks. It’s a strange mix. I hope that people know where to get the feeds for the tags they’re interested in. And if they’re interested in everything, why that’s simply amazing. 😄

– Alex Schroeder 2009-09-19 19:49 UTC

Alex Schroeder