Can anyone explain how to build Emacs --with-ns and SVG support on OS X?


  • --with-rsvg isn't working (when librsvg is installed, ie. via Homebrew)

  • FYI, The Emacs Mac port uses webkit to provide SVG support, although that build adds far too many things I don't want.

I want to just compile in support for SVG on Cocoa Emacs, I'm not averse to patching, and if no answers are available, I'll see if I can patch over from the Emacs Mac port

(Assume latest stable version of Emacs 24.2, building from source)


I've tried running brew install emacs --cocoa --svg without success.

  • I'm sorry, perhaps this question is off topic here (see FAQ). Please post to stackoverflow.com. Thanks. Feb 12, 2013 at 21:26
  • 2
    @Globalnomad - raised on meta. - also see
    – ocodo
    Feb 12, 2013 at 21:43

2 Answers 2


The installation of the Emacs latest version (25.0.50) works fine using this command:

brew install emacs --HEAD --use-git-head --cocoa --with-gnutls --with-rsvg --with-imagemagick
  • 1
    Good news. Still, now I'm hooked on Emacs Mac Port's pixel scrolling. I'll give it a go anyway. Thank you.
    – ocodo
    Nov 19, 2014 at 11:21
  • Yes, that’s the only downside. On the other hand I often had the problem that pixel-wise scrolling was sluggish. Line-wise scrolling is on the other hand a little bit too sensitive, but I also got used to it pretty quickly-
    – Lenar Hoyt
    Nov 19, 2014 at 20:57
  • I tried building, however I got ranlib: file: libgnu.a((u64|unistd).o) has no symbols errors.
    – ocodo
    Nov 21, 2014 at 4:33
  • 1
    reboot fixed the errant machine... ;)
    – ocodo
    Nov 25, 2014 at 23:19
  • 1
    Too busy modeling sea parks i.onionstatic.com/avclub/4364/15/16x9/800.jpg
    – ocodo
    Nov 26, 2014 at 0:37

I was unable to get this working, and instead went with the Emacs Mac Port

Turns out it's much better than I'd thought.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .