Wednesday, May 25, 2011

Re: Compiling Vim with X on Mac

Ben Schmidt wrote (quite a long time ago):

> Finally getting around to compiling Vim 7.3, and taking a little more
> interest in the mailing list again. Would love to get back into Vim
> development again if I can find time.
>
> I use Vim in X on the Mac (gtk2), as well as in the console, as well as
> MacVim. Building for X isn't done much these days, and has caused a
> couple of problems, because os_macosx.c and os_mac_conv.c define
> #NO_X11_INCLUDES.
>
> - netbeans.pro uses the type BalloonEval which is not included if no X11
> headers are; I worked around this by adding typedef void to the .c
> files that #define NO_X11_INCLUDES. It's a nasty hack, but I haven't
> fiddled with the Vim source code for so long I don't have any idea
> what the 'right way' would be, so I figured I might as well just do a
> hack and someone else would know the proper way.

In src/proto.h there already is a workaround for this. Adjusting the
#ifdef should work. Is FEAT_BEVAL defined in your case? Perhaps it
should not be.

> - FEAT_GUI is not defined if NO_X11_INCLUDES is defined (because doing
> so would pull in a lot of stuff that needs the X headers), so the
> check of FEAT_GUI in os_macosx.c is useless; I worked around it by
> unconditionally defining a different constant.
>
> It'd be great if you could put similar workarounds in the source, Bram,
> so it can compile out of the box.

I'm puzzeled by how you can compile Vim with GTK while NO_X11_INCLUDES
is defined. What are you using for building? Is this already in
src/INSTALLmac.txt? If not, can you add it?

--
hundred-and-one symptoms of being an internet addict:
111. You and your friends get together regularly on IRC, even though
all of you live in the same city.

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: