mycrl / hylarana

A cross-platform screen casting library implemented by Rust.
https://crates.io/crates/hylarana
GNU Lesser General Public License v2.1
12 stars 1 forks source link

rust example compile failed #56

Open wzzc-dev opened 1 day ago

wzzc-dev commented 1 day ago

Failed to compile on the riscv machine

rust version:rustc 1.82.0 (f6e511eec 2024-10-15)

log:

cargo run -- --width=1920 --height=1080 --fps=30 --encoder=libx264 --decoder=h264 --address=127.0.0.1:8080 --strategy=relay Compiling hylarana-codec v0.2.0-beta.1 (/home/chuang/hylarana-0.2.0-beta.7/codec) Compiling colored v2.1.0 Compiling percent-encoding v2.3.1 Compiling smol_str v0.2.2 error[E0412]: cannot find type __va_list_tag in this scope --> codec/src/lib.rs:54:21 | 54 | type va_list = *mut __va_list_tag; | ^^^^^^^^^^^^^ not found in this scope

Compiling dpi v0.1.1 For more information about this error, try rustc --explain E0412. error: could not compile hylarana-codec (lib) due to 1 previous error warning: build failed, waiting for other jobs to finish...

mycrl commented 23 hours ago

Can you show what the function signature of the av_log_set_callback function looks like on your device? I use this function at codec/src/lib.rs:108 location.