Saturday, March 30, 2019

Re: windows 10, cygwin, and compiling vim

On Sat, Mar 30, 2019 at 10:01 AM Charles E Campbell
<drchip@campbellfamily.biz> wrote:
>
> Hello:
>
> I've been working on getting a vim compiled under windows10+cygwin.
> Hasn't worked too well yet. Anybody out there have some ideas on how to
> compile a runnable vim under windows10+cygwin?
>
> * configure --with-features=huge
> That seems to work fine
>
> * cd src; make (note that this is done under cygwin, so its cygwin's
> make and cygwin's gcc)
> I got about 20 warnings: all saying something like "visibility
> attribute not supported in this configuration: ignored
> This warning affects pen.c, termscreen.c, unicode.c, state.c, vterm.c
>
> As a complete example of such a warning:
> libvterm/src/pen.h: In function 'vterm_state_newpen':
> libvterm/src/pen.c:164:1: warning: visibility attribute not supported
> in this configuration; ignored [-Wattributes]
>
> * otherwise, the compile completes without other warnings. When I try
> to run it: nothing apparently happens.
>
> I'd like to get a cygwin-based vim compiled and running; I'll just go
> ahead and use the gvim from www.vim.org; I need both to insure that
> netrw is working properly under Windows.
>
> Thank you,
> Chip Campbell

IIRC, compiling Vim by using "configure; make" with the Makefile and
src/Makefile under Cygwin will produce a "Unix-like" Cygwin executable
which can only be run under Cygwin, with the cygwin1.dll in the $PATH
and preferably from Cygwin bash.

Since Cygwin has stopped packaging a MinGW gcc (IIRC that was some
years ago), to compile a "native-Windows" Vim or gvim in a Unix-like
environment, you should use the src/make_ming.mak (not the Makefile)
which invokes the MinGW make and gcc executables. Or you can also
compile a native-Windows Vim and gvim in the Windows "dos box" using
Windows tools, with the src/Make_svc.mak; I'm not sure what the
src/msvc????.bat scripts are about, maybe you should use one or the
other depending on your MS Visual C version.

Best regards,
Tony.

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment