phip1611 / audio-visualizer

Simple audio visualization library which is especially useful for developers to visually check audio algorithms against the waveform.
MIT License
51 stars 5 forks source link

Need windows build instructions #5

Closed dts350z closed 11 months ago

dts350z commented 2 years ago

I don't see any build instructions?

Especially for windows 10?

phip1611 commented 2 years ago

Hey! I'm currently at RustConf and back in Germany at the end of August (vacation). I can help you no earlier than that, unfortunately. Thanks for using one of my crates, tho! I hope, you either can figure it out yourself until then or that you can wait a few weeks.

Kind regards Philipp

dts350z @.***> schrieb am Fr., 5. Aug. 2022, 09:25:

I don't see any build instructions?

Especially for windows 10?

— Reply to this email directly, view it on GitHub https://github.com/phip1611/audio-visualizer/issues/5, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLYUOGYE77OSD2PDMSWSFTVXU57HANCNFSM55WTVI7Q . You are receiving this because you are subscribed to this thread.Message ID: @.***>

phip1611 commented 2 years ago

hey @dts350z , it builds without problems on my Windows 10 machine. Which problems/error messages do you encounter?

dts350z commented 2 years ago

Sorry, I thought it was a library written in some compiled language like C or C++. I see now that it is rust. I installed rust on Windows but still don't know how to use your library, or even run the examples.

phip1611 commented 2 years ago

Ahh, so you do not have a Rust background. I see. So usually, because the Rust ecosystem has a unified build system, projects do not have individual build instructions as the "typical instructions" just works for every project/crate.

TL;DR: cargo run --example <name-of-example> will do the trick

You do not need to build the library to include it in another project as the default for Rust is to use static linkage. Just create a Rust project with Cargo, add this crate as dependency, and then you should be able to use and compile everything.