2011-08-02 3 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