PDA

View Full Version : I am trying to install qtspeech



Dodeca
9th January 2014, 03:25
I am trying to install qtspeech

I am on linux mint 13 . And qt 5.02.

I followed the install instructions and the script had errors when run.

anybody got this to work?

below is part of the install text.

---
QtSpeech uses qmake to build itself as static library.
qmake is part of a Qt distribution. For Unix Festival
is required as TTS engine.

Building QtSpeech
==========================

A) Unix
--------

sh get-festival.sh
qmake QtSpeech.pro
make
---



THANKS !

ChrisW67
9th January 2014, 04:34
I followed the install instructions and the script had errors when run.
What a shame you didn't share them with us.


anybody got this to work?
Yes, more than likely.

speech_tools and festival both fail to build for me (nothin to drastic to fix). Perhaps there's a more recent version of each that is fixed or help in the mailing lists for those non-Qt packages.
I can see from the repository that there is no QtSpeech.pro file but there are other, obvious equivalents.

Dodeca
9th January 2014, 16:15
Well ... thanks for your reply ...

the section of code with the error was ...

sh get-festival.sh <----------------- HERE

lots of errors ... I suppose it was download error from missing files.

I was not sure from what directory to run this script ... home? qt directory ? does it matter?

so like i said ... i download festival and tools from the apt-get process and ... I believe i have them files

SO ... anybody got qtspeech to WORK on linux ???

thx

ChrisW67
9th January 2014, 19:59
sh get-festival.sh <----------------- HERE

lots of errors ... I suppose it was download error from missing files.
No they are compiler errors from trying to build the files it has downloaded. Both sets of source code fail to build. The errors are fairly easy to fix but they have nothing to do with Qt.


I was not sure from what directory to run this script ... home? qt directory ? does it matter?
You should run the get-festival.sh script from the directory containing the script. It creates a sub directory "festival" in which it works, downloads speech_tools, builds it (fails), downloads festival, builds it (fails). Read the get-festival.sh file for the steps.


so like i said ... i download festival and tools from the apt-get process and ... I believe i have them files
The get-festival.sh script is about fetching and building a local copy of these tools. Apt-get is not used.
If you already have festival installed using your system tools then you may be able to skip get-festival.sh entirely and build qt-speech itself bearing in mind that the pro file is not named as in the instructions and that it may be hard coded to use the local copy of festival you have skipped downloading (hence requiring modification)

Dodeca
10th January 2014, 03:56
Thanks for your quick reply !

It seems by your reply ... you have personally got the thing to work?

GOOD FOR YOU ! :)


The errors are fairly easy to fix but they have nothing to do with Qt

Well it's good the code is easy for you to understand ...

So ... why can't you tell me the answer you know all to well ... instead of NOT telling me?

I don't get it ?

me

Dodeca
10th January 2014, 07:20
You are right ... the code fails here ...

#!/bin/sh
mkdir -p festival
cd festival
curl http://www.cstr.ed.ac.uk/downloads/festival/2.1/speech_tools-2.1-release.tar.gz -o speech_tools.tar.gz
tar -zxf speech_tools.tar.gz
cd speech_tools
./configure
make <---------------------------------------- HERE

and not the download !


me

ChrisW67
10th January 2014, 20:53
No, I have not got it to work. I downloaded qt-speech, read and ran the shell script and scanned the error messages. The compilation errors contained sufficient information to correct the problem (the GCC error actually tells you exactly what to do for at least the first few) so I assumed that it was not a lost cause. None of this is Qt specific. The best people to talk to about compilation problems in the festival components is the the people that wrote/use it.

You since provided extra information that indicated you had obtained festival libraries from your distro repositories. In that case you can skip the whole step of running the script and building festival because someone else has done the work for you. You then proceed to following the rest of your INSTALL instructions. I have pointed out the obvious error there but have not proceeded to try and build it.

Dodeca
12th January 2014, 16:23
Well ... I believe my best plan is to find someone who has it working and willing to share.

thanks for you input :)

me

togvn202
6th February 2014, 19:10
i get the following error when build QtSpeech application on ubuntu. what could be the reason?
:-1: error: cannot find -lasound
:-1: error: collect2: ld returned 1 exit status

anda_skoa
6th February 2014, 19:50
Package libasound2-dev not installed perhaps?

Cheers,
_

ChrisW67
6th February 2014, 19:54
As the error message says, the library named 'asound' is not on your system. At a guess it is part of the ALSA libraries.

togvn202
7th February 2014, 17:22
after i install package libasound2-dev, and recompline QtSpeech app, i get the following error:

editline.c: (.text+0x7824): undefined reference to `tgetent'
editline.c: (.text+0x7847): undefined reference to `tgetstr'
editline.c: (.text+0x794a): undefined reference to `tgetnum'
How to solve this problem?

ChrisW67
7th February 2014, 20:07
The three functions are part of a Curses library that is missing. You might need Ncurses available.

togvn202
10th February 2014, 09:07
The three functions are part of a Curses library that is missing. You might need Ncurses available.
Thanks for your support but i have already installed Curses library for Ubuntu but this error still occurs when i rebuild Qt apps. Besides, I tried to remove and re-install this library for a several times for sure. This error really makes me confused, Can you tell me the more detailed way to make it go right.
the error here:

editline.c: (.text+0x7847): undefined reference to `tgetstr'
editline.c: (.text+0x7860): undefined reference to `tgetstr'
editline.c: (.text+0x7879): undefined reference to `tgetstr'
editline.c: (.text+0x7892): undefined reference to `tgetstr'
editline.c: (.text+0x7912): undefined reference to `tgetstr'
editline.c: (.text+0x7939): undefined reference to `tgetnum'
editline.c: (.text+0x794a): undefined reference to `tgetnum'
editline.c: (.text+0x7a44): undefined reference to `tgetstr'
collect2: ld returned 1 exit status
make: *** [test] Error 1
11:44:34: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project test (target: Desktop)
When executing step 'Make'

ChrisW67
10th February 2014, 20:03
The functions are from Curses.
Curses is installed on the system.
The linker cannot find them.
Ergo, the linker is looking in the wrong place, being told to look somewhere specific that's incorrect, or not looking at all.

Look at the entire linker command and entire linker message stream for clues.

This really has nothing to do with Qt.