Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Newest package in the old version Qt
Qt 6.11 is out! See what's new in the release blog

Newest package in the old version Qt

Scheduled Pinned Locked Moved Solved Installation and Deployment
23 Posts 3 Posters 19.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    You can clone the module and build it with the version of Qt you are using.

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    M 1 Reply Last reply
    1
    • SGaistS SGaist

      Hi,

      You can clone the module and build it with the version of Qt you are using.

      M Offline
      M Offline
      maratk1n
      wrote on last edited by maratk1n
      #3

      @SGaist thank for your answer.
      I downloaded submodule qtspeech-opensource-src-5.9.0, unpacked to C:\Qt\Qt5.6.1\5.6\mingw49_32\include\QtTextToSpeech. Now I can include libraries

      #include <QtTextToSpeech/QTextToSpeech>
      

      I'm trying to start an example of work. The following is written in the .pro file:

      QT += core gui widgets texttospeech
      

      But I'm getting an error

      Project ERROR: Unknown module(s) in QT: texttospeech
      

      Also after adding texttospeech can't include <QApplication> (no such file)

      aha_1980A 1 Reply Last reply
      0
      • M maratk1n

        @SGaist thank for your answer.
        I downloaded submodule qtspeech-opensource-src-5.9.0, unpacked to C:\Qt\Qt5.6.1\5.6\mingw49_32\include\QtTextToSpeech. Now I can include libraries

        #include <QtTextToSpeech/QTextToSpeech>
        

        I'm trying to start an example of work. The following is written in the .pro file:

        QT += core gui widgets texttospeech
        

        But I'm getting an error

        Project ERROR: Unknown module(s) in QT: texttospeech
        

        Also after adding texttospeech can't include <QApplication> (no such file)

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #4

        hi @maratk1n,

        it seems you simply extracted the archive in the Qt folder. That doesn't work. you need to extract it to a separate folder an then build the module. after building call make install to integrate the binaries into your Qt installation.

        Then you should be able to use the module.

        Regards

        Qt has to stay free or it will die.

        M 1 Reply Last reply
        1
        • aha_1980A aha_1980

          hi @maratk1n,

          it seems you simply extracted the archive in the Qt folder. That doesn't work. you need to extract it to a separate folder an then build the module. after building call make install to integrate the binaries into your Qt installation.

          Then you should be able to use the module.

          Regards

          M Offline
          M Offline
          maratk1n
          wrote on last edited by maratk1n
          #5

          @aha_1980
          Yes, I just extracted it. Then I found some information about how to do it, but did not find the exact instructions. Could you please briefly describe the procedure?
          I did this:

          c:\Users\T560\Downloads\qtspeech-opensource-src-5.9.0>C:\Qt\Qt5.6.1\5.6\mingw49_32\bin\qmake.exe -o Makefile qtspeech.pro
          
          c:\Users\T560\Downloads\qtspeech-opensource-src-5.9.0>C:\Qt\Qt5.6.1\Tools\mingw492_32\bin\mingw32-make.exe
          cd src\ && ( if not exist Makefile C:\Qt\Qt5.6.1\5.6\mingw49_32\bin\qmake.exe C:\Users\T560\Downloads\qtspeech-opensource-src-5.9.0\src\src.pro -o Makefile ) && C:/Qt/Qt5.6.1/Tools/mingw492_32/bin/mingw32-make -f Makefile
          mingw32-make[1]: Entering directory 'c:/Users/T560/Downloads/qtspeech-opensource-src-5.9.0/src'
          cd tts\ && ( if not exist Makefile C:\Qt\Qt5.6.1\5.6\mingw49_32\bin\qmake.exe C:\Users\T560\Downloads\qtspeech-opensource-src-5.9.0\src\tts\tts.pro -o Makefile ) && C:/Qt/Qt5.6.1/Tools/mingw492_32/bin/mingw32-make -f Makefile
          mingw32-make[2]: Entering directory 'c:/Users/T560/Downloads/qtspeech-opensource-src-5.9.0/src/tts'
          C:\Qt\Qt5.6.1\5.6\mingw49_32\bin\qmake.exe -o Makefile tts.pro
          C:/Qt/Qt5.6.1/Tools/mingw492_32/bin/mingw32-make -f Makefile.Release all
          mingw32-make[3]: Entering directory 'c:/Users/T560/Downloads/qtspeech-opensource-src-5.9.0/src/tts'
          g++ -c -pipe -fno-keep-inline-dllexport -msse2 -mstackrealign -mfpmath=sse -O2 -std=c++1y -fno-exceptions -frtti -Wall -Wextra -DUNICODE -DQTEXTTOSPEECH_LIBRARY -DQT_BUILD_TEXTTOSPEECH_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_CORE_LIB -I. -IC:/utils/postgresql/pgsql/include -IC:/utils/my_sql/my_sql/include -IC:/openssl/include -I..\..\include -I..\..\include\QtTextToSpeech -I..\..\include\QtTextToSpeech\5.9.0 -I..\..\include\QtTextToSpeech\5.9.0\QtTextToSpeech -Itmp -IC:\Qt\Qt5.6.1\5.6\mingw49_32\include\QtCore\5.6.1 -IC:\Qt\Qt5.6.1\5.6\mingw49_32\include\QtCore\5.6.1\QtCore -IC:\Qt\Qt5.6.1\5.6\mingw49_32\include -IC:\Qt\Qt5.6.1\5.6\mingw49_32\include\QtCore -I.moc\release -IC:\Qt\Qt5.6.1\5.6\mingw49_32\mkspecs\win32-g++  -o .obj\release\qtexttospeech.o qtexttospeech.cpp
          g++: error: CreateProcess: No such file or directory
          Makefile.Release:416: recipe for target '.obj/release/qtexttospeech.o' failed
          mingw32-make[3]: *** [.obj/release/qtexttospeech.o] Error 1
          mingw32-make[3]: Leaving directory 'c:/Users/T560/Downloads/qtspeech-opensource-src-5.9.0/src/tts'
          Makefile:38: recipe for target 'release-all' failed
          mingw32-make[2]: *** [release-all] Error 2
          mingw32-make[2]: Leaving directory 'c:/Users/T560/Downloads/qtspeech-opensource-src-5.9.0/src/tts'
          Makefile:39: recipe for target 'sub-tts-make_first' failed
          mingw32-make[1]: *** [sub-tts-make_first] Error 2
          mingw32-make[1]: Leaving directory 'c:/Users/T560/Downloads/qtspeech-opensource-src-5.9.0/src'
          makefile:40: recipe for target 'sub-src-make_first' failed
          mingw32-make: *** [sub-src-make_first] Error 2
          
          c:\Users\T560\Downloads\qtspeech-opensource-src-5.9.0>
          
          aha_1980A 1 Reply Last reply
          0
          • M maratk1n

            @aha_1980
            Yes, I just extracted it. Then I found some information about how to do it, but did not find the exact instructions. Could you please briefly describe the procedure?
            I did this:

            c:\Users\T560\Downloads\qtspeech-opensource-src-5.9.0>C:\Qt\Qt5.6.1\5.6\mingw49_32\bin\qmake.exe -o Makefile qtspeech.pro
            
            c:\Users\T560\Downloads\qtspeech-opensource-src-5.9.0>C:\Qt\Qt5.6.1\Tools\mingw492_32\bin\mingw32-make.exe
            cd src\ && ( if not exist Makefile C:\Qt\Qt5.6.1\5.6\mingw49_32\bin\qmake.exe C:\Users\T560\Downloads\qtspeech-opensource-src-5.9.0\src\src.pro -o Makefile ) && C:/Qt/Qt5.6.1/Tools/mingw492_32/bin/mingw32-make -f Makefile
            mingw32-make[1]: Entering directory 'c:/Users/T560/Downloads/qtspeech-opensource-src-5.9.0/src'
            cd tts\ && ( if not exist Makefile C:\Qt\Qt5.6.1\5.6\mingw49_32\bin\qmake.exe C:\Users\T560\Downloads\qtspeech-opensource-src-5.9.0\src\tts\tts.pro -o Makefile ) && C:/Qt/Qt5.6.1/Tools/mingw492_32/bin/mingw32-make -f Makefile
            mingw32-make[2]: Entering directory 'c:/Users/T560/Downloads/qtspeech-opensource-src-5.9.0/src/tts'
            C:\Qt\Qt5.6.1\5.6\mingw49_32\bin\qmake.exe -o Makefile tts.pro
            C:/Qt/Qt5.6.1/Tools/mingw492_32/bin/mingw32-make -f Makefile.Release all
            mingw32-make[3]: Entering directory 'c:/Users/T560/Downloads/qtspeech-opensource-src-5.9.0/src/tts'
            g++ -c -pipe -fno-keep-inline-dllexport -msse2 -mstackrealign -mfpmath=sse -O2 -std=c++1y -fno-exceptions -frtti -Wall -Wextra -DUNICODE -DQTEXTTOSPEECH_LIBRARY -DQT_BUILD_TEXTTOSPEECH_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_CORE_LIB -I. -IC:/utils/postgresql/pgsql/include -IC:/utils/my_sql/my_sql/include -IC:/openssl/include -I..\..\include -I..\..\include\QtTextToSpeech -I..\..\include\QtTextToSpeech\5.9.0 -I..\..\include\QtTextToSpeech\5.9.0\QtTextToSpeech -Itmp -IC:\Qt\Qt5.6.1\5.6\mingw49_32\include\QtCore\5.6.1 -IC:\Qt\Qt5.6.1\5.6\mingw49_32\include\QtCore\5.6.1\QtCore -IC:\Qt\Qt5.6.1\5.6\mingw49_32\include -IC:\Qt\Qt5.6.1\5.6\mingw49_32\include\QtCore -I.moc\release -IC:\Qt\Qt5.6.1\5.6\mingw49_32\mkspecs\win32-g++  -o .obj\release\qtexttospeech.o qtexttospeech.cpp
            g++: error: CreateProcess: No such file or directory
            Makefile.Release:416: recipe for target '.obj/release/qtexttospeech.o' failed
            mingw32-make[3]: *** [.obj/release/qtexttospeech.o] Error 1
            mingw32-make[3]: Leaving directory 'c:/Users/T560/Downloads/qtspeech-opensource-src-5.9.0/src/tts'
            Makefile:38: recipe for target 'release-all' failed
            mingw32-make[2]: *** [release-all] Error 2
            mingw32-make[2]: Leaving directory 'c:/Users/T560/Downloads/qtspeech-opensource-src-5.9.0/src/tts'
            Makefile:39: recipe for target 'sub-tts-make_first' failed
            mingw32-make[1]: *** [sub-tts-make_first] Error 2
            mingw32-make[1]: Leaving directory 'c:/Users/T560/Downloads/qtspeech-opensource-src-5.9.0/src'
            makefile:40: recipe for target 'sub-src-make_first' failed
            mingw32-make: *** [sub-src-make_first] Error 2
            
            c:\Users\T560\Downloads\qtspeech-opensource-src-5.9.0>
            
            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by
            #6

            hi @maratk1n,

            calling qmake and make is surely correct.

            I don't know from where the error comes, maybe the module just needs a newer Qt version.

            Qt has to stay free or it will die.

            M 1 Reply Last reply
            0
            • aha_1980A aha_1980

              hi @maratk1n,

              calling qmake and make is surely correct.

              I don't know from where the error comes, maybe the module just needs a newer Qt version.

              M Offline
              M Offline
              maratk1n
              wrote on last edited by
              #7

              @aha_1980
              So also tried it.

              c:\Users\T560\Downloads\qtspeech-opensource-src-5.9.0>C:\Qt\Qt5.6.1\5.6\mingw49_32\bin\qmake.exe
              
              c:\Users\T560\Downloads\qtspeech-opensource-src-5.9.0>make
              MAKE Version 5.41  Copyright (c) 1987, 2014 Embarcadero Technologies, Inc.
              Fatal makefile 484: No terminator specified for in-line file operator
              
              c:\Users\T560\Downloads\qtspeech-opensource-src-5.9.0>
              
              aha_1980A 1 Reply Last reply
              0
              • M maratk1n

                @aha_1980
                So also tried it.

                c:\Users\T560\Downloads\qtspeech-opensource-src-5.9.0>C:\Qt\Qt5.6.1\5.6\mingw49_32\bin\qmake.exe
                
                c:\Users\T560\Downloads\qtspeech-opensource-src-5.9.0>make
                MAKE Version 5.41  Copyright (c) 1987, 2014 Embarcadero Technologies, Inc.
                Fatal makefile 484: No terminator specified for in-line file operator
                
                c:\Users\T560\Downloads\qtspeech-opensource-src-5.9.0>
                
                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on last edited by
                #8

                @maratk1n,

                no, I meant how you did call the build tools was correct. I cant tell you where the build error originates.

                Qt has to stay free or it will die.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #9

                  Did you start a MinGW enabled command line to build that volume ?

                  You can also open it in Qt Creator and build it from there.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  M 1 Reply Last reply
                  2
                  • SGaistS SGaist

                    Did you start a MinGW enabled command line to build that volume ?

                    You can also open it in Qt Creator and build it from there.

                    M Offline
                    M Offline
                    maratk1n
                    wrote on last edited by maratk1n
                    #10

                    @SGaist
                    And so, I opened the project qtspeech-opensource-src-5.9.0.pro in Qt Creator.
                    I get an error

                    flite/flite.h: No such file or directory
                     #include <flite/flite.h>
                                             ^
                    

                    I suspect that in the future there will be errors related to the lack of sapi.h, atlbase.h.
                    I solved the problem with the sapi, but for the ATL I will have to install the visual studio, which I do not want to do.
                    Now I use Qt 5.6.1 MinGW

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #11

                      You might what to try with a more recent version. You should check with the 5.11 branch.

                      By the way, do you have flite installed ?

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      M 1 Reply Last reply
                      0
                      • SGaistS SGaist

                        You might what to try with a more recent version. You should check with the 5.11 branch.

                        By the way, do you have flite installed ?

                        M Offline
                        M Offline
                        maratk1n
                        wrote on last edited by
                        #12

                        @SGaist
                        I hardly installed a new Qt, engines and voices. But there was a problem:
                        If I run from the Qt Creator, everything works fine. But I tried to start directly, having previously collected the libraries with windeployqt.exe. There is no sound for some reason .. The app does not see a single voice

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #13

                          What exact error do you get ?

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          M 1 Reply Last reply
                          0
                          • SGaistS SGaist

                            What exact error do you get ?

                            M Offline
                            M Offline
                            maratk1n
                            wrote on last edited by maratk1n
                            #14

                            @SGaist
                            I run the application without Qt Creator, so I can not get the debug output. The application works without errors, just a list of votes is empty (I bring this list to the QComboBox).
                            But if I run the same program through Creator, the list of votes is full.

                            1 Reply Last reply
                            0
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on last edited by
                              #15

                              How are you filing that QComboBox ?

                              Interested in AI ? www.idiap.ch
                              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                              M 1 Reply Last reply
                              0
                              • SGaistS SGaist

                                How are you filing that QComboBox ?

                                M Offline
                                M Offline
                                maratk1n
                                wrote on last edited by
                                #16

                                @SGaist

                                QVector<QVoice> m_voices = speech.getAvailableVoices();
                                QVoice currentVoice = speech.getVoice();
                                foreach (const QVoice &voice, m_voices) {
                                    ui->speechVoices->addItem(QString("%1 - %2 - %3").arg(voice.name())
                                                      .arg(QVoice::genderName(voice.gender()))
                                                      .arg(QVoice::ageName(voice.age())));
                                    if (voice.name() == currentVoice.name())
                                        ui->speechVoices->setCurrentIndex(ui->speechVoices->count() - 1);
                                }
                                

                                class SpeechWorker:

                                // .h
                                
                                #ifndef SPEECHWORKER_H
                                #define SPEECHWORKER_H
                                
                                #include <QtTextToSpeech>
                                #include <QLocale>
                                
                                class SpeechWorker
                                {
                                    QTextToSpeech m_speech;
                                public:
                                    SpeechWorker();
                                    ~SpeechWorker() {}
                                    void say(const QString &text, bool stopPrevious = false){
                                        if (stopPrevious)
                                            m_speech.stop();
                                        m_speech.say(text);
                                    }
                                    QVector<QVoice> getAvailableVoices(){
                                        return m_speech.availableVoices();
                                    }
                                    QVoice getVoice(){
                                        return m_speech.voice();
                                    }
                                    void setVoice(int index){
                                        if((m_speech.availableVoices().size() < index) || (index < 0))
                                            return;
                                        m_speech.setVoice(m_speech.availableVoices().at(index));
                                    }
                                };
                                extern SpeechWorker speech;
                                #endif // SPEECHWORKER_H
                                
                                // .cpp
                                #include "speechworker.h"
                                
                                SpeechWorker speech;
                                
                                SpeechWorker::SpeechWorker()
                                {
                                    m_speech.setLocale(QLocale(QLocale::Russian, QLocale::RussianFederation));
                                    m_speech.setRate(0.4); //скорость от -1 до 1
                                    m_speech.setPitch(0.2); //высота голоса от -1 до 1
                                    m_speech.setVolume(1.0); //громкость от 0 до 1
                                }
                                

                                I noticed an interesting thing. I put the file hello_speak.exe from example next to my executable file and dll's, it works fine.

                                1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  maratk1n
                                  wrote on last edited by
                                  #17

                                  So, what can I do wrong? :(

                                  1 Reply Last reply
                                  0
                                  • SGaistS Offline
                                    SGaistS Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #18

                                    You can start your application with the QT_DEBUG_PLUGINS environment variable set to 1 to see if there's any information about that plugin that might be useful.

                                    Interested in AI ? www.idiap.ch
                                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    M 1 Reply Last reply
                                    1
                                    • SGaistS SGaist

                                      You can start your application with the QT_DEBUG_PLUGINS environment variable set to 1 to see if there's any information about that plugin that might be useful.

                                      M Offline
                                      M Offline
                                      maratk1n
                                      wrote on last edited by
                                      #19

                                      @SGaist
                                      I did

                                      #include "mainwindow.h"
                                      #include <QApplication>
                                      
                                      
                                      int main(int argc, char *argv[])
                                      {
                                          qputenv("QT_DEBUG_PLUGINS", QByteArray("1"));
                                      
                                          QApplication app(argc, argv);
                                          app.setApplicationDisplayName("ПАЗИ-100");
                                          QFont font = app.font();
                                          font.setPointSize(13);
                                          app.setFont(font);
                                          MainWindow w;
                                          //w.setWindowFlags(Qt::CustomizeWindowHint);
                                          w.show();
                                          return app.exec();
                                      }
                                      

                                      But he did not receive any messages. As before, my application does not see voices, and the application hello_speak.exe, which is in the same directory, sees everything fine.

                                      1 Reply Last reply
                                      0
                                      • SGaistS Offline
                                        SGaistS Offline
                                        SGaist
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #20

                                        Are you starting the application from the command line ?

                                        If the other one is working, you should compare your code with it to see if you are doing something different.

                                        Interested in AI ? www.idiap.ch
                                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                        M 1 Reply Last reply
                                        1
                                        • SGaistS SGaist

                                          Are you starting the application from the command line ?

                                          If the other one is working, you should compare your code with it to see if you are doing something different.

                                          M Offline
                                          M Offline
                                          maratk1n
                                          wrote on last edited by
                                          #21

                                          @SGaist said in Newest package in the old version Qt:

                                          Are you starting the application from the command line ?

                                          Sorry, I did wrong.
                                          I added to the .pro file CONFIG += console and received a message

                                          No text-to-speech plug-ins were found.
                                          

                                          @SGaist said in Newest package in the old version Qt:

                                          you should compare your code

                                          I compared and still compare. I do not see the difference: (

                                          1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt
                                          • Unsolved