Nominate our 2022 Qt Champions!

Qt audio output example not building — missing generator class declaration

  • 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.

  • Lifetime Qt Champion


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

  • 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?

  • Lifetime Qt Champion

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

  • 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.)

  • Lifetime Qt Champion

    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

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


  • Lifetime Qt Champion

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

Log in to reply