[vim/vim] Build latest vim from source with all features on windows (#7069)

16 views
Skip to first unread message

Chaoticsys101

unread,
Oct 3, 2020, 12:53:35 PM10/3/20
to vim/vim, Subscribed

Just a question.
I'm trying to build vim from source with all features on windows (64 bit version if possible). I can't seem to find a good tutorial for that. What would be the process to do so either using mingw or msys2 (with mingw) on windows.

Thank you in advance for your attention.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Yegappan Lakshmanan

unread,
Oct 3, 2020, 10:22:12 PM10/3/20
to vim_dev, reply+ACY5DGHJ4PW6OBCLOZ...@reply.github.com, vim/vim, Subscribed
Hi,

On Sat, Oct 3, 2020 at 9:53 AM Chaoticsys101 <vim-dev...@256bit.org> wrote:

Just a question.
I'm trying to build vim from source with all features on windows (64 bit version if possible). I can't seem to find a good tutorial for that. What would be the process to do so either using mingw or msys2 (with mingw) on windows.


Did you try following the instructions in the following file?


- Yegappan

vim-dev ML

unread,
Oct 3, 2020, 10:22:30 PM10/3/20
to vim/vim, vim-dev ML, Your activity

Hi,

On Sat, Oct 3, 2020 at 9:53 AM Chaoticsys101 <vim-dev...@256bit.org>
wrote:

> Just a question.
> I'm trying to build vim from source with all features on windows (64 bit
> version if possible). I can't seem to find a good tutorial for that. What
> would be the process to do so either using mingw or msys2 (with mingw) on
> windows.
>

Did you try following the instructions in the following file?

https://github.com/vim/vim/blob/master/src/INSTALLpc.txt

- Yegappan

Chaoticsys101

unread,
Oct 4, 2020, 6:16:59 AM10/4/20
to vim/vim, vim-dev ML, Comment

I did but I got some make errors.
And also I saw some tutorials using the configure file, I don't know which to use then. And in that document I don't see what options I have available when compiling while if I do './configure -h' it shows the available options such as --enable-perlinterp=yes.

So I don't know which one to use neither what I am doing wrong.


You are receiving this because you commented.

K.Takata

unread,
Oct 4, 2020, 6:38:43 AM10/4/20
to vim/vim, vim-dev ML, Comment

configure is for unix-like systems.
The instructions in src/INSTALLpc.txt should work. If it doesn't, it should be updated.


You are receiving this because you commented.

Chaoticsys101

unread,
Oct 4, 2020, 7:13:48 AM10/4/20
to vim/vim, vim-dev ML, Comment

Thanks for clarifying that for me.
Where is the documentation for what options can I specify when building? Such as building for 64bit, python support, features huge.


You are receiving this because you commented.

Christian Brabandt

unread,
Oct 4, 2020, 10:54:16 AM10/4/20
to vim/vim, vim-dev ML, Comment

Please have a look inside the Makefiles:
https://github.com/vim/vim/blob/master/src/Make_cyg_ming.mak
and
https://github.com/vim/vim/blob/master/src/Make_ming.mak


You are receiving this because you commented.

Chaoticsys101

unread,
Oct 4, 2020, 12:35:44 PM10/4/20
to vim/vim, vim-dev ML, Comment

I have done so. (make_ming.mak) doesn't nearly have as much options as the configure file. Can I add more? If so, where do I find all the available options/parameters?


You are receiving this because you commented.

K.Takata

unread,
Oct 4, 2020, 1:03:36 PM10/4/20
to vim/vim, vim-dev ML, Comment

Make_ming.mak is a wrapper for Make_cyg_ming.mak, so the options are described in it (and also in INSTALLpc.txt).

E.g.

$ mingw32-make -f Make_ming.mak FEATURES=HUGE PYTHON3=C:/Pyhton38 PYTHON3_VER=38 DYNAMIC_PYTHON3=yes

Hmm, the FEATURES option is not described in INSTALLpc.txt. We should updated it.

Such as building for 64bit

If you want to build for 64 bits use the MSYS2 MinGW 64-bit shortcut, otherwise use the MSYS2 MinGW 32-bit shortcut to open the MSYS2 window.


You are receiving this because you commented.

Christian Brabandt

unread,
Oct 4, 2020, 1:10:20 PM10/4/20
to vim/vim, vim-dev ML, Comment

I have done so. (make_ming.mak) doesn't nearly have as much options as the configure file.

Please read it:

https://github.com/vim/vim/blob/dda749ce85cc07000faa86bfd2ceaecd8e4805fc/src/Make_ming.mak#L8-L9

Hmm, the FEATURES option is not described in INSTALLpc.txt. We should updated it.

Yes, indeed, or simply mention to have a look into Make_cyg_ming.mak for the various options.


You are receiving this because you commented.

Chaoticsys101

unread,
Oct 4, 2020, 1:25:52 PM10/4/20
to vim/vim, vim-dev ML, Comment

Make_ming.mak is a wrapper for Make_cyg_ming.mak, so the options are described in it (and also in INSTALLpc.txt).

Thanks, that was really helpful!

Sorry, totally missed that, thanks!

If you want to build for 64 bits use the MSYS2 MinGW 64-bit shortcut

What do you mean by shortcut?


You are receiving this because you commented.

K.Takata

unread,
Oct 4, 2020, 1:30:53 PM10/4/20
to vim/vim, vim-dev ML, Comment

If you install MSYS2 in a normal way, three shortcuts will be registered in the start menu.


You are receiving this because you commented.

Chaoticsys101

unread,
Oct 4, 2020, 1:33:08 PM10/4/20
to vim/vim, vim-dev ML, Comment

Ah okay. Yes I have those 3.


You are receiving this because you commented.

Chaoticsys101

unread,
Oct 4, 2020, 1:46:04 PM10/4/20
to vim/vim, vim-dev ML, Comment

Quick question. Since I plan on building it from source, can anyone tell me where (on Make_cyg_ming.mak) I can find the place where I can define the name of the person who's building it (when we do vim --version, we can see the 'author' of the build).


You are receiving this because you commented.

Bram Moolenaar

unread,
Oct 4, 2020, 1:54:36 PM10/4/20
to vim/vim, vim-dev ML, Comment

Closed #7069.


You are receiving this because you commented.

Bram Moolenaar

unread,
Oct 4, 2020, 1:54:40 PM10/4/20
to vim/vim, vim-dev ML, Comment

This is not a valid issue, please take the discussion elsewhere.
If you have suggestions for updating documentation, please open an issue or pull request for that.


You are receiving this because you commented.

Tony Mechelynck

unread,
Oct 4, 2020, 3:13:48 PM10/4/20
to vim/vim, vim-dev ML, Comment

In make_cyg_ming.mak lines 1284-1304 there is a conditional statement which builds the "compiled by" line based on the variables USERNAME and USERDOMAIN. If these are set in the environment before compiling starts, IIUC nothing more is needed.


You are receiving this because you commented.

Reply all
Reply to author
Forward
0 new messages