diff --git a/README.md b/README.md index 7a32170..e2a4e10 100644 --- a/README.md +++ b/README.md @@ -199,9 +199,10 @@ Rustup をインストールするだけで、Rust とビルドに必要なツ ```bash git clone https://github.com/kazuki0824/recisdb-rs.git cd recisdb-rs -sudo apt install -y build-essential clang cmake libdvbv5-dev libpcsclite-dev libudev-dev pkg-config +sudo apt install -y build-essential libclang-dev cmake libdvbv5-dev libpcsclite-dev libudev-dev pkg-config cargo build -F dvb --release sudo cp -a target/release/recisdb /usr/local/bin +# cargo install -F dvb --release ``` Rust をインストールしたら、上記のコマンドで recisdb をビルドできます。 diff --git a/b25-sys/build.rs b/b25-sys/build.rs index 7acc49a..f13f0c6 100644 --- a/b25-sys/build.rs +++ b/b25-sys/build.rs @@ -29,10 +29,9 @@ fn prep_cmake(cx: TargetVar) -> cmake::Config { let mut cm = cmake::Config::new("./externals/libaribb25"); cm.very_verbose(true); - // Enable AVX2 for x64 - // NEON SIMD is also supported, but not all ARM SoCs support it, so build without it. + // Disble AVX2 for x64 if matches!(cx.arch, Some(ref arch) if arch == "x86_64") { - cm.define("USE_AVX2", "ON"); + cm.define("USE_AVX2", "OFF"); } if cx.win { @@ -74,6 +73,7 @@ fn prep_cmake(cx: TargetVar) -> cmake::Config { } println!("cargo:rustc-link-lib=static=aribb25"); + #[cfg(not(debug_assertions))] cm.profile("Release"); cm } diff --git a/b25-sys/src/lib.rs b/b25-sys/src/lib.rs index cbc9d8e..99ad1e8 100644 --- a/b25-sys/src/lib.rs +++ b/b25-sys/src/lib.rs @@ -72,7 +72,7 @@ impl StreamDecoder { inner .dec .as_ref() - .set_simd_mode(if opt.simd { 1 } else { 0 }); + .set_simd_mode(if opt.simd { 3 } else { 0 }); inner };