Open
Description
FYI, I'm not sure if it's within scope of cross or not, I was just trying it to prebuild binaries for my artist without using a VM :)
AFAIK this crate builds on Windows out of the box, it only needs the same VS Build Tools that Rust requires.
It looks like there's a missing dependency header that normally is included in the base windows sdk.
The following warnings were emitted during compilation:
warning: src/microprofile/microprofile.cpp:222:10: fatal error: Shlwapi.h: No such file or directory
warning: #include <Shlwapi.h>
warning: ^~~~~~~~~~~
warning: compilation terminated.
error: failed to run custom build command for `microprofile v0.2.1`
Caused by:
process didn't exit successfully: `/target/release/build/microprofile-1b1cf4168cfd1c99/build-script-build` (exit code: 1)
--- stdout
TARGET = Some("x86_64-pc-windows-gnu")
OPT_LEVEL = Some("3")
HOST = Some("x86_64-unknown-linux-gnu")
CXX_x86_64-pc-windows-gnu = None
CXX_x86_64_pc_windows_gnu = Some("x86_64-w64-mingw32-g++-posix")
CXXFLAGS_x86_64-pc-windows-gnu = None
CXXFLAGS_x86_64_pc_windows_gnu = None
TARGET_CXXFLAGS = None
CXXFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
running: "x86_64-w64-mingw32-g++-posix" "-O3" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "src/microprofile/distorm/include" "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DMICROPROFILE_GPU_TIMERS=0" "-DMICROPROFILE_DYNAMIC_INSTRUMENT=1" "-o" "/target/x86_64-pc-windows-gnu/release/build/microprofile-44516c0f6f71d19b/out/src/microprofile/microprofile.o" "-c" "src/microprofile/microprofile.cpp"
cargo:warning=src/microprofile/microprofile.cpp:222:10: fatal error: Shlwapi.h: No such file or directory
cargo:warning= #include <Shlwapi.h>
cargo:warning= ^~~~~~~~~~~
cargo:warning=compilation terminated.
exit code: 1
--- stderr
error occurred: Command "x86_64-w64-mingw32-g++-posix" "-O3" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "src/microprofile/distorm/include" "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DMICROPROFILE_GPU_TIMERS=0" "-DMICROPROFILE_DYNAMIC_INSTRUMENT=1" "-o" "/target/x86_64-pc-windows-gnu/release/build/microprofile-44516c0f6f71d19b/out/src/microprofile/microprofile.o" "-c" "src/microprofile/microprofile.cpp" with args "x86_64-w64-mingw32-g++-posix" did not execute successfully (status code exit code: 1).