freesig / cpal

Audio player in pure Rust
0 stars 0 forks source link

Error compiling `asio-sys`: Could not find `./asio_bindings.rs` #14

Closed mitchmindtree closed 6 years ago

mitchmindtree commented 6 years ago

Hey chap, just tried pulling your latest changes and ran a build again to see if I can solve #7 but I've run into a different error this time:

   Compiling asio-sys v0.1.0 (file:///C:/Users/mindtree/programming/rust/cpal/asio-sys)
error: couldn't read "C:\\Users\\mindtree\\programming\\rust\\cpal\\target\\debug\\build\\asio-sys-16161e38d95f61cf\\out/asio_bindings.rs": The system cannot find the file specified. (os error 2)
 --> asio-sys\src\asio_import.rs:6:1
  |
6 | include!(concat!(env!("OUT_DIR"), "/asio_bindings.rs"));
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

error: Could not compile `asio-sys`.

I'll check your recent commits to see if I can see what might have caused it.

mitchmindtree commented 6 years ago

Hmmm weird, it's like it's completely ignoring the build.rs file.

mitchmindtree commented 6 years ago

Ah, caused by not setting CPAL_ASIO_DIR variable