guide
When compiling wenet Do not know how to define a 32-bit integer quantity on your system
, the system is reported CentOS
, and the detailed error is as follows
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.
Solution
Put the following compile command
mkdir build && cd build && cmake -DGRAPH_TOOLS=ON .. && cmake --build .
change into
mkdir build && cd build
cmake -DINTTYPES_FORMAT:STRING=C99 ..