DougGore / picopi

Port of Android Pico TTS to the Raspberry Pi
125 stars 33 forks source link

build fail - TtsEngine.h:235:65: note: initializing argument 2.... #9

Open VigibotDev opened 5 years ago

VigibotDev commented 5 years ago

Last Raspbian Buster lite image. Any idea ?

|--------------------------------------------------------------------------------|
| This SETTING wil be used:                                                      |
|                                                                                |
|    --make:             "True"                                                  |
|    --lang-tts:         "FRA"                                                   |
|    --lang-bin-dir:     "../lang/"                                              |
|    --2std:             "True"                                                  |
|     Binary name:       "./picoPi2Stdout"                                       |
|                                                                                |
|--------------------------------------------------------------------------------|
|                                                                                |
 Correct SETTINGS (Y/N) $> Y
|                                                                                |
|--------------------------------------------------------------------------------|

 Compiling ...

g++ -L../lib/ strdup16to8.c strdup8to16.c svox_ssml_parser.cpp picottsengine.cpp main.picoPi2Std.cpp -lexpat -lsvoxpico -I../lib/ -fpermissive -o picoPi2Std
In file included from strdup16to8.c:23:
jstring.h:27:18: warning: redeclaration of C++ built-in type ‘char16_t’ [-fpermissive]
 typedef uint16_t char16_t;
                  ^~~~~~~~
In file included from strdup8to16.c:21:
jstring.h:27:18: warning: redeclaration of C++ built-in type ‘char16_t’ [-fpermissive]
 typedef uint16_t char16_t;
                  ^~~~~~~~
In file included from svox_ssml_parser.cpp:25:
jstring.h:27:18: warning: redeclaration of C++ built-in type ‘char16_t’ [-fpermissive]
 typedef uint16_t char16_t;
                  ^~~~~~~~
In file included from picottsengine.cpp:58:
jstring.h:27:18: warning: redeclaration of C++ built-in type ‘char16_t’ [-fpermissive]
 typedef uint16_t char16_t;
                  ^~~~~~~~
main.picoPi2Std.cpp: In function ‘int main(int, char**)’:
main.picoPi2Std.cpp:138:49: warning: invalid conversion from ‘uint8_t*’ {aka ‘unsigned char*’} to ‘int8_t*’ {aka ‘signed char*’} [-fpermissive]
     result = ttsEngine->synthesizeText(argv[1], synthBuffer, OUTPUT_BUFFER_SIZE, NULL);
                                                 ^~~~~~~~~~~
In file included from main.picoPi2Std.cpp:7:
TtsEngine.h:235:65: note:   initializing argument 2 of ‘virtual android::tts_result android::TtsEngine::synthesizeText(const char*, int8_t*, size_t, void*)’
     virtual tts_result synthesizeText(const char *text, int8_t *buffer,
                                                         ~~~~~~~~^~~~~~
root@raspberrypi:~/picoPi2/tts#