Unsolved Installing QTSpeech
-
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.