Neothesia
Neothesia copied to clipboard
build neothesia-cli error
environment google colab or ubuntu (because the error is still on installation phase)
steps
!apt update
!apt install -y cargo ffmpeg
!git clone https://github.com/PolyMeilex/Neothesia
!cd Neothesia && cargo build --release -p neothesia-cli
result
error[E0658]: use of unstable library feature 'once_cell'
--> midi-file/src/program_track.rs:2:33
|
2 | use std::{collections::HashMap, sync::OnceLock, time::Duration};
| ^^^^^^^^^^^^^^
|
= note: see issue #74465 <https://github.com/rust-lang/rust/issues/74465> for more information
error[E0658]: use of unstable library feature 'once_cell'
--> midi-file/src/program_track.rs:6:30
|
6 | static DEFAULT_PROGRAMS: OnceLock<HashMap<u8, u8>> = OnceLock::new();
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #74465 <https://github.com/rust-lang/rust/issues/74465> for more information
error[E0658]: use of unstable library feature 'once_cell'
--> midi-file/src/program_track.rs:6:58
|
6 | static DEFAULT_PROGRAMS: OnceLock<HashMap<u8, u8>> = OnceLock::new();
| ^^^^^^^^
|
= note: see issue #74465 <https://github.com/rust-lang/rust/issues/74465> for more information
error[E0658]: use of unstable library feature 'once_cell'
--> midi-file/src/program_track.rs:6:58
|
6 | static DEFAULT_PROGRAMS: OnceLock<HashMap<u8, u8>> = OnceLock::new();
| ^^^^^^^^^^^^^
|
= note: see issue #74465 <https://github.com/rust-lang/rust/issues/74465> for more information
error[E0658]: use of unstable library feature 'once_cell'
--> midi-file/src/program_track.rs:7:22
|
7 | DEFAULT_PROGRAMS.get_or_init(|| (0..16).map(|ch| (ch, 0)).collect())
| ^^^^^^^^^^^
|
= note: see issue #74465 <https://github.com/rust-lang/rust/issues/74465> for more information
For more information about this error, try `rustc --explain E0658`.
error: could not compile `midi-file` due to 5 previous errors
warning: build failed, waiting for other jobs to finish...
best regards
Looks like a too old rustc version, those methods were stabilized in rust 1.70.0
steps
sudo apt update
sudo apt install -y curl git ffmpeg gcc pkg-config libavutil-dev libavformat-dev libswscale-dev libclang-dev
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"
git clone https://github.com/PolyMeilex/Neothesia
cd Neothesia
cargo build --release -p neothesia-cli
./target/release/neothesia-cli ./test.mid
result
thread 'main' panicked at neothesia-cli/src/main.rs:49:74:
called `Result::unwrap()` on an `Err` value: AdapterRequest
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
n.b.
lsb_release -d
Description: Ubuntu 22.04.2 LTS
rustc --version
rustc 1.73.0 (cc66ad468 2023-10-03)