Browse Source

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

master
Reece H. Dunn 9 years ago
parent
commit
c1a5950605
2 changed files with 31 additions and 1 deletions
  1. 2
    1
      .gitignore
  2. 29
    0
      README.md

+ 2
- 1
.gitignore View File



# programs # programs


platforms/*/espeak-phoneme-data
*.exe

src/espeak-ng src/espeak-ng
src/espeakedit src/espeakedit
src/speak-ng src/speak-ng

+ 29
- 0
README.md View File

- [Audio Output Configuration](#audio-output-configuration) - [Audio Output Configuration](#audio-output-configuration)
- [eSpeak NG Feature Configuration](#espeak-ng-feature-configuration) - [eSpeak NG Feature Configuration](#espeak-ng-feature-configuration)
- [Extended Dictionary Configuration](#extended-dictionary-configuration) - [Extended Dictionary Configuration](#extended-dictionary-configuration)
- [Cross-Compiling For Windows](#cross-compiling-for-windows)
- [Testing](#testing) - [Testing](#testing)
- [Installing](#installing) - [Installing](#installing)
- [Building Voices](#building-voices) - [Building Voices](#building-voices)
| pulseaudio | `sudo apt-get install libpulse-dev` | | pulseaudio | `sudo apt-get install libpulse-dev` |
| portaudio | `sudo apt-get install libportaudio-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 ## Building


The `espeak-ng` and `speak-ng` programs, along with the espeak-ng voices, can The `espeak-ng` and `speak-ng` programs, along with the espeak-ng voices, can
provide better coverage for those languages, while increasing the resulting provide better coverage for those languages, while increasing the resulting
dictionary size. 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 ## Testing


Before installing, you can test the built espeak-ng using the following command: Before installing, you can test the built espeak-ng using the following command:

Loading…
Cancel
Save