Skip to content

Commit 8c0db0b

Browse files
committed
Improve building instructions and build error messages
1 parent 8c972b6 commit 8c0db0b

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,14 @@ sudo pacman -S webrtc-audio-processing # Arch
3434

3535
### Build from source
3636

37+
The webrtc source code is included as a git submodule. Be sure to clone this repo with the `--recursive` flag, or pull the submodule with `git submodule update --init`.
38+
3739
Building from source and static linking can be enabled with the `bundled` feature flag. You need the following tools to build from source:
3840

3941
* `clang` or `gcc`
40-
* `autotools`
41-
* `libtoolize` (typically `glibtoolize` on MacOS)
42-
* `pkg-config`
42+
* `autotools` (MacOS: `brew install automake`, `brew install autoconf`)
43+
* `libtoolize` (typically `glibtoolize` on MacOS: `brew install libtool`)
44+
* `pkg-config` (MacOS: `brew install pkg-config`)
4345

4446
## Contributing
4547

webrtc-audio-processing-sys/build.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ mod webrtc {
111111
command.args(args);
112112
}
113113

114-
let _output = command.output()?;
114+
let _output = command.output().map_err(|e| {
115+
failure::format_err!("Error running command '{}' with args '{:?}' - {:?}", cmd, args_opt, e)
116+
})?;
115117

116118
Ok(())
117119
}

0 commit comments

Comments
 (0)