Skip to content

Commit 814eddb

Browse files
committed
Update .pro and README (Linux support)
1 parent 18c8e3e commit 814eddb

File tree

2 files changed

+30
-5
lines changed

2 files changed

+30
-5
lines changed

examples/cppwin/README.md

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,46 @@ Inference is even easier than in Python.
1414

1515
# Using the demo
1616

17-
The demo program is available for download to use for Windows x64. To use it, do the following:
17+
The demo program is available for download to use for Windows x64 and Linux (Ubuntu 18.04) x64.
18+
19+
To use it, do the following depending on platform:
1820

1921
## Using the precompiled demo for Windows
2022
1. Download the [Windows x64 binary and LJSpeech model](https://drive.google.com/file/d/1JHoR3kfFRcxZwghOXsAWXzhYZ3pnZmcc/view?usp=sharing)
2123
2. Download the [dependencies](https://drive.google.com/file/d/1ufLQvH-Me2NLmzNBkjcyD13WTyHb35aB/view?usp=sharing)
2224
3. Extract both, and place `tensorflow.dll` in the same folder as the executable you downloaded in Step 1
2325
4. Run
2426

27+
## Using the precompiled demo for Linux
28+
Tested in Kubuntu 18.04 LTS
29+
1. Download the [Linux x64 binary and LJSpeech model](https://drive.google.com/file/d/17wAVsxRpaPogPpzOiEJB8QJjF_wI60q2/view?usp=sharing)
30+
2. Extract to whatever directory you like
31+
3. Navigate with terminal
32+
4. `LD_LIBRARY_PATH=lib ./TensorflowTTSCppInference`
33+
34+
2535
For compiling it yourself, see **Compiling** below
2636

2737
# Compiling
38+
Compiling the demo depends on what platform. Currently two have been tested:
39+
1. Windows 10 x64; MSVC 2017 (v141)
40+
2. Linux(Ubuntu) x64: GCC 7.5.0
41+
42+
## Windows
2843
Due to being too heavy, some dependencies (include + libs) have been excluded from the repo. You can find them [here](https://drive.google.com/file/d/1ufLQvH-Me2NLmzNBkjcyD13WTyHb35aB/view?usp=sharing) for Windows 64-bit release. Simply put the `deps` folder into the same place as the solution (.sln) file.
2944

30-
### For other platforms
31-
For Windows x64, precompiled libraries are included. For other platforms (such as Ubuntu), you'll have to download and compile from source the following dependencies:
45+
## Ubuntu
46+
Tested with compiler `gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)` . If you've got the same one then you should try my precompiled libs (also includes Tensorflow official C API).
47+
1. Download [Linux dependencies](https://drive.google.com/file/d/1MF4QXq69l8h6nh4h_nKatShobyfbAkiD/view?usp=sharing) and extract the deps folder in the same place as the .pro
48+
2. `sudo apt install qt5-default`
49+
3. `qmake TensorflowTTSCppInference.pro`
50+
4. `make`
3251

33-
1. [Phonetisaurus](https://github.com/AdolfVonKleist/Phonetisaurus)
52+
53+
## For other platforms
54+
For Windows x64 and Ubuntu 18.04 x64 (gcc version 7.5.0), precompiled libraries are included. For other platforms, you'll have to download and compile from source the following dependencies:
55+
56+
1. [libPhonetisaurus](https://github.com/ZDisket/Phonetisaurus)
3457
2. [OpenFST](http://www.openfst.org/twiki/bin/view/FST/WebHome) (preferably 1.6.2)
3558

3659
For Tensorflow, you need the C API, which you can grab compiled binaries (or view compile instructions) [from here](https://www.tensorflow.org/install/lang_c).
@@ -41,7 +64,7 @@ For Windows x64, precompiled libraries are included. For other platforms (such a
4164

4265
1. With MSVC compiler, you'll have to use `/FORCE` as linker command line option, because otherwise the linker throws `LNK2005` due to OpenFST linking; the included project is already set up for that. Not sure about GCC, but you'll probably have to do something similar.
4366
2. Tensorflow library malfunctions in debug builds, so only build release.
44-
3. Using MSVC 2017 (v141) compiler.
67+
3. Using MSVC 2017 (v141) compiler in Windows.
4568

4669
## Externals (and thanks)
4770

@@ -55,3 +78,4 @@ For Windows x64, precompiled libraries are included. For other platforms (such a
5578

5679

5780

81+

examples/cppwin/TensorflowTTSCppInference.pro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ TEMPLATE = app
22
CONFIG += console c++14
33
CONFIG -= app_bundle
44
CONFIG -= qt
5+
TARGET = TFTTSCppInfer
56

67
HEADERS += \
78
TensorflowTTSCppInference/EnglishPhoneticProcessor.h \

0 commit comments

Comments
 (0)