Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install #1

Open
micwoj92 opened this issue Jul 9, 2022 · 0 comments
Open

Cannot install #1

micwoj92 opened this issue Jul 9, 2022 · 0 comments

Comments

@micwoj92
Copy link

micwoj92 commented Jul 9, 2022

cargo build --release fails with

   Compiling obs-sys v0.1.2 (/home/micwoj92/obs-shit/rust-obs-plugins/obs-sys)
error[E0428]: the name `FE_INVALID` is defined multiple times
    --> /home/micwoj92/obs-shit/rust-obs-plugins/target/release/build/obs-sys-6e5123573af69a80/out/bindings.rs:7777:1
     |
499  | pub const FE_INVALID: u32 = 1;
     | ------------------------------ previous definition of the value `FE_INVALID` here
...
7777 | pub const FE_INVALID: _bindgen_ty_3 = 1;
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `FE_INVALID` redefined here
     |
     = note: `FE_INVALID` must be defined only once in the value namespace of this module

error[E0428]: the name `FE_DIVBYZERO` is defined multiple times
    --> /home/micwoj92/obs-shit/rust-obs-plugins/target/release/build/obs-sys-6e5123573af69a80/out/bindings.rs:7779:1
     |
500  | pub const FE_DIVBYZERO: u32 = 4;
     | -------------------------------- previous definition of the value `FE_DIVBYZERO` here
...
7779 | pub const FE_DIVBYZERO: _bindgen_ty_3 = 4;
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `FE_DIVBYZERO` redefined here
     |
     = note: `FE_DIVBYZERO` must be defined only once in the value namespace of this module

error[E0428]: the name `FE_OVERFLOW` is defined multiple times
    --> /home/micwoj92/obs-shit/rust-obs-plugins/target/release/build/obs-sys-6e5123573af69a80/out/bindings.rs:7780:1
     |
501  | pub const FE_OVERFLOW: u32 = 8;
     | ------------------------------- previous definition of the value `FE_OVERFLOW` here
...
7780 | pub const FE_OVERFLOW: _bindgen_ty_3 = 8;
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `FE_OVERFLOW` redefined here
     |
     = note: `FE_OVERFLOW` must be defined only once in the value namespace of this module

error[E0428]: the name `FE_UNDERFLOW` is defined multiple times
    --> /home/micwoj92/obs-shit/rust-obs-plugins/target/release/build/obs-sys-6e5123573af69a80/out/bindings.rs:7781:1
     |
502  | pub const FE_UNDERFLOW: u32 = 16;
     | --------------------------------- previous definition of the value `FE_UNDERFLOW` here
...
7781 | pub const FE_UNDERFLOW: _bindgen_ty_3 = 16;
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `FE_UNDERFLOW` redefined here
     |
     = note: `FE_UNDERFLOW` must be defined only once in the value namespace of this module

error[E0428]: the name `FE_INEXACT` is defined multiple times
    --> /home/micwoj92/obs-shit/rust-obs-plugins/target/release/build/obs-sys-6e5123573af69a80/out/bindings.rs:7782:1
     |
503  | pub const FE_INEXACT: u32 = 32;
     | ------------------------------- previous definition of the value `FE_INEXACT` here
...
7782 | pub const FE_INEXACT: _bindgen_ty_3 = 32;
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `FE_INEXACT` redefined here
     |
     = note: `FE_INEXACT` must be defined only once in the value namespace of this module

error[E0428]: the name `FE_TONEAREST` is defined multiple times
    --> /home/micwoj92/obs-shit/rust-obs-plugins/target/release/build/obs-sys-6e5123573af69a80/out/bindings.rs:7784:1
     |
505  | pub const FE_TONEAREST: u32 = 0;
     | -------------------------------- previous definition of the value `FE_TONEAREST` here
...
7784 | pub const FE_TONEAREST: _bindgen_ty_4 = 0;
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `FE_TONEAREST` redefined here
     |
     = note: `FE_TONEAREST` must be defined only once in the value namespace of this module

error[E0428]: the name `FE_DOWNWARD` is defined multiple times
    --> /home/micwoj92/obs-shit/rust-obs-plugins/target/release/build/obs-sys-6e5123573af69a80/out/bindings.rs:7785:1
     |
506  | pub const FE_DOWNWARD: u32 = 1024;
     | ---------------------------------- previous definition of the value `FE_DOWNWARD` here
...
7785 | pub const FE_DOWNWARD: _bindgen_ty_4 = 1024;
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `FE_DOWNWARD` redefined here
     |
     = note: `FE_DOWNWARD` must be defined only once in the value namespace of this module

error[E0428]: the name `FE_UPWARD` is defined multiple times
    --> /home/micwoj92/obs-shit/rust-obs-plugins/target/release/build/obs-sys-6e5123573af69a80/out/bindings.rs:7786:1
     |
507  | pub const FE_UPWARD: u32 = 2048;
     | -------------------------------- previous definition of the value `FE_UPWARD` here
...
7786 | pub const FE_UPWARD: _bindgen_ty_4 = 2048;
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `FE_UPWARD` redefined here
     |
     = note: `FE_UPWARD` must be defined only once in the value namespace of this module

error[E0428]: the name `FE_TOWARDZERO` is defined multiple times
    --> /home/micwoj92/obs-shit/rust-obs-plugins/target/release/build/obs-sys-6e5123573af69a80/out/bindings.rs:7787:1
     |
508  | pub const FE_TOWARDZERO: u32 = 3072;
     | ------------------------------------ previous definition of the value `FE_TOWARDZERO` here
...
7787 | pub const FE_TOWARDZERO: _bindgen_ty_4 = 3072;
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `FE_TOWARDZERO` redefined here
     |
     = note: `FE_TOWARDZERO` must be defined only once in the value namespace of this module

For more information about this error, try `rustc --explain E0428`.
error: could not compile `obs-sys` due to 9 previous errors

my setup

OBS Studio - 27.2.4-1 (linux)
cargo 1.62.0
release: 1.62.0
host: x86_64-unknown-linux-gnu
libgit2: 1.4.2 (sys:0.14.2 vendored)
libcurl: 7.84.0 (sys:0.4.51+curl-7.80.0 system ssl:OpenSSL/1.1.1q)
os: Arch Linux Rolling Release [64-bit]
rustc 1.62.0 (Arch Linux rust 1:1.62.0-1)
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-unknown-linux-gnu
release: 1.62.0
LLVM version: 14.0.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant