2011-08-02 4 views
1

J'ai essayé de compiler l'exemple de here sans succès.Exemple de compilation TTS C/C++

est la commande que je l'ai utilisé

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

et les erreurs que je reçois

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 

Je pense que je dois ajouter quelque chose pour l'audio et je ne sais pas quoi. J'utilise cygwin si cela fait une différence.

Répondre

2

Enfin je l'ai fonctionné. J'ai ajouté -lwinmm -lncurses et il compile sans erreurs.

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