Unsolved Installing QTSpeech
-
Good
One simpler alternative to build and install that module is to open the project with Qt Creator and build it with your Qt version (like any standard project).
To install it, go in the Projects panel and click on "Add build step", select make and in "Make arguments" write install. That should call make install each time you build the module.
-
Okay, so I got that done, but I had to do it with a different qtspeech thing I got from here, because the other one had some errors when I tried it. But anyways, I tried to make a project and use qtspeech but it didn't work. I even put the full path to the header file in the qtspeech folder in the #include. After putting the full path, it doesn't give an error on the include anymore, but when I try to make a qtspeech object
QtSpeech voice;//it says right here: QtSpeech undeclared identifier. voice.say("hello world");
Do I need to do something else after those last steps you told me? Thanks for your time.
-
Is QtSpeech in a namespace?
-
No, at least I don't think so. Do I just have to do something in the project file (the .pro file)? I tried add the qtspeech.h as a header. Like this..
HEADERS += "C:/Users/Quentin/Downloads/qtspeech-master/QtSpeech.h" SOURCES += "C:/Users/Quentin/Downloads/qtspeech-master/QtSpeech_win.cpp" // and added the .cpp file like this.
But nothing I tried worked. How would I go about adding it into a namespace? Thanks.
-
I can't seem to find anything online, they all are showing how to install libraries it they have a .lib file. QtSpeech doesn't seem to have one. Any Idea how I should add it to my project? Thanks.
-
One thing you can do is to add
include(C:/Users/Quentin/Downloads/qtspeech-master/qtspeech.pri)
to your .pro file so it will build everything with your project.
-
Since I can't seem to figure out how to get the one working, could you please tell me how to install the one you suggested to me? Seeing now, they both were getting errors likely because I didn't install them properly. Thanks.
-
What errors are you getting ?
-
The one you sent me:
:-1: error: Failed to run: perl -w C:\Qt\5.4\msvc2013_64\bin\syncqt.pl -module QtTextToSpeech -version 5.8.0 -outdir C:/Qt/5.4/msvc2013_64 C:/Users/Caiden/qtspeechThis happens when I open up the qtspeech.pro file and click run.
And then I get an error when I try to make a project an use the qtspeech library I got from here saying it doesn't recognize the library.
Basically, I can't figure out how to properly add the library to a project. -
Did you clone the repository or download an archive ?
-
I cloned it.
-
Then, do you have perl installed on your system ?
-
No, I just installed it and now it works, just several warning messages saying GetVersionExW was declared deprecated. How would I include it in a project now? Thanks.
-
Wait, nevermind, it works!! Thanks so much for your time and patience. I can't wait to start finishing up my project tomorrow! Did it just recognize it as a library when I ran it and then it installed it? Or was it something to do with perl, did it install it somehow?
-
perl was needed to run some script. Once that done,
nmake install
did install the module within your Qt installation. -
oh, okay. That makes sense. Thanks again.
-
Hi I am trying to use the same library but on ubuntu. I am getting the following error.
build-qtspeech-Desktop_Qt_5_6_0_GCC_64bit-Debug/tests/auto/texttospeech/tst_qtexttospeech does not exist -
Looks like you are trying to run the test. Just build the library and call make install.