Доброго времени суток.
Есть инструкция по использованию Festival, по которой надо сделать маленькое приложение: http://www.cstr.ed.ac.uk/projects/festival/manual/festival_28.html#SEC132 (http://www.cstr.ed.ac.uk/projects/festival/manual/festival_28.html#SEC132)
Но не получается запустить даже пример:
#define SYSTEM_IS_WIN32
#include <QCoreApplication>
#include <windows.h>
#include <festival.h>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
festival_initialize(1,FESTIVAL_HEAP_SIZE);
return a.exec();
}
Библиотеки подключены в .pro файле:
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../../../cygwin/home/festival/src/lib/ -llibFestival
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../../../cygwin/home/festival/src/lib/ -llibFestival
else:unix: LIBS += -L$$PWD/../../../../../../cygwin/home/festival/src/lib/ -llibFestival
INCLUDEPATH += $$PWD/../../../../../../cygwin/home/festival/src/include
DEPENDPATH += $$PWD/../../../../../../cygwin/home/festival/src/include
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../../../cygwin/home/speech_tools/lib/ -llibestbase
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../../../cygwin/home/speech_tools/lib/ -llibestbase
else:unix: LIBS += -L$$PWD/../../../../../../cygwin/home/speech_tools/lib/ -llibestbase
INCLUDEPATH += $$PWD/../../../../../../cygwin/home/speech_tools/include
DEPENDPATH += $$PWD/../../../../../../cygwin/home/speech_tools/include
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../../../cygwin/home/speech_tools/lib/ -llibestools
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../../../cygwin/home/speech_tools/lib/ -llibestools
else:unix: LIBS += -L$$PWD/../../../../../../cygwin/home/speech_tools/lib/ -llibestools
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../../../cygwin/home/speech_tools/lib/ -llibeststring
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../../../cygwin/home/speech_tools/lib/ -llibeststring
else:unix: LIBS += -L$$PWD/../../../../../../cygwin/home/speech_tools/lib/ -llibeststring
Ошибки:
C:\Qt\Qt5.1.0\Tools\QtCreator\bin\f2\main.cpp:9: ошибка: undefined reference to `festival_initialize(int, int)'
collect2.exe:-1: ошибка: error: ld returned 1 exit status
Я дуб-дубом и не могу понять, что же сделано не так.
Подскажите, пожалуйста.