Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt audio output example not building — missing generator class declaration
Qt 6.11 is out! See what's new in the release blog

Qt audio output example not building — missing generator class declaration

Scheduled Pinned Locked Moved General and Desktop
8 Posts 2 Posters 1.7k 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.
  • M Offline
    M Offline
    markanth
    wrote on last edited by
    #1

    Never had any problem building any of the qt examples until i tried the audio examples.

    Several of the audio examples do not build.

    I am assuming I am missing some dependency, setting, or something like that.

    When I try to build, for example, the audio output example, I get:

    C:\Qt\Examples\Qt-5.3\multimedia\audiooutput\audiooutput.cpp:62: error: 'Generator' does not name a type Generator::Generator

    And looking in the header, I do not see that class.

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

      Hi,

      You should update your setup. This example builds correctly with 5.4

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

      1 Reply Last reply
      0
      • M Offline
        M Offline
        markanth
        wrote on last edited by
        #3

        Yep, that was it. Thanks. Are there regressions for all the examples? If not, could they be added to prevent something like this in the future?

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

          What do you mean by " Are there regressions for all the examples?" ?

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

          1 Reply Last reply
          0
          • M Offline
            M Offline
            markanth
            wrote on last edited by
            #5

            I am just asking if the examples (e.g. Audio Output) were tested on the Windows version of Qt 5.3 with MinGW before it was released. (I imagine there is a makefile somewhere that builds all the examples with most of the common configurations before it is released, right? Anyway, I was just wondering if something slipped through the cracks and could be enhanced with those regression tests, or if, on the contrary, maybe I somehow corrupted my installation, or something like that.)

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

              There's a CI infrastructure that builds Qt regularly on all tier 1 platform. I'd be more thinking that something got messed up with your installation, the code you were missing has been there for more than 2 years

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

              1 Reply Last reply
              0
              • M Offline
                M Offline
                markanth
                wrote on last edited by
                #7

                Got it. I had another similar non-Qt issue. Maybe my drive is failing or corrupted somehow.

                Thanks.

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

                  Sometimes it can be as simple as a global search replace that also include a Qt header without anybody noticing

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

                  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 Extensions
                  • Unsolved