wenet编译报Do not know how to define a 32-bit integer quantity on your system

Posted 修炼之路

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了wenet编译报Do not know how to define a 32-bit integer quantity on your system相关的知识,希望对你有一定的参考价值。

导读

在编译wenet的时候报Do not know how to define a 32-bit integer quantity on your system,系统是CentOS,详细错误如下

CMake Error at fc_base/gflags-src/CMakeLists.txt:286 (message):
Do not know how to define a 32-bit integer quantity on your system! Neither
uint32_t, u_int32_t, nor _int32 seem to be available. Set
[GFLAGS
]INTTYPES_FORMAT to either C99, BSD, or VC7 and try again.

解决办法

将下面的编译命令

mkdir build && cd build && cmake -DGRAPH_TOOLS=ON .. && cmake --build .

修改为

mkdir build && cd build
cmake -DINTTYPES_FORMAT:STRING=C99 ..

以上是关于wenet编译报Do not know how to define a 32-bit integer quantity on your system的主要内容,如果未能解决你的问题,请参考以下文章

php5.6.11编译安装报错configure: error: Don't know how to define struct flock on this system

英语口语练习(You know we can't afford that. How do other people do it? Other people make more twenty-f

But How Do It Know 关于人工智能的思考

I do not know

What makes an inferred latch? how To avoid creating inferred latches? when do you know you need lat

VC6.0 出现failed to (or don't know how to) build 原因及解决方法