rust-pcre
rust-pcre copied to clipboard
document instillation on windows.
Haw dose one install on windows? can we add some info to the readme? if it is not compatible, document that as well.
Hi Eh2406,
There is code in place to use CMake on Windows, but I do not know if this works. Can you try installing CMake and then running cargo build in a clone of the rust-pcre repository?
I will try to find a Windows machine that I can use to test.
Installed CMake on path.
--- stdout
-- Building for: NMake Makefiles
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Configuring incomplete, errors occurred!
See also "C:/Users/.../rust-pcre/target/debug/build/libpcre-sys-e14940ffe5643b78/out/pcre-8.38/CMakeFiles/CMakeOutput.log".
See also "C:/Users/.../rust-pcre/target/debug/build/libpcre-sys-e14940ffe5643b78/out/pcre-8.38/CMakeFiles/CMakeError.log".
--- stderr
CMake Error at CMakeLists.txt:69 (PROJECT):
The CMAKE_C_COMPILER:
cl
is not a full path and was not found in the PATH.
To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
CMake Error at CMakeLists.txt:69 (PROJECT):
The CMAKE_CXX_COMPILER:
cl
is not a full path and was not found in the PATH.
To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
thread '<main>' panicked at '`cmake . -DBUILD_SHARED_LIBS=OFF ...` did not run successfully.', libpcre-sys\build.rs:118
Looks like it is trying to compile with Visual Studio witch wont be compatible with Windows (GNU ABI †) even if it had worked.