You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey guys, I'm trying to build a docker image installing your last gst-meet version, but I have a compilation error. My expertise is not rust, then I was investigating and trying some things in order to achieve my goal.
Error in lib-gst-meet, jingle.rs (after rust 1.41 approx you should declare de Semantics enum as pub, or xmpp_parsers in this case):
Compiling lib-gst-meet v0.7.0 (/lib-gst-meet)
error[E0603]: enum Semantics is private #9 290.7 --> lib-gst-meet/src/jingle.rs:19:34 #9 290.7 | #9 290.7 19 | jingle_ssma::{self, Parameter, Semantics}, #9 290.7 | ^^^^^^^^^ private enum #9 290.7 | #9 290.7 note: the enum Semantics is defined here #9 290.7 --> /jitsi-xmpp-parsers/src/jingle_ssma.rs:3:3 #9 290.7 | #9 290.7 3 | jingle_ssma::Semantics, #9 290.7 | ^^^^^^^^^^^^^^^^^^^^^^ #9 290.7 #9 292.6 For more information about this error, try rustc --explain E0603.
The next one is my Dockerfile (notice that I tried to install an older version of rust in a couple of commented lines, but unfortunately, alpine just has the last packages versions. I tried the same with the cargo version instead rust because I suppose cargo is the one selecting the rust version).
I tried too setting in the toml file setting rust-version=1.41.0 but it is required as minimum the 1.56 version.
Finally, I changed in your project a thing, and I released a local version, and I could build the docker image successfuly.
The change was:
change in jitsi-xmpp-parsers/src/jingle_ssma.rs 'use xmpp_parsers::' to 'pub use xmpp_parsers::'
Note that maybe it could be convenient to change too jitsi-xmpp-parsers version from "0.1.2" to "0.1.4"
because in 0.1.4 Semantics is a pub enum, but in 0.1.2 it is inside Groups enum:
Is it possible you apply that change (in jitsi-xmpp-parsers/src/jingle_ssma.rs) and merge it to master please? Or, could you please suggesting me another thing to fix my problem?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey guys, I'm trying to build a docker image installing your last gst-meet version, but I have a compilation error. My expertise is not rust, then I was investigating and trying some things in order to achieve my goal.
Error in lib-gst-meet, jingle.rs (after rust 1.41 approx you should declare de Semantics enum as pub, or xmpp_parsers in this case):
Compiling lib-gst-meet v0.7.0 (/lib-gst-meet)
error[E0603]: enum
Semantics
is private#9 290.7 --> lib-gst-meet/src/jingle.rs:19:34
#9 290.7 |
#9 290.7 19 | jingle_ssma::{self, Parameter, Semantics},
#9 290.7 | ^^^^^^^^^ private enum
#9 290.7 |
#9 290.7 note: the enum
Semantics
is defined here#9 290.7 --> /jitsi-xmpp-parsers/src/jingle_ssma.rs:3:3
#9 290.7 |
#9 290.7 3 | jingle_ssma::Semantics,
#9 290.7 | ^^^^^^^^^^^^^^^^^^^^^^
#9 290.7
#9 292.6 For more information about this error, try
rustc --explain E0603
.The next one is my Dockerfile (notice that I tried to install an older version of rust in a couple of commented lines, but unfortunately, alpine just has the last packages versions. I tried the same with the cargo version instead rust because I suppose cargo is the one selecting the rust version).
I tried too setting in the toml file setting rust-version=1.41.0 but it is required as minimum the 1.56 version.
Finally, I changed in your project a thing, and I released a local version, and I could build the docker image successfuly.
The change was:
Note that maybe it could be convenient to change too jitsi-xmpp-parsers version from "0.1.2" to "0.1.4"
because in 0.1.4 Semantics is a pub enum, but in 0.1.2 it is inside Groups enum:
https://docs.rs/jitsi-xmpp-parsers/0.1.4/jitsi_xmpp_parsers/jingle_ssma/enum.Semantics.html
https://docs.rs/jitsi-xmpp-parsers/0.1.2/jitsi_xmpp_parsers/jingle_ssma/struct.Group.html
Is it possible you apply that change (in jitsi-xmpp-parsers/src/jingle_ssma.rs) and merge it to master please? Or, could you please suggesting me another thing to fix my problem?
Thanks in advance guys.
FROM docker.io/library/alpine:edge AS builder
RUN apk --no-cache --update upgrade --ignore alpine-baselayout
&& apk --no-cache add curl
&& apk --no-cache add gstreamer-dev gst-plugins-base-dev
&& apk --no-cache add build-base libnice-dev openssl-dev cargo
COPY . .
RUN cargo build --release -p gst-meet
##RUN cargo install --path gst-meet --root gst-meet --force gst-meet
FROM docker.io/library/alpine:edge
RUN apk --update --no-cache upgrade --ignore alpine-baselayout
&& apk --no-cache add curl
&& apk --no-cache add gstreamer gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav
&& apk --no-cache add libnice openssl
COPY --from=builder target/release/gst-meet /usr/local/bin
ENTRYPOINT ["/usr/local/bin/gst-meet"]
Beta Was this translation helpful? Give feedback.
All reactions