C++ 如何在Windows上安装epitran的flite
我尝试在windows上使用python的包epitran,它返回单词的IPA表示形式。对于英语,正如网站所说,我需要从这里安装flite 在网上做了一些研究之后,我下载了这个文件,并尝试使用cygwin安装它 我还将cp-pd的两个实例更改为cp-pR作为epitran的网站,这表明了这一点 到目前为止,我已经在我的cygwin终端中执行了以下几行C++ 如何在Windows上安装epitran的flite,c++,makefile,flite,C++,Makefile,Flite,我尝试在windows上使用python的包epitran,它返回单词的IPA表示形式。对于英语,正如网站所说,我需要从这里安装flite 在网上做了一些研究之后,我下载了这个文件,并尝试使用cygwin安装它 我还将cp-pd的两个实例更改为cp-pR作为epitran的网站,这表明了这一点 到目前为止,我已经在我的cygwin终端中执行了以下几行 $ tar xjf flite-2.0.5-current.tar.bz2 $ cd flite-2.0.5-current 但当我执行此命令
$ tar xjf flite-2.0.5-current.tar.bz2
$ cd flite-2.0.5-current
但当我执行此命令时:
$ ./configure && make
我得到以下错误
gcc -I. -DCST_AUDIO_NONE -I../../include -g -O2 -Wall -c auclient.c -o ../../build/x86_64-cygwin/obj/src/audio/auclient.o
In file included from auclient.c:46:0:
../../include/cst_file.h: In function 'c99_vsnprintf':
../../include/cst_file.h:108:20: warning: implicit declaration of function '_vsnprintf_s' [-Wimplicit-function-declaration]
count = _vsnprintf_s(str, size, _TRUNCATE, format, ap);
^~~~~~~~~~~~
../../include/cst_file.h:108:44: error: '_TRUNCATE' undeclared (first use in this function)
count = _vsnprintf_s(str, size, _TRUNCATE, format, ap);
^~~~~~~~~
../../include/cst_file.h:108:44: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [../../config/common_make_rules:105: ../../build/x86_64-cygwin/obj/src/audio/auclient.o] Error 1
make[1]: *** [../config/common_make_rules:133: ../build/x86_64-cygwin/obj/src/.make_build_dirs] Error 2
make: *** [config/common_make_rules:133: build/x86_64-cygwin/obj//.make_build_dirs] Error 2
我基本上不知道我在做什么,可能是什么错误,因为我有0个C++或Linux的经验,如果有人给我一些帮助,我会非常感激。