Festival TTS failed to compile

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

Festival TTS failed to compile

Post by ^rooker »

When trying to compile 'festival' (http://www.cstr.ed.ac.uk/projects/festival/), I've ran across 2 compile errors because of 'termcap' being used.

Although the docs for festival say, that the 'editline' is optional (in 'speech_tools') because it might not compile on some platforms, I've decided to go the hard way - AND it did complain about missing the 'termcap' library.

Since termcap has been replaced by ncurses long ago (as I've read), I've simply symlinked '/usr/lib/libtermcap.so' to '/usr/lib/libncurses.so' which made it possible to compile the speech_tools.

Right afterwards, festival itself failed to compile and exited with several "undefined references" in 'festival_main.cc'. After it exits, simply change to the 'festival/src/main/' directory and compile the file manually, BUT add '-lncurses':
-------------------------------------------------------------
gcc -O3 -Wall -o festival festival_main.o \
-L../../src/lib -lFestival \
-L../../../speech_tools/lib \
-lestools \
-L../../../speech_tools/lib \
-lestbase \
-L../../../speech_tools/lib \
-leststring \
-ldl \
-lm \
-lstdc++ \
-lncurses
-------------------------------------------------------------

...now switch back to festival's root directory and run 'make' again.
Post Reply