Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mthrok committed May 29, 2020
1 parent 47ee041 commit 4d71567
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,17 @@ python setup.py install
MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ python setup.py install
```

Alternatively, the extension can build and link SoX statically, by defining `BUILD_SOX` environment variable.
Alternatively, the build process can build SoX (and codecs such as libmad, lame and flac) statically and torchaudio can link them, by defining `BUILD_SOX` environment variable.
The build process will fetch and build SoX, liblame, libmad, flac before building extension.

```bash
# Linux
BUILD_SOX= python setup.py install

# OSX
BUILD_SOX= MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ python setup.py install
```

#### Troubleshooting:

<Details><Summary>Undefined reference to `tgetnum' when using `BUILD_SOX`</Summary>
Expand Down

0 comments on commit 4d71567

Please sign in to comment.