I am trying to build neovim on windows but I cannot. Here is my process:
Clone repo
Aris@DESKTOP-DRB7LC3 MINGW64 ~/source/repos
$ git clone https://github.com/neovim/neovim
Cloning into 'neovim'...
remote: Enumerating objects: 170915, done.
remote: Counting objects: 100% (105/105), done.
remote: Compressing objects: 100% (61/61), done.
remote: Total 170915 (delta 54), reused 85 (delta 44), pack-reused 170810
Receiving objects: 100% (170915/170915), 176.84 MiB | 1.37 MiB/s, done.
Resolving deltas: 100% (133126/133126), done.
Updating files: 100% (3009/3009), done.
Build Dependencies
Aris@DESKTOP-DRB7LC3 MINGW64 ~/source/repos (master)
$ cd neovim && mkdir .deps && mkdir build
Aris@DESKTOP-DRB7LC3 MINGW64 ~/source/repos/neovim (master)
$ cd .deps/
Aris@DESKTOP-DRB7LC3 MINGW64 ~/source/repos/neovim/.deps (master)
$ cmake ../cmake.deps/
-- Building for: MinGW Makefiles
-- The C compiler identification is GNU 12.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/Aris/bin/mingw64/bin/gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test HAS_OG_FLAG
-- Performing Test HAS_OG_FLAG - Success
-- Found Git: C:/Program Files/Git/mingw64/bin/git.exe (found version "2.33.1.windows.1")
-- Performing Test HAS_NO_STACK_CHECK
-- Performing Test HAS_NO_STACK_CHECK - Success
-- Looking for _M_IX86
-- Looking for _M_IX86 - not found
-- Looking for __i386__
-- Looking for __i386__ - not found
-- Looking for _M_AMD64
-- Looking for _M_AMD64 - not found
-- Looking for __x86_64__
-- Looking for __x86_64__ - found
-- Looking for __amd64__
-- Looking for __amd64__ - found
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Aris/source/repos/neovim/.deps
Aris@DESKTOP-DRB7LC3 MINGW64 ~/source/repos/neovim/.deps (master)
$ make
Up until this point everything goes ok.
Now I try to build the nvim source tree.
Aris@DESKTOP-DRB7LC3 MINGW64 ~/source/repos/neovim/.deps (master)
$ cd ../build/
Aris@DESKTOP-DRB7LC3 MINGW64 ~/source/repos/neovim/build (master)
$ cmake -D CMAKE_BUILD_TYPE=Debug ..
Now i start getting errors
CMake Error at cmake/LibFindMacros.cmake:263 (message):
REQUIRED PACKAGE NOT FOUND
We could not find development headers for Iconv. Do you have the necessary
dev package installed? This package is REQUIRED and you need to install it
or adjust CMake configuration in order to continue building nvim.
Relevant CMake configuration variables:
ICONV_INCLUDE_DIR=<not found>
You may use CMake GUI, cmake -D or ccmake to modify the values. Delete
CMakeCache.txt to discard all values and force full re-detection if
necessary.
Call Stack (most recent call first):
cmake/FindIconv.cmake:18 (libfind_process)
CMakeLists.txt:538 (find_package)
I try again by giving the mingw include directories
Aris@DESKTOP-DRB7LC3 MINGW64 ~/source/repos/neovim/build (master)
$ rm -rf *
Aris@DESKTOP-DRB7LC3 MINGW64 ~/source/repos/neovim/build (master)
$ cmake -D CMAKE_BUILD_TYPE=Debug -D ICONV_INCLUDE_DIR="C:\Users\Aris\bin\mingw64\x86_64-w64-mingw32\include" ..
Now I get to the next error
-- Found LIBVTERM
-- Found Iconv
-- Performing Test HAVE_WORKING_LIBINTL
-- Performing Test HAVE_WORKING_LIBINTL - Failed
CMake Error at cmake/LibFindMacros.cmake:263 (message):
REQUIRED PACKAGE NOT FOUND
We could not find development headers for LibIntl. Do you have the
necessary dev package installed? This package is REQUIRED and you need to
install it or adjust CMake configuration in order to continue building
nvim.
Relevant CMake configuration variables:
LibIntl_INCLUDE_DIR=<not found>
LibIntl_LIBRARY=<not found>
You may use CMake GUI, cmake -D or ccmake to modify the values. Delete
CMakeCache.txt to discard all values and force full re-detection if
necessary.
Call Stack (most recent call first):
cmake/FindLibIntl.cmake:91 (libfind_process)
CMakeLists.txt:544 (find_package)
I cannot find any libintl
in my system. Any help from anyone here?