编译节日 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 `_waveOutWrite@12'
festival/src/lib//libFestival.a(HTS_audio.o):HTS_audio.c:(.text+0x19c): undefine
d reference to `_waveOutReset@4'
festival/src/lib//libFestival.a(HTS_audio.o):HTS_audio.c:(.text+0x1c0): undefine
d reference to `_waveOutUnprepareHeader@12'
festival/src/lib//libFestival.a(HTS_audio.o):HTS_audio.c:(.text+0x1e4): undefine
d reference to `_waveOutUnprepareHeader@12'
festival/src/lib//libFestival.a(HTS_audio.o):HTS_audio.c:(.text+0x1f5): undefine
d reference to `_waveOutClose@4'
festival/src/lib//libFestival.a(HTS_audio.o):HTS_audio.c:(.text+0x364): undefine
d reference to `_waveOutOpen@24'
festival/src/lib//libFestival.a(HTS_audio.o):HTS_audio.c:(.text+0x3bd): undefine
d reference to `_waveOutPrepareHeader@12'
festival/src/lib//libFestival.a(HTS_audio.o):HTS_audio.c:(.text+0x40f): undefine
d reference to `_waveOutPrepareHeader@12'
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 `_PlaySoundA@12'
collect2: ld returned 1 exit status
我想我必须为音频添加一些东西,但我不知道什么。
如果这有什么区别的话,我正在使用 cygwin。
I tried to compile the example from here with no luck.
This is the command that i used
g++ festival_test.cpp -Ifestival/src/include/ -Ispeech_tools/include/ -Lfestival/src/lib/ -Lspeech_tools/lib/ -lFestival -lestools -leststring -lestbase
and the errors i get
festival/src/lib//libFestival.a(HTS_audio.o):HTS_audio.c:(.text+0xcf): undefined
reference to `_waveOutWrite@12'
festival/src/lib//libFestival.a(HTS_audio.o):HTS_audio.c:(.text+0x19c): undefine
d reference to `_waveOutReset@4'
festival/src/lib//libFestival.a(HTS_audio.o):HTS_audio.c:(.text+0x1c0): undefine
d reference to `_waveOutUnprepareHeader@12'
festival/src/lib//libFestival.a(HTS_audio.o):HTS_audio.c:(.text+0x1e4): undefine
d reference to `_waveOutUnprepareHeader@12'
festival/src/lib//libFestival.a(HTS_audio.o):HTS_audio.c:(.text+0x1f5): undefine
d reference to `_waveOutClose@4'
festival/src/lib//libFestival.a(HTS_audio.o):HTS_audio.c:(.text+0x364): undefine
d reference to `_waveOutOpen@24'
festival/src/lib//libFestival.a(HTS_audio.o):HTS_audio.c:(.text+0x3bd): undefine
d reference to `_waveOutPrepareHeader@12'
festival/src/lib//libFestival.a(HTS_audio.o):HTS_audio.c:(.text+0x40f): undefine
d reference to `_waveOutPrepareHeader@12'
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 `_PlaySoundA@12'
collect2: ld returned 1 exit status
I think i have to add something for audio and i don't know what.
I am using cygwin if this makes a difference.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最后我让它工作了。我添加了
-lwinmm -lncurses
并且编译时没有错误。Finally i got it working. I've added
-lwinmm -lncurses
and it compiles with no errors.