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

So many errors in here when I try to commanded 'cargo build'. #2

Open
jala-nb opened this issue May 16, 2023 · 0 comments
Open

So many errors in here when I try to commanded 'cargo build'. #2

jala-nb opened this issue May 16, 2023 · 0 comments

Comments

@jala-nb
Copy link

jala-nb commented May 16, 2023

Hello!
I want to get jitsi meet dll using in unity for windows.
So I downloaded these

jitsi-meet-signalling-c
jitsi-meet-signalling
jitsi-jingle-sdp
gst-meet - for xmpp-parsers

but when I cargo build command in jitsi-meet-signalling-c, lots of errors has shown me.

OS : Windwos 11
Rust Version : 1.69.0v

Here is the log!

C:\Users\<My Computer Name>\jitsi-meet-signalling-c>cargo build

warning: unused macro definition: `generate_element_enum`
   --> C:\Users\<My Computer Name>\gst-meet\jitsi-xmpp-parsers\src\macros.rs:229:14
    |
229 | macro_rules! generate_element_enum {
    |              ^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(unused_macros)]` on by default

warning: unused macro definition: `generate_attribute_enum`
   --> C:\Users\<My Computer Name>\gst-meet\jitsi-xmpp-parsers\src\macros.rs:266:14
    |
266 | macro_rules! generate_attribute_enum {
    |              ^^^^^^^^^^^^^^^^^^^^^^^

warning: unused macro definition: `check_ns_only`
   --> C:\Users\<My Computer Name>\gst-meet\jitsi-xmpp-parsers\src\macros.rs:316:14
    |
316 | macro_rules! check_ns_only {
    |              ^^^^^^^^^^^^^

warning: unused macro definition: `generate_empty_element`
   --> C:\Users\<My Computer Name>\gst-meet\jitsi-xmpp-parsers\src\macros.rs:328:14
    |
328 | macro_rules! generate_empty_element {
    |              ^^^^^^^^^^^^^^^^^^^^^^

warning: unused macro definition: `generate_id`
   --> C:\Users\<My Computer Name>\gst-meet\jitsi-xmpp-parsers\src\macros.rs:352:14
    |
352 | macro_rules! generate_id {
    |              ^^^^^^^^^^^

warning: unused macro definition: `generate_elem_id`
   --> C:\Users\<My Computer Name>\gst-meet\jitsi-xmpp-parsers\src\macros.rs:372:14
    |
372 | macro_rules! generate_elem_id {
    |              ^^^^^^^^^^^^^^^^

warning: unused macro definition: `impl_pubsub_item`
   --> C:\Users\<My Computer Name>\gst-meet\jitsi-xmpp-parsers\src\macros.rs:673:14
    |
673 | macro_rules! impl_pubsub_item {
    |              ^^^^^^^^^^^^^^^^

warning: unused import: `jingle_rtcp_fb::RtcpFb`
 --> C:\Users<My Computer Name>\gst-meet\jitsi-xmpp-parsers\src\jingle_rtp.rs:2:3
  |
2 |   jingle_rtcp_fb::RtcpFb,
  |   ^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: `jitsi-xmpp-parsers` (lib) generated 8 warnings (run `cargo fix --lib -p jitsi-xmpp-parsers` to apply 1 suggestion)
warning: unused variable: `jingle`
   --> C:\Users\<My Computer Name>\jitsi-jingle-sdp\src\lib.rs:677:44
    |
677 |   fn remove_sources_from_jingle(&mut self, jingle: &Jingle) -> Result<()> {
    |                                            ^^^^^^ help: if this is intentional, prefix it with an underscore: `_jingle`
    |
    = note: `#[warn(unused_variables)]` on by default

warning: `jitsi-jingle-sdp` (lib) generated 1 warning (run `cargo fix --lib -p jitsi-jingle-sdp` to apply 1 suggestion)
   Compiling jitsi-meet-signalling v0.1.3 (C:\Users\<My Computer Name>\jitsi-meet-signalling)
error[E0433]: failed to resolve: use of undeclared type `Action`
   --> C:\Users\<My Computer Name>\jitsi-meet-signalling\src\conference.rs:236:7
    |
236 |       Action::SessionAccept,
    |       ^^^^^^ use of undeclared type `Action`

error[E0433]: failed to resolve: use of undeclared type `Action`
   --> C:\Users\<My Computer Name>\jitsi-meet-signalling\src\conference.rs:439:39
    |
