bob icon indicating copy to clipboard operation
bob copied to clipboard

Missing windows support for building from source

Open MordechaiHadad opened this issue 2 years ago • 2 comments

#38 currently lacks support for windows.

MordechaiHadad avatar Sep 08 '22 09:09 MordechaiHadad

It seems for now that the commands that are required to be ran in order to build neovim from source on windows are: (MSVC only)

mkdir .deps
cd .deps
cmake ../cmake.deps
cmake --build .

cd ..
mkdir build
cd build
cmake ..
cmake --build .

but compared to building on linux it is much longer, main reason I believe is not having libuv installed.

MordechaiHadad avatar Sep 13 '22 13:09 MordechaiHadad

currently only builds successfully when using Developer PowerShell for VS 2022

MordechaiHadad avatar Sep 13 '22 15:09 MordechaiHadad

You could in theory use Import-VisualStudioVars from this https://github.com/Pscx/Pscx but

  1. I dunno how to do that, instructions unclear
  2. This still limits you to being stuck with one shell(powershell)

MordechaiHadad avatar Sep 19 '22 13:09 MordechaiHadad

I'll probably just add the commands above and specify that it will require using VS Developer shell for now... and try to come up with a better solution in a later patch

MordechaiHadad avatar Sep 21 '22 10:09 MordechaiHadad

This issue is basically done but one con is needing to use the VS Developer shells now

MordechaiHadad avatar Oct 16 '22 13:10 MordechaiHadad