Created
November 14, 2013 19:09
-
-
Save varvaruc/7472532 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The trick seems to be setting a proper vimruntime dir while invoking make, and having below ones | |
--enable-gui=gnome2 | |
--with-x=yes | |
in list of switches for configure script. | |
Here's my test build script which seems to be giving the required result. | |
mkdir /tmp/vimbuild; cd /tmp/vimbuild | |
wget -c ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2 | |
tar -xjvf vim-7.4.tar.bz2 | |
cd vim74 | |
\rm -rf src/auto/config.cache | |
make clean | |
./configure --prefix=/usr --with-compiledby="megazoe" \ | |
--with-features=huge --enable-rubyinterp \ | |
--enable-pythoninterp --enable-python3interp \ | |
--disable-tclinterp --with-x=yes \ | |
--enable-xim --enable-multibyte \ | |
--enable-gui=gnome2 \ | |
--enable-luainterp --enable-perlinterp \ | |
--enable-cscope \ | |
--enable-netbeans 2>&1 | |
make -j20 VIMRUNTIMEDIR=/tmp/vimbuild/vim74/runtime/ | |
if [ -f src/vim ] | |
then | |
\cp -f src/vim src/gvim | |
strip src/gvim | |
./src/gvim & | |
fi | |
Having the final executable named as 'gvim' is important, else it needs to be invoked as vim -g for being in GUI mode. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment