Add instructions for cross-compiling for Windows on POSIX systems.

This commit is contained in:
Reece H. Dunn
2015-12-18 22:11:27 +00:00
parent 6aee7b721f
commit c1a5950605
2 changed files with 31 additions and 1 deletions
+2 -1
View File
@@ -43,7 +43,8 @@ libespeak-ng.so*
# programs
platforms/*/espeak-phoneme-data
*.exe
src/espeak-ng
src/espeakedit
src/speak-ng
+29
View File
@@ -6,6 +6,7 @@
- [Audio Output Configuration](#audio-output-configuration)
- [eSpeak NG Feature Configuration](#espeak-ng-feature-configuration)
- [Extended Dictionary Configuration](#extended-dictionary-configuration)
- [Cross-Compiling For Windows](#cross-compiling-for-windows)
- [Testing](#testing)
- [Installing](#installing)
- [Building Voices](#building-voices)
@@ -46,6 +47,13 @@ Optionally, you need:
| pulseaudio | `sudo apt-get install libpulse-dev` |
| portaudio | `sudo apt-get install libportaudio-dev` |
Cross-compiling for windows:
| Dependency | Install |
|-------------------------|--------------------------------------------------------|
| 32-bit Windows compiler | `sudo apt-get install mingw-w64-i686-dev` |
| 64-bit Windows compiler | `sudo apt-get install mingw-w64-x86-64-dev` |
## Building
The `espeak-ng` and `speak-ng` programs, along with the espeak-ng voices, can
@@ -96,6 +104,27 @@ The extended dictionaries are taken from
provide better coverage for those languages, while increasing the resulting
dictionary size.
### Cross-Compiling For Windows
To prepare the build, run:
./autogen.sh
export ac_cv_func_realloc_0_nonnull=yes
export ac_cv_func_malloc_0_nonnull=yes
To build the 32-bit Windows executable, run:
./configure --host=i686-w64-mingw32 --with-mbrola=no --with-async=no
make
To build the 64-bit Windows executable, run:
./configure --host=x86_64-w64-mingw32 --with-mbrola=no --with-async=no
make
__NOTE:__ This currently fails to build `espeak-ng.exe`, but does build
`speak-ng.exe`.
## Testing
Before installing, you can test the built espeak-ng using the following command: