I'm trying to compile the latest version of vim
(7.3.785 as on date) with the --enable-gui
option set to yes
:
./configure --enable-gui=yes
make
but make
fails with several errors (full output). I can't quite make sense of the errors, as I don't see anything specific that I can fix. I must add that compiling it works fine without the GUI option, so it might be something directly related to X or the OS X Cocoa frame work. I'm running OS X 10.8.2 on a retina MBP.
What should I change/add/install to get this to work?
Note: This question is explicitly about compiling
vim
from source with the GUI option. I'm aware ofmacvim
and this is what I use for almost everything. However, in order to embedvim
inside Eclipse usingeclim
, I needgvim
(works out of the box on Windows and Linux). Unfortunately,macvim
does not support embedding inside Eclipse, hence my attempts to make it work on OS X.
Best Answer
You can fix the error about missing header files by exporting CFLAGS like this before running
make
:Unfortunately, a new attempt to compile
vim
fails with loads of errors:and README_mac.txt doesn't offer much help:
After some more failed attempts with other compile options, and after skimming through the errors, one quickly gets the impression that GUI support is not yet implemented for OS X, at least for Quartz.
A look to the other options for getting
vim
, HomeBrew and MacPorts, pretty much confirms the suspicion: The former doesn't offer GUI support at all (see here) and the latter only using X11 (see here).So to compile
vim
with GUI support you will have to revert to the good ol' X11 (I tested the Athena widgets, other options aremotif
and, if you use GTK,gtk1
andgtk2
):After launching XQuartz I could start
vim
in GUI mode:However, I have the impression that this is not the GUI support you need to embed
vim
inside Eclipse.