2011-08-02 38 views
1

我试图从here编译示例没有运气。编译节TTS C/C++示例

这是我用

g++ festival_test.cpp -Ifestival/src/include/ -Ispeech_tools/include/ -Lfestival/src/lib/ -Lspeech_tools/lib/ -lFestival -lestools -leststring -lestbase 

的命令和错误,我得到

festival/src/lib//libFestival.a(HTS_audio.o):HTS_audio.c:(.text+0xcf): undefined 
reference to `[email protected]' 
festival/src/lib//libFestival.a(HTS_audio.o):HTS_audio.c:(.text+0x19c): undefine 
d reference to `[email protected]' 
festival/src/lib//libFestival.a(HTS_audio.o):HTS_audio.c:(.text+0x1c0): undefine 
d reference to `[email protected]' 
festival/src/lib//libFestival.a(HTS_audio.o):HTS_audio.c:(.text+0x1e4): undefine 
d reference to `[email protected]' 
festival/src/lib//libFestival.a(HTS_audio.o):HTS_audio.c:(.text+0x1f5): undefine 
d reference to `[email protected]' 
festival/src/lib//libFestival.a(HTS_audio.o):HTS_audio.c:(.text+0x364): undefine 
d reference to `[email protected]' 
festival/src/lib//libFestival.a(HTS_audio.o):HTS_audio.c:(.text+0x3bd): undefine 
d reference to `[email protected]' 
festival/src/lib//libFestival.a(HTS_audio.o):HTS_audio.c:(.text+0x40f): undefine 
d reference to `[email protected]' 
speech_tools/lib//libestools.a(editline.o):editline.c:(.text+0x6117): undefined 
reference to `_tgetent' 
speech_tools/lib//libestools.a(editline.o):editline.c:(.text+0x6137): undefined 
reference to `_tgetstr' 
speech_tools/lib//libestools.a(editline.o):editline.c:(.text+0x614c): undefined 
reference to `_tgetstr' 
speech_tools/lib//libestools.a(editline.o):editline.c:(.text+0x6161): undefined 
reference to `_tgetstr' 
speech_tools/lib//libestools.a(editline.o):editline.c:(.text+0x6176): undefined 
reference to `_tgetstr' 
speech_tools/lib//libestools.a(editline.o):editline.c:(.text+0x620b): undefined 
reference to `_tgetstr' 
speech_tools/lib//libestools.a(editline.o):editline.c:(.text+0x6232): undefined 
reference to `_tgetnum' 
speech_tools/lib//libestools.a(editline.o):editline.c:(.text+0x6243): undefined 
reference to `_tgetnum' 
speech_tools/lib//libestools.a(editline.o):editline.c:(.text+0x6391): undefined 
reference to `_tgetstr' 
speech_tools/lib//libestbase.a(win32audio.o):win32audio.cc:(.text+0xd3): undefin 
ed reference to `[email protected]' 
collect2: ld returned 1 exit status 

我想我需要补充一下音频,我不知道是什么。

我正在使用cygwin,如果这有所作为。

回答

2

最后我得到它的工作。我已经添加了-lwinmm -lncurses,它编译没有错误。

g++ festival_test.cpp -Ifestival/src/include/ -Ispeech_tools/include/ -Lfestival/src/lib/ -Lspeech_tools/lib/ -lFestival -lestools -leststring -lestbase -lwinmm -lncurses