439 |                   if jingle.action == Action::SessionInitiate {
    |                                       ^^^^^^ use of undeclared type `Action`

error[E0433]: failed to resolve: use of undeclared type `Action`
   --> C:\Users\<My Computer Name>\jitsi-meet-signalling\src\conference.rs:479:44
    |
479 |                   else if jingle.action == Action::SessionTerminate {
    |                                            ^^^^^^ use of undeclared type `Action`

error[E0433]: failed to resolve: use of undeclared type `Action`
   --> C:\Users\<My Computer Name>\jitsi-meet-signalling\src\conference.rs:502:44
    |
502 |                   else if jingle.action == Action::SourceAdd {
    |                                            ^^^^^^ use of undeclared type `Action`

error[E0433]: failed to resolve: use of undeclared type `Action`
   --> C:\Users\<My Computer Name>\jitsi-meet-signalling\src\conference.rs:525:44
    |
525 |                   else if jingle.action == Action::SourceRemove {
    |                                            ^^^^^^ use of undeclared type `Action`

error[E0277]: the trait bound `jitsi_jingle_sdp::Jingle: IqSetPayload` is not satisfied
   --> C:\Users\<My Computer Name>\jitsi-meet-signalling\src\conference.rs:243:56
    |
243 |     let session_accept_iq = Iq::from_set(accept_iq_id, jingle)
    |                             ------------               ^^^^^^ the trait `IqSetPayload` is not implemented for `jitsi_jingle_sdp::Jingle`
    |                             |
    |                             required by a bound introduced by this call
    |
    = help: the following other types implement trait `IqSetPayload`:
              Append
              BindQuery
              Block
              Destroy
              Leave
              Prefs
              PubSub
              PubSubOwner
            and 18 others
note: required by a bound in `xmpp_parsers::iq::Iq::from_set`
   --> C:\Users\<My Computer Name>\.cargo\git\checkouts\xmpp-rs-3a445189b0f6b2e6\0d03358\parsers\src\iq.rs:84:59
    |
84  |     pub fn from_set<S: Into<String>>(id: S, payload: impl IqSetPayload) -> Iq {
    |                                                           ^^^^^^^^^^^^ required by this bound in `Iq::from_set`

error[E0308]: mismatched types
   --> C:\Users\<My Computer Name>\jitsi-meet-signalling\src\conference.rs:457:75
    |
457 |                       let offer_sdp = SessionDescription::try_from_jingle(&jingle)?;
    |                                       ----------------------------------- ^^^^^^^ expected `jitsi_jingle_sdp::Jingle`, found `Jingle`
    |                                       |
    |                                       arguments to this function are incorrect
    |
    = note: `Jingle` and `jitsi_jingle_sdp::Jingle` have similar names, but are actually distinct types
note: `Jingle` is defined in crate `jitsi_xmpp_parsers`
   --> C:\Users\<My Computer Name>\gst-meet\jitsi-xmpp-parsers\src\jingle.rs:75:1
    |
75  | pub struct Jingle {
    | ^^^^^^^^^^^^^^^^^
note: `jitsi_jingle_sdp::Jingle` is defined in crate `jitsi_xmpp_parsers`
   --> C:\Users\<My Computer Name>\.cargo\registry\src\github.com-1ecc6299db9ec823\jitsi-xmpp-parsers-0.1.4\src\jingle.rs:78:1
    |
78  | pub struct Jingle {
    | ^^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `jitsi_xmpp_parsers` are being used?
note: associated function defined here
   --> C:\Users\<My Computer Name>\jitsi-jingle-sdp\src\lib.rs:38:6
    |
38  |   fn try_from_jingle(jingle: &Jingle) -> Result<SessionDescription>;
    |      ^^^^^^^^^^^^^^^

error[E0308]: mismatched types
   --> C:\Users\<My Computer Name>\jitsi-meet-signalling\src\conference.rs:511:57
    |
511 |                       offer_sdp.add_sources_from_jingle(&jingle)?;
    |                                 ----------------------- ^^^^^^^ expected `jitsi_jingle_sdp::Jingle`, found `Jingle`
    |                                 |
    |                                 arguments to this method are incorrect
    |
    = note: `Jingle` and `jitsi_jingle_sdp::Jingle` have similar names, but are actually distinct types
note: `Jingle` is defined in crate `jitsi_xmpp_parsers`
   --> C:\Users\<My Computer Name>\gst-meet\jitsi-xmpp-parsers\src\jingle.rs:75:1
    |
75  | pub struct Jingle {
    | ^^^^^^^^^^^^^^^^^
note: `jitsi_jingle_sdp::Jingle` is defined in crate `jitsi_xmpp_parsers`
   --> C:\Users\<My Computer Name>\.cargo\registry\src\github.com-1ecc6299db9ec823\jitsi-xmpp-parsers-0.1.4\src\jingle.rs:78:1
    |
78  | pub struct Jingle {
    | ^^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `jitsi_xmpp_parsers` are being used?
note: method defined here
   --> C:\Users\<My Computer Name>\jitsi-jingle-sdp\src\lib.rs:46:6
    |
46  |   fn add_sources_from_jingle(&mut self, jingle: &Jingle) -> Result<()>;
    |      ^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
   --> C:\Users\<My Computer Name>\jitsi-meet-signalling\src\conference.rs:534:60
    |
534 |                       offer_sdp.remove_sources_from_jingle(&jingle)?;
    |                                 -------------------------- ^^^^^^^ expected `jitsi_jingle_sdp::Jingle`, found `Jingle`
    |                                 |
    |                                 arguments to this method are incorrect
    |
    = note: `Jingle` and `jitsi_jingle_sdp::Jingle` have similar names, but are actually distinct types
note: `Jingle` is defined in crate `jitsi_xmpp_parsers`
   --> C:\Users\<My Computer Name>\gst-meet\jitsi-xmpp-parsers\src\jingle.rs:75:1
    |
75  | pub struct Jingle {
    | ^^^^^^^^^^^^^^^^^
note: `jitsi_jingle_sdp::Jingle` is defined in crate `jitsi_xmpp_parsers`
   --> C:\Users\<My Computer Name>\.cargo\registry\src\github.com-1ecc6299db9ec823\jitsi-xmpp-parsers-0.1.4\src\jingle.rs:78:1
    |
78  | pub struct Jingle {
    | ^^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `jitsi_xmpp_parsers` are being used?
note: method defined here
   --> C:\Users\<My Computer Name>\jitsi-jingle-sdp\src\lib.rs:47:6
    |
47  |   fn remove_sources_from_jingle(&mut self, jingle: &Jingle) -> Result<()>;
    |      ^^^^^^^^^^^^^^^^^^^^^^^^^^

Some errors have detailed explanations: E0277, E0308, E0433.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `jitsi-meet-signalling` due to 9 previous errors

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