Open danyuhao opened 8 years ago
And when I followed this Setting up irony mode on Windows using Msys2 and Mingw Packages, I got these errors:
$ cmake -G "MSYS Makefiles" ..
CMake Error: CMake was unable to find a build program corresponding to "MSYS Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMake was unable to find a build program corresponding to "MSYS Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_AR was not found, please set to archive program.
-- Configuring incomplete, errors occurred!
Is this meant to use a msys-clang but not a mingw-clang??
@danyuhao cmake -G
options refer to the shell you use to run the build. So if you are building using the Windows command prompt you should use MinGW Makefiles
. Either way the executable built should be windows native.
You can refer to cmake
documentation
Irony works perfectly on Cygwin64 with my C project. And I want to move it to MinGW64 because the pool performance of Cygwin-emacs. I install the irony server with an addon option
-G "MINGW Makefile"
, because I use mingw-clang/llvm and mingw-gcc/make/cmake, and I start MinGW-emacs from MinGW64 bash:When I used irony for completion in my c project , it only told
Error in post-command-hook (irony-completion--post-command): (file-error "Writing to process" "bad file descriptor" #<process Irony>)