nvim-telescope / telescope-fzf-native.nvim

FZF sorter for telescope written in c
1.36k stars 45 forks source link

make option in Windows failed because of wrong MKD command #80

Closed Guoan-Tang closed 2 years ago

Guoan-Tang commented 2 years ago

I add use {'nvim-telescope/telescope-fzf-native.nvim', run = 'make' } into plugins.lua and run PackerSync, got an error:

image

To figure out the details, I run make in the repo directly, and got:

mkdir build process_begin: CreateProcess(NULL, mkdir build, ...) failed. make (e=2): The system cannot find the file specified. make: [build/libfzf.dll] Error 2 (ignored) gcc -O3 -Wall -Werror -fpic -std=gnu99 -shared src/fzf.c -o build/libfzf.dll c:/programdata/chocolatey/lib/mingw/tools/install/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot open output file build/libfzf.dll: No such file or directory collect2.exe: error: ld returned 1 exit status make: *** [build/libfzf.dll] Error 1

which is cause by the wrong MKD command for windows: -mkdir

And it was fixe when I replace it to cmd /C mkdir

Conni2461 commented 2 years ago

resolved by #81