SummerTTS
SummerTTS copied to clipboard
ubuntu 24.04 编译失败
环境:
$ gcc --version
gcc (Ubuntu 13.2.0-23ubuntu4) 13.2.0
$ cmake --version
cmake version 3.28.3
报错信息:
github/SummerTTS/./src/header/hanzi2phoneid.h:21:9: error: ‘uint16_t’ was not declared in this scope
21 | map<uint16_t, uint16_t> numMap_;
| ^~~~~~~~
github/SummerTTS/./src/header/hanzi2phoneid.h:7:1: note: ‘uint16_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
6 | #include <vector>
+++ |+#include <cstdint>
github/SummerTTS/./src/header/hanzi2phoneid.h:21:19: error: ‘uint16_t’ was not declared in this scope
21 | map<uint16_t, uint16_t> numMap_;
| ^~~~~~~~
github/SummerTTS/./src/header/pinyinmap.h:12:5: error: ‘uint16_t’ was not declared in this scope; did you mean ‘utf8::uint16_t’?
12 | map<uint16_t, uint16_t> initNumMap();
| ^~~~~~~~
| utf8::uint16_t
github/SummerTTS/src/hz2py/./utf8/utf8/core.h:39:29: note: ‘utf8::uint16_t’ declared here
39 | typedef unsigned short uint16_t;
| ^~~~~~~~
github/SummerTTS/./src/header/Hanz2Piny.h:9:1: note: ‘uint16_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
8 | #include <map>
+++ |+#include <cstdint>
9 |
/github/SummerTTS/./src/header/Hanz2Piny.h:24:102: error: ‘uint16_t’ was not declared in this scope
24 | std::map<uint16_t, uint16_t> numMap,
| ^~~~~~~~