linux - Building gvim 7.4 on CentOS 6.4 -
am trying build gvim7.4 source on box running centos 6.4. followed instructions mentioned here build vim locally. executable 'vim' gets built fine, 'gvim' seen. tried find on google doesn't seem helping.
should 'gvim' built using other method (other usual configure/make way)? or there obscure trick build executable gvim?
my os: centos 6.4. has x/devel stuff that's required. command used is:
./configure --prefix=/usr --with-compiledby="megazoe" \ --with-features=huge --enable-rubyinterp \ --enable-pythoninterp --enable-python3interp \ --enable-gui=gnome2 --enable-luainterp \ --enable-perlinterp --enable-cscope
the stdout configure has below stuff related x:
checking if x11 header files can found... yes checking _xdmcpauthdoit in -lxdmcp... no checking iceopenconnection in -lice... yes checking xpmcreatepixmapfromdata in -lxpm... yes checking if x11 header files implicitly declare return values... no checking size of wchar_t 2 bytes... no checking --enable-gui argument... gnome 2.x gui support checking --disable-gtktest argument... gtk test enabled checking pkg-config... /usr/bin/pkg-config checking gtk - version >= 2.2.0... yes; found version 2.18.9 checking libgnomeui-2.0... yes checking freebsd... no checking x11/sm/smlib.h usability... yes checking x11/sm/smlib.h presence... yes checking x11/sm/smlib.h... yes checking x11/xpm.h usability... yes checking x11/xpm.h presence... yes checking x11/xpm.h... yes checking x11/sunkeysym.h usability... yes checking x11/sunkeysym.h presence... yes checking x11/sunkeysym.h... yes checking ximtext in x11/xlib.h... yes x gui selected; xim has been enabled checking cygwin environment... no
make doesn't throw error , 'vim' gets built fine. only, there's no gvim seen anywhere! can use -g switch vim gui instance [vim -g] isn't gvim, gnome menubar , works, want. shouldn't 'gvim' built since --enable-gui=gnome2 used? or gvim totally different beast altogether?
any suggestions on how around problem?
thanks!
the trick seems setting proper vimruntime dir while invoking make, , having below ones
--enable-gui=gnome2 --with-x=yes
in list of switches configure script.
here's test build script seems giving 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 ] \cp -f src/vim src/gvim strip src/gvim ./src/gvim & fi
having final executable named 'gvim' important, else needs invoked vim -g being in gui mode.
Comments
Post a Comment