Open wojtess opened 1 year ago
After some trying I have this errors now.
command: RUST_BACKTRACE=1 PKG_CONFIG_ALLOW_CROSS=1 cargo build --target x86_64-pc-windows-gnu
log:
[...]
cargo:rustc-cfg=feature="avcodec_version_greater_than_58_104"
cargo:rustc-cfg=feature="avcodec_version_greater_than_58_105"
cargo:rustc-cfg=feature="avcodec_version_greater_than_58_106"
cargo:rustc-cfg=feature="avcodec_version_greater_than_58_107"
cargo:rustc-cfg=feature="ffmpeg_3_0"
cargo:ffmpeg_3_0=true
cargo:rustc-cfg=feature="ffmpeg_3_1"
cargo:ffmpeg_3_1=true
cargo:rustc-cfg=feature="ffmpeg_3_2"
cargo:ffmpeg_3_2=true
cargo:rustc-cfg=feature="ffmpeg_3_3"
cargo:ffmpeg_3_3=true
cargo:rustc-cfg=feature="ffmpeg_3_1"
cargo:ffmpeg_3_1=true
cargo:rustc-cfg=feature="ffmpeg_4_0"
cargo:ffmpeg_4_0=true
cargo:rustc-cfg=feature="ffmpeg_4_1"
cargo:ffmpeg_4_1=true
cargo:rustc-cfg=feature="ffmpeg_4_2"
cargo:ffmpeg_4_2=true
cargo:rustc-cfg=feature="ffmpeg_4_3"
cargo:ffmpeg_4_3=true
--- stderr
Using stack size: Ok(3145728)
/usr/include/x86_64-linux-gnu/bits/types/time_t.h:10:18: error: typedef redefinition with different types ('__time_t' (aka 'long') vs '__time64_t' (aka 'long long'))
/usr/x86_64-w64-mingw32/include/corecrt.h:143:20: note: previous definition is here
/usr/include/x86_64-linux-gnu/bits/types/time_t.h:10:18: error: typedef redefinition with different types ('__time_t' (aka 'long') vs '__time64_t' (aka 'long long')), err: true
thread 'ffmpg-sys-build' panicked at 'Unable to generate bindings: ()', /home/wojtess/.cargo/registry/src/github.com-1ecc6299db9ec823/ffmpeg-sys-4.3.3/build.rs:1279: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>::expect
at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/core/src/result.rs:1070:23
4: build_script_build::thread_main
at ./build.rs:1276:24
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
I am also trying to build using other target
command: RUST_BACKTRACE=1 PKG_CONFIG_ALLOW_CROSS=1 cargo build --target x86_64-pc-windows-msvc
log:
[...]
cargo:rustc-cfg=feature="avcodec_version_greater_than_58_103"
cargo:rustc-cfg=feature="avcodec_version_greater_than_58_104"
cargo:rustc-cfg=feature="avcodec_version_greater_than_58_105"
cargo:rustc-cfg=feature="avcodec_version_greater_than_58_106"
cargo:rustc-cfg=feature="avcodec_version_greater_than_58_107"
cargo:rustc-cfg=feature="ffmpeg_3_0"
cargo:ffmpeg_3_0=true
cargo:rustc-cfg=feature="ffmpeg_3_1"
cargo:ffmpeg_3_1=true
cargo:rustc-cfg=feature="ffmpeg_3_2"
cargo:ffmpeg_3_2=true
cargo:rustc-cfg=feature="ffmpeg_3_3"
cargo:ffmpeg_3_3=true
cargo:rustc-cfg=feature="ffmpeg_3_1"
cargo:ffmpeg_3_1=true
cargo:rustc-cfg=feature="ffmpeg_4_0"
cargo:ffmpeg_4_0=true
cargo:rustc-cfg=feature="ffmpeg_4_1"
cargo:ffmpeg_4_1=true
cargo:rustc-cfg=feature="ffmpeg_4_2"
cargo:ffmpeg_4_2=true
cargo:rustc-cfg=feature="ffmpeg_4_3"
cargo:ffmpeg_4_3=true
--- stderr
Using stack size: Ok(3145728)
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:30:10: fatal error: 'errno.h' file not found
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:30:10: fatal error: 'errno.h' file not found, err: true
thread 'ffmpg-sys-build' panicked at 'Unable to generate bindings: ()', /home/wojtess/.cargo/registry/src/github.com-1ecc6299db9ec823/ffmpeg-sys-4.3.3/build.rs:1279: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>::expect
at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/core/src/result.rs:1070:23
4: build_script_build::thread_main
at ./build.rs:1276:24
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.
Are you able to build it without the crate?
Yes, but only using command RUST_BACKTRACE=1 PKG_CONFIG_ALLOW_CROSS=1 cargo build --target x86_64-pc-windows-gnu
.
x86_64-pc-windows-msvc
target dont work.
That's normal. The MSVC target is for the Microsoft Visual Studio compiler, which you're unlikely to have installed on Linux.
This make sense, but still I cant compile from linux to windows using x86_64-pc-windows-gnu
target.
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: