| Instructions for building the Chrome Extension port of Espeak NG, |
| used on Chrome OS. |
| |
| You can either install emscripten locally, or use docker. I found |
| it easier to use this docker image: |
| https://github.com/apiaryio/emscripten-docker |
| |
| These instructions are only slightly different than emscripten/README.md. |
| The main difference is running autoreconf -fvi before autogen.sh, |
| because otherwise autogen.sh will make symlinks to some GNU autotools |
| files that won't be available to the docker image. |
| |
| # Build espeak normally first |
| autoreconf -fvi |
| ./autogen.sh |
| ./configure --prefix=/usr --without-async --without-mbrola --without-sonic |
| make |
| |
| # Build emscripten version of ucd-tools |
| cd src/ucd-tools |
| autoreconf -fvi |
| ./autogen.sh |
| cd ../.. |
| bash |
| docker run --rm -v $(pwd):/src -ti apiaryio/emcc /bin/bash |
| cd src/ucd-tools |
| emconfigure ./configure |
| emmake make |
| |
| # Build emscripten version of espeak-ng |
| autoreconf -fvi |
| ./autogen.sh |
| |
| docker run --rm -v $(pwd):/src -ti apiaryio/emcc /bin/bash |
| emconfigure ./configure --prefix=/usr --without-async --without-mbrola --without-sonic |
| emmake make src/libespeak-ng.la |
| cd emscripten |
| emmake make |