RustAudio / vst-rs

VST 2.4 API implementation in rust. Create plugins or hosts. Previously rust-vst on the RustDSP group.
MIT License
1.04k stars 91 forks source link

M1 MacOS and Ableton #190

Open yamadapc opened 2 years ago

yamadapc commented 2 years ago

After long trial and error I have found that Ableton Live only recognizes plugins if they are universal binaries.

For both this and https://github.com/RustAudio/vst3-sys, the dylibs must be compiled for both ARM and x86, otherwise they will not be recognized (only ARM won't work on native Apple Silicon Ableton it seems).

A script would be something to the effect of:

cargo build --target x86_64-apple-darwin
cargo build --target aarch64-apple-darwin
lipo -create ./target/x86_64-apple-darwin/debug/plugin.dylib  ./target/aarch64-apple-darwin/debug/plugin.dylib -output ./target/debug/plugin.dylib

file ./target/debug/plugin.dylib
# now use ./target/debug/plugin.dylib
nikhilunni commented 2 years ago

you are a lifesaver!!