Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Cannot include QMediaPlayer and QVideoWidget

Cannot include QMediaPlayer and QVideoWidget

Scheduled Pinned Locked Moved Installation and Deployment
qmediaplayerqvideowidgetinclude5.4.2
2 Posts 2 Posters 2.6k Views
  • 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.
  • H Offline
    H Offline
    hamov
    wrote on last edited by
    #1

    Hi,
    I'm using Qt 5.4.2 x64 version compiled from source qt-everywhere-opensource-src-5.4.2.zip with Windows 7 x64 and MSVS2013 x64 with Qt VS Addin 1.2.4.
    My Qt configuration command is:

    configure -debug-and-release -platform win32-msvc2013 -skip script -skip webkit -skip connectivity -skip quick1 -skip quickcontrols -skip sensors -skip webengine -skip webchannel -nomake examples -nomake tests
    

    After nmake, I have the following include and lib folders:

    \qt-everywhere-opensource-src-5.4.2\qtbase\include\
    \qt-everywhere-opensource-src-5.4.2\qtbase\lib\
    

    The problem is, when I try to include QMediaPlayer or QVideoWidget in my MSVC project, compiler cant find them in Qt include files. I'm checked Qt include directory and found that

    \qt-everywhere-opensource-src-5.4.2\qtbase\include\QtMultimedia
    \qt-everywhere-opensource-src-5.4.2\qtbase\include\QtMultimediaWidgets
    

    folders contain just one file QtMultimediaDepends and QtMultimediaWidgetsDepends instead of include files. Also it is strange for me that in ...\lib\ folder I found according dll and lib files:

    Qt5Multimedia.lib
    Qt5Multimediad.lib
    Qt5Multimedia.dll
    Qt5Multimediad.dll
    Qt5MultimediaWidgets.lib
    Qt5MultimediadWidgetsd.lib
    Qt5MultimediaWidgets.dll
    Qt5MultimediadWidgetsd.dll
    

    The quistion is where are Multimedia include headers and how to include and use Multimedia in my project?

    Thanks in advance for any help.

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by Chris Kawa
      #2

      I'm not sure for the zip source package, but at least for the sources installed from the online installer the headers of QtMultimedia are placed next to qbase directory, not inside it.
      Also, to make your life easier you should use a prefix in your configure step and after compilation call 'nmake install' i.e.

      configure -prefix "C:\Some path\" ...
      nmake
      nmake install
      

      This would build Qt in the current directory and then copy over everything needed in their right places to the prefix directory. You can then safely delete the build directory and save a lot of space, since it contains all the intermediate build artifacts that you don't need. All the includes would be placed in a single <prefix dir>\include directory for you, such as they are in the precompiled packages.

      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