gmallios / SoundcoreManager

Control Soundcore headphones with the power of Rust.
https://gmallios.github.io/SoundcoreManager/
124 stars 10 forks source link

[macOS] Build fails at iobluetooth #139

Open marcinbauer85 opened 1 year ago

marcinbauer85 commented 1 year ago

Trying to build this on my mac and Im getting this error. marcinbauer@marcinbauercodiblycom SoundcoreManager-macos-fixes % yarn tauri build yarn run v1.22.19 $ tauri build Running beforeBuildCommandyarn build` $ tsc && vite build vite v4.3.1 building for production... ✓ 1107 modules transformed. dist/index.html 0.40 kB │ gzip: 0.28 kB dist/assets/a3951_img_device_left-4d0d7088.webp 8.56 kB dist/assets/a3951_img_device_right_edited-0c3d60b2.webp 8.71 kB dist/assets/a3040_img_device-877189fe.webp 15.24 kB dist/assets/a3935_img_device-a77ed0ac.webp 19.28 kB dist/assets/a3027_img_device-e0d85385.webp 33.85 kB dist/assets/a3029_img_device-56d22a6c.webp 38.49 kB dist/assets/a3028_img_device-cdafd53d.webp 46.67 kB dist/assets/index-c4dd7fee.js 737.05 kB │ gzip: 242.93 kB

(!) Some chunks are larger than 500 kBs after minification. Consider:

Caused by: process didn't exit successfully: /Users/marcinbauer/Downloads/SoundcoreManager-macos-fixes/src-tauri/target/release/build/iobluetooth-4556dd54046b94a3/build-script-build (exit status: 101) --- stdout cargo:rerun-if-changed=protos/search.proto cargo:rerun-if-changed=protos

--- stderr thread 'main' panicked at 'Could not find protoc installation and this build crate cannot proceed without this knowledge. If protoc is installed and this crate had trouble finding it, you can set the PROTOC environment variable with the specific path to your installed protoc binary.You could try running brew install protobuf or downloading it from https://github.com/protocolbuffers/protobuf/releases

For more information: https://docs.rs/prost-build/#sourcing-protoc ', /Users/marcinbauer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/prost-build-0.11.4/src/lib.rs:1296:10 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace warning: build failed, waiting for other jobs to finish... Error failed to build app: failed to build app error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.`

Any ideas what can be wrong?

postn commented 6 months ago

Exact same issue error: failed to run custom build command for iobluetooth v0.1.0. Not sure if I need to do anything else.

Edit: Same error with macos-fixes tree too