JRF63 / desktop-streaming

WebRTC desktop streamer using Rust
Apache License 2.0
44 stars 0 forks source link

build failure for nvenc #2

Open kshensovato opened 9 months ago

kshensovato commented 9 months ago

I got the following error messages when building the project. Do I need to do anything before running "cargo run --release"? BTW, I'm doing this on a Ubuntu machine.

error[E0412]: cannot find type LibraryImpl in this scope --> nvenc-rs/nvenc/src/encoder/library/mod.rs:25:20 | 25 | pub struct Library(LibraryImpl); | ^^^^^^^^^^^ not found in this scope

error[E0412]: cannot find type LibraryImpl in this scope --> nvenc-rs/nvenc/src/encoder/library/mod.rs:36:28 | 36 | fn as_inner(&self) -> &LibraryImpl { | ^^^^^^^^^^^ not found in this scope

error[E0050]: method wait has 2 parameters but the declaration in trait EventObjectTrait::wait has 1 --> nvenc-rs/nvenc/src/encoder/event/non_windows.rs:11:13 11 fn wait(&self, _timeout_millis: u32) -> crate::Result<()> { ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 parameter, found 2

::: nvenc-rs/nvenc/src/encoder/event/mod.rs:17:13 | 17 | fn wait(&self) -> Result<()>; | ----- trait requires 1 parameter

error[E0433]: failed to resolve: use of undeclared type LibraryImpl --> nvenc-rs/nvenc/src/encoder/library/mod.rs:29:13 | 29 | if !LibraryImpl::is_library_signed(LibraryImpl::LIBRARY_NAME) { | ^^^^^^^^^^^ use of undeclared type LibraryImpl

error[E0433]: failed to resolve: use of undeclared type LibraryImpl --> nvenc-rs/nvenc/src/encoder/library/mod.rs:29:44 | 29 | if !LibraryImpl::is_library_signed(LibraryImpl::LIBRARY_NAME) { | ^^^^^^^^^^^ use of undeclared type LibraryImpl

error[E0433]: failed to resolve: use of undeclared type LibraryImpl --> nvenc-rs/nvenc/src/encoder/library/mod.rs:32:13 | 32 | LibraryImpl::load(LibraryImpl::LIBRARY_NAME).map(|lib| Library(lib)) | ^^^^^^^^^^^ use of undeclared type LibraryImpl

error[E0433]: failed to resolve: use of undeclared type LibraryImpl --> nvenc-rs/nvenc/src/encoder/library/mod.rs:32:31 | 32 | LibraryImpl::load(LibraryImpl::LIBRARY_NAME).map(|lib| Library(lib)) | ^^^^^^^^^^^ use of undeclared type LibraryImpl

Some errors have detailed explanations: E0050, E0412, E0433. For more information about an error, try rustc --explain E0050. error: could not compile nvenc (lib) due to 7 previous errors warning: build failed, waiting for other jobs to finish...

JRF63 commented 9 months ago

Windows only for now. That error is coming from nvenc, but it doesn't matter since the Linux server code hasn't been written yet.