при билде:
[duckerman@duck telecloud]$ cargo run --release --target=x86_64-pc-windows-gnu
Compiling ejdb-sys v0.3.0
error: failed to run custom build command for `ejdb-sys v0.3.0`
Caused by:
process didn't exit successfully: `/home/duckerman/Games_64/Rust/telecloud/target/release/build/ejdb-sys-72f292154e0f9579/build-script-build` (exit code: 101)
--- stdout
cargo:rustc-link-search=native=/usr/lib
cargo:rustc-link-lib=z
running: "cmake" "/home/duckerman/.cargo/registry/src/github.com-1ecc6299db9ec823/ejdb-sys-0.3.0/ejdb-upstream" "-DCMAKE_SYSTEM_NAME=Windows" "-DCMAKE_RC_COMPILER=/usr/bin/x86_64-w64-mingw32-windres" "-DBUILD_SAMPLES=OFF" "-DBUILD_SHARED_LIBS=OFF" "-DCMAKE_INSTALL_PREFIX=/home/duckerman/Games_64/Rust/telecloud/target/x86_64-pc-windows-gnu/release/build/ejdb-sys-1fbad58815bfcc97/out" "-DCMAKE_C_FLAGS= -w -ffunction-sections -fdata-sections -m64" "-DCMAKE_C_COMPILER=/usr/bin/x86_64-w64-mingw32-gcc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -m64" "-DCMAKE_CXX_COMPILER=/usr/bin/x86_64-w64-mingw32-g++" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -m64" "-DCMAKE_ASM_COMPILER=/usr/bin/x86_64-w64-mingw32-gcc" "-DCMAKE_BUILD_TYPE=Release"
-- Using project changelog file: /home/duckerman/.cargo/registry/src/github.com-1ecc6299db9ec823/ejdb-sys-0.3.0/ejdb-upstream/Changelog
-- Could NOT find BZip2 (missing: BZIP2_LIBRARIES) (found version "1.0.8")
-- Could NOT find LibLZMA (missing: LIBLZMA_LIBRARY LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET) (found version "5.2.5")
-- Lzo includes and libraries NOT found.
-- Configuring incomplete, errors occurred!
See also "/home/duckerman/Games_64/Rust/telecloud/target/x86_64-pc-windows-gnu/release/build/ejdb-sys-1fbad58815bfcc97/out/build/CMakeFiles/CMakeOutput.log".
See also "/home/duckerman/Games_64/Rust/telecloud/target/x86_64-pc-windows-gnu/release/build/ejdb-sys-1fbad58815bfcc97/out/build/CMakeFiles/CMakeError.log".
--- stderr
CMake Error at src/CMakeLists.txt:108 (message):
Unable to find pcre.h include file
thread 'main' panicked at '
command did not execute successfully, got: exit code: 1
build script failed, must exit now', /home/duckerman/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.44/src/lib.rs:885:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Хотя заголовок pcre.h есть в /usr/x86_64-w64-mingw32/include/pcre.h.
Что я делаю не так?
тебе нужен sysroot
В арчвики написано
Обсуждают сегодня