Ncurses crate not building?


I’m running on Windows 10 x64. I have been trying to compile the ncurses library for a long time, and installing different versions of the Visual Studio build tools, and nothing has seemed to work. The path that the compiler is complaining about does exist, and is writeable.

$ cargo build
Compiling libc v0.2.33
Compiling pkg-config v0.3.9
Compiling gcc v0.3.54
Compiling ncurses v5.87.0
error: failed to run custom build command for ncurses v5.87.0
process didn’t exit successfully: C:\dev\tests\rust\keyboard\target\debug\build\ncurses-4606f07f8e9a41b5\build-script-build (exit code: 101)
— stdout
OPT_LEVEL = Some(“0”)
TARGET = Some(“x86_64-pc-windows-msvc”)
HOST = Some(“x86_64-pc-windows-msvc”)
TARGET = Some(“x86_64-pc-windows-msvc”)
TARGET = Some(“x86_64-pc-windows-msvc”)
HOST = Some(“x86_64-pc-windows-msvc”)
CC_x86_64-pc-windows-msvc = None
CC_x86_64_pc_windows_msvc = None
HOST_CC = None
CC = None
TARGET = Some(“x86_64-pc-windows-msvc”)
HOST = Some(“x86_64-pc-windows-msvc”)
CFLAGS_x86_64-pc-windows-msvc = None
CFLAGS_x86_64_pc_windows_msvc = None
DEBUG = Some(“true”)
c1: fatal error C1083: Cannot open source file: ‘C:\dev\tests\rust\keyboard\target\debug\build\ncurses-291184def52d9f97\out\chtype_size.c’: Permission denied

— stderr
Microsoft ® C/C++ Optimizing Compiler Version 19.00.24210 for x64
Copyright © Microsoft Corporation. All rights reserved.

cl : Command line warning D9035 : option ‘o’ has been deprecated and will be removed in a future release
thread ‘main’ panicked at ‘C:\dev\tests\rust\keyboard\target\debug\build\ncurses-291184def52d9f97\out\chtype_size failed: Error { repr: Os { code: 2, message: “The system cannot find the file specified.” } }’, src\libcore\
note: Run with RUST_BACKTRACE=1 for a backtrace.