导读
在编译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 ..