Mail Archives: cygwin/1998/01/23/20:04:25
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------ =_NextPart_000_01BD2770.48B833B6
Content-Type: text/plain
Glauber Ribeiro writes:
>Sorry for the silly question. Anxious to join the hordes who can look
>themselves in the mirror every morning and say "i compiled Win32 Vim
>myself!", i installed the Cygnus Win32 port of gcc.
>
>Question is: is it possible to compile vim and gvim with this setup?
Here is how I did this. Note I installed GnuWin32 b18 in e:\gnuwin32
and that my GnuWin32 mount table looks like this (you need to mount
/usr and /bin directories for the rest of what follows to work, and
use binary mounts for all GnuWin32 directories):
Device Directory Type Flags
e:\gnuwin32\b18 /usr native no-mixed,text=binary
e: /e native no-mixed,text=binary
d: /d native no-mixed,text=binary
c: /c native no-mixed,text=binary
e:\gnuwin32\b18\H-i386-cygwin32\bin /bin native
no-mixed,text=binary
b: /b native no-mixed,text=binary
a: /a native no-mixed,text=binary
e:\gnuwin32\rootdir / native no-mixed,text=binary
1. Install the attached 'install' script per its comments.
This script helps you run standard Unix install scripts under
GnuWin32.
2. Download and install ncurses-4.1 (available from
http://www.clark.net/pub/dickey/) as follows:
Unpack the tarball into a temporary directory.
Then, from bash, just do:
export SUFFIX=.exe
./configure --prefix=/usr
make
make install
3. Build and install vim-5.0u as follows:
Unpack tarball into a temporary directory.
Edit vim-5.0u/src/Makefile as follows:
Un-comment these lines (I have Win32 Perl and Python but not the
GnuWin32 versions!):
CONF_OPT_PERL = --disable-perlinterp
CONF_OPT_PYTHON = --disable-pythoninterp
Other settings for my GnuWin32 install:
prefix=/usr
BINDIR = /usr/bin
Edit vim-5.0u/src/ctags/Makefile.in to add suffix support (a minor
change to line 116):
$(DEST_CTAGS): ctags $(bindir) FORCE
$(INSTALL_PROG) ctags$(SUFFIX) $@ && chmod 755 $@
Then, from bash, just do:
make
make install
Provided bash sets TERM=linux, the resulting Vim should work well in
the GnuWin32 environment. The only problem I have encountered is that
the screen redrawing has a small problem when Vim has multiple windows
and I use <C-F> to scroll ahead: parts of the split bar appear near
the top of the window (<C-L> always clears it up, though). I know
enough of neither ncurses nor Vim screen drawing to know where to look
for the cause of this.
I have not tried to build GVim for GnuWin32 (I have no X support
installed).
--John
<<install>>
------ =_NextPart_000_01BD2770.48B833B6
Content-Type: application/octet-stream;
name="install"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="install"
#!/bin/sh=0A=
# file: install=0A=
# author: earnie email: earnie_boyd AT hotmail DOT com=0A=
# Install Preprocessor for the gnu-win32 "make install" command.=0A=
#=0A=
# To use:=0A=
# mv /bin/install.exe /bin/ginstall=0A=
# copy this file to /bin/install=0A=
#=0A=
# Note:=0A=
# No warranty implicit or explicit is given.=0A=
# You may copy, distribute and use as you see fit.=0A=
# USE AT YOU OWN RISK.=0A=
#=0A=
tstr=3D""=0A=
while test $# -gt 0; \=0A=
do \=0A=
if test -e $1.exe; \=0A=
then \=0A=
tstr=3D"$tstr$1.exe $2.exe"; \=0A=
shift; \=0A=
else \=0A=
tstr=3D"$tstr$1 "; \=0A=
fi; \=0A=
shift; \=0A=
done=0A=
echo "/bin/ginstall $tstr"=0A=
eval "/bin/ginstall $tstr"; \=0A=
exit=0A=
------ =_NextPart_000_01BD2770.48B833B6--
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -