Priler / jarvis

Voice assistant made as an experiment using neural networks for things like STT/TTS/Wake Word/NLU etc.
Other
1.94k stars 397 forks source link

Ошибка при сборке #118

Open CyberSec17 opened 3 months ago

CyberSec17 commented 3 months ago
error[E0277]: the trait bound BundleResources: Default is not satisfied --> C:\Users\CyberSec17.cargo\registry\src\index.crates.io-6f17d22bba15001f\tauri-build-1.3.0\src\lib.rs:330:61 330 let mut resources = config.tauri.bundle.resources.clone().unwrap_or_default(); ^^^^^^^^^^^^^^^^^ the trait Default is not implemented for BundleResources

note: required by a bound in std::option::Option::<T>::unwrap_or_default --> C:\Users\CyberSec17.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\core\src\option.rs:1003:12
| 1001 | pub fn unwrap_or_default(self) -> T | ----------------- required by a bound in this associated function 1002 | where 1003 | T: Default, | ^^^^^^^ required by this bound in Option::<T>::unwrap_or_default

error[E0599]: no method named as_slice found for enum BundleResources in the current scope --> C:\Users\CyberSec17.cargo\registry\src\index.crates.io-6f17d22bba15001f\tauri-build-1.3.0\src\lib.rs:338:47 338 copy_resources(ResourcePaths::new(resources.as_slice(), true), target_dir)?; ^^^^^^^^ method not found in BundleResources

note: the method as_slice exists on the type Vec<std::string::String> --> C:\Users\CyberSec17.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\alloc\src\vec\mod.rs:1193:5 | 1193 | pub fn as_slice(&self) -> &[T] { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Some errors have detailed explanations: E0277, E0599.
For more information about an error, try rustc --explain E0277. error: could not compile tauri-build (lib) due to 2 previous errors warning: build failed, waiting for other jobs to finish...

ShyDamn commented 3 months ago

Инструкция:

  1. Открываешь jarvis-master/gui
  2. Возвращаешься на главную ветку jarvis-master
  3. npm install --save package.json, следующей командой npm install --save package-lock.json
  4. Устанавливаешь npm install -g tauri
  5. Устанавливаешь npm install -g @roxi/routify
  6. toutify добавляешь в PATH. Он находится по пути C:\Users\Твой_Пользователь\AppData\Roaming\npm\node_modules\@roxi\routify
  7. Переходишь в ветку app
  8. Устанавливаешь cargo install --force cargo-make
  9. cargo make release
  10. ./target/release/jarvis-app И не забудь скачать себе Picovoice, vosk, node и установить rust Приятного пользования