This repository was archived by the owner on May 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 88
This repository was archived by the owner on May 30, 2023. It is now read-only.
Cross compile from linux to windows #103
Copy link
Copy link
Open
Description
Host OS: Ubuntu
Target OS: Windows 10
command:
$ RUST_BACKTRACE=1 PKG_CONFIG_ALLOW_CROSS=1 cargo build --target x86_64-pc-windows-gnu
Log:
error: failed to run custom build command for `ffmpeg-sys v4.3.3`
Caused by:
process didn't exit successfully: `/home/wojtess/Documents/rust/qbox/target/debug/build/ffmpeg-sys-7fbc21dc22bdcd9e/build-script-build` (exit status: 101)
--- stdout
cargo:rustc-link-search=native=/home/wojtess/Documents/rust/qbox/target/x86_64-pc-windows-gnu/debug/build/ffmpeg-sys-08f8dafae26dcfed/out/dist/lib
cargo:rustc-link-lib=static=avcodec
cargo:rustc-link-lib=static=avdevice
cargo:rustc-link-lib=static=avfilter
cargo:rustc-link-lib=static=avformat
cargo:rustc-link-lib=static=avutil
cargo:rustc-link-lib=static=swresample
cargo:rustc-link-lib=static=swscale
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-pc-windows-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
cargo:rerun-if-env-changed=CC_x86_64-pc-windows-gnu
CC_x86_64-pc-windows-gnu = None
cargo:rerun-if-env-changed=CC_x86_64_pc_windows_gnu
CC_x86_64_pc_windows_gnu = None
cargo:rerun-if-env-changed=TARGET_CC
TARGET_CC = None
cargo:rerun-if-env-changed=CC
CC = None
RUSTC_LINKER = None
cargo:rerun-if-env-changed=CROSS_COMPILE
CROSS_COMPILE = None
cargo:rerun-if-env-changed=CFLAGS_x86_64-pc-windows-gnu
CFLAGS_x86_64-pc-windows-gnu = None
cargo:rerun-if-env-changed=CFLAGS_x86_64_pc_windows_gnu
CFLAGS_x86_64_pc_windows_gnu = None
cargo:rerun-if-env-changed=TARGET_CFLAGS
TARGET_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
CARGO_CFG_TARGET_FEATURE = Some("fxsr,llvm14-builtins-abi,sse,sse2")
configure: Unknown OS 'windows'.
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.libera.chat.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
--- stderr
Using stack size: Ok(3145728)
Cloning into 'ffmpeg-4.3'...
thread 'ffmpg-sys-build' panicked at 'called `Result::unwrap()` on an `Err` value: Custom { kind: Other, error: "configure failed " }', /home/wojtess/.cargo/registry/src/github.com-1ecc6299db9ec823/ffmpeg-sys-4.3.3/build.rs:644:21
stack backtrace:
0: rust_begin_unwind
at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/std/src/panicking.rs:575:5
1: core::panicking::panic_fmt
at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/core/src/panicking.rs:65:14
2: core::result::unwrap_failed
at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/core/src/result.rs:1791:5
3: core::result::Result<T,E>::unwrap
at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/core/src/result.rs:1113:23
4: build_script_build::thread_main
at ./build.rs:644:13
5: core::ops::function::FnOnce::call_once
at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/core/src/ops/function.rs:251:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Any { .. }', /home/wojtess/.cargo/registry/src/github.com-1ecc6299db9ec823/ffmpeg-sys-4.3.3/build.rs:629:10
stack backtrace:
0: rust_begin_unwind
at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/std/src/panicking.rs:575:5
1: core::panicking::panic_fmt
at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/core/src/panicking.rs:65:14
2: core::result::unwrap_failed
at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/core/src/result.rs:1791:5
3: core::result::Result<T,E>::unwrap
at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/core/src/result.rs:1113:23
4: build_script_build::main
at ./build.rs:623:5
5: core::ops::function::FnOnce::call_once
at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/core/src/ops/function.rs:251:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels