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. How to get QtMultimedia to work ?
Forum Updated to NodeBB v4.3 + New Features

How to get QtMultimedia to work ?

Scheduled Pinned Locked Moved General and Desktop
10 Posts 3 Posters 6.3k 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.
  • S Offline
    S Offline
    sergex
    wrote on last edited by
    #1

    Hello,

    I have been using QtMultimedia perfectly fine when I downloaded the minGW version of Qt5 on windows, but I had to switch and use the MSVC version and now I cannot make QtMultimedia to work.

    I have added QT += multimedia to my .pro file and at least auto-completion works when I type #include <someMULTIMEDIA class>

    Is there something that I am missing ? Is it "normal" that it doesn't work now that I am using MSVC as a compiler.

    Any help greatly appreciated.

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

      Hi,

      Could you elaborate on "it doesn't work" ? What doesn't work ? What are you expecting and what are you getting ? etc...

      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
      • S Offline
        S Offline
        sergex
        wrote on last edited by
        #3

        It doesn't compile actually. The error I get is:

        C:\Qt\dev\Projects\TestDev\mainwindow.cpp:3: error: C1083: Cannot open include file: 'QAudioInput': No such file or directory

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

          Did you install the MSVC version of Qt ?

          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
          • S Offline
            S Offline
            sergex
            wrote on last edited by
            #5

            yes, I was working with the MinGW version, but I unistalled it completely and re-installed a clean install of MSVC version of Qt.
            Then the whole QtMultimedia problem started for some strange reason.

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

              What version of MSVC do you have installed and which version of Qt ?

              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
              • S Offline
                S Offline
                sergex
                wrote on last edited by
                #7

                I have installed :

                Qt 5.0.2 for Windows 32-bit (VS 2010, 485 MB).

                I already had Visual C++ 2010 Express edition installed before if that makes a difference.

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

                  What about

                  @#include <QtMultiMedia/QAudioInput>@

                  ?

                  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
                  • JKSHJ Offline
                    JKSHJ Offline
                    JKSH
                    Moderators
                    wrote on last edited by
                    #9

                    Maybe Qt Creator is remembering your old MinGW settings, so it's looking in the wrong place for headers/libraries.

                    Try this:

                    Close Qt Creator

                    Go to your project's root folder

                    Delete the file, <projectname>.pro.user, to wipe the old settings

                    Launch Qt Creator again, and load your project file, <projectname>.pro

                    Qt Creator should ask you to configure your project again. Select your MinGW kit.

                    If your kit isn't listed, check check your "installed Qt versions":http://qt-project.org/doc/qtcreator-2.7/creator-project-qmake.html, your "compilers":http://qt-project.org/doc/qtcreator-2.7/creator-tool-chains.html, and your "kits":http://qt-project.org/doc/qtcreator-2.7/creator-targets.html

                    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      sergex
                      wrote on last edited by
                      #10

                      Ok thanks, well I deleted the MinGW version of Qt so obviously it's not listed when QtCreator asks me to configure the project again, I am hoping to be able to make this work using the MSVC compiler.
                      if not I guess I will have to go back to MinGW but I might run into some problems with third party libraries since they are compiled using MSVC.

                      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