Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unmentioned build dependencies #17

Open
BlacRyu opened this issue Dec 3, 2023 · 2 comments
Open

Unmentioned build dependencies #17

BlacRyu opened this issue Dec 3, 2023 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@BlacRyu
Copy link
Contributor

BlacRyu commented Dec 3, 2023

When building (on Windows) I get the following error:

	thread 'main' panicked at C:\Users\blacr\.cargo\registry\src\index.crates.io-6f17d22bba15001f\cmake-0.1.50\src\lib.rs:1098:5:  
	                                                                                                                               
	failed to execute command: program not found                                                                                   
	is `cmake` not installed? 

After installing CMake, I then get the following:

	thread 'main' panicked at C:\Users\blacr\.cargo\registry\src\index.crates.io-6f17d22bba15001f\bindgen-0.68.1\lib.rs:611:31:
	Unable to find libclang: "couldn't find any valid shared libraries matching: ['clang.dll', 'libclang.dll'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"

After installing LLVM I was then able to build successfully.

I then tried to run the with_nanou example but ran into another error:

     Running `target\release\examples\with_nannou.exe`
thread 'main' panicked at C:\Users\blacr\.cargo\registry\src\index.crates.io-6f17d22bba15001f\nannou_audio-0.18.0\src\stream\output.rs:134:10:
no matching supported audio output formats for the target device

I was able to solve this by changing the sample rate to my output devices current setting of 48000 Hz on line 39 of main.rs. After that the example seemed to run fine.

@alisomay
Copy link
Owner

alisomay commented Dec 3, 2023

Yeah maybe it is good to mention them.

Since this library depends on libpd that requires LLVM toolchain to build.

Also examples depend on cpal.

In windows cpal defaults to WASAPI backend. I don't know how that behaves exactly since when I'm on windows I generally use ASIO. On the other hand to use ASIO you need to build cpal with the asio feature.

But as you did, probably setting your environment as it needs will resolve the issue.
Audio needs a bit more love in windows compared to a mac with Coreaudio backend 😅

@alisomay alisomay self-assigned this Dec 3, 2023
@alisomay alisomay added enhancement New feature or request documentation Improvements or additions to documentation labels Dec 3, 2023
@anvlkv
Copy link
Contributor

anvlkv commented Apr 5, 2024

I'm trying to run the simple example on macos but run into similar issues. cmake and llvm had to be installed

alisomay added a commit that referenced this issue Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants