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

build neothesia-cli error #75

Open
sugizo opened this issue Sep 22, 2023 · 2 comments
Open

build neothesia-cli error #75

sugizo opened this issue Sep 22, 2023 · 2 comments

Comments

@sugizo
Copy link

sugizo commented Sep 22, 2023

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

@sugizo sugizo changed the title install error build neothesia-cli error Sep 22, 2023
@PolyMeilex
Copy link
Owner

Looks like a too old rustc version, those methods were stabilized in rust 1.70.0

@sugizo
Copy link
Author

sugizo commented Nov 11, 2023

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)

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

2 participants