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 install submodule Qtmultimedia on Fedora?
Forum Updated to NodeBB v4.3 + New Features

How to install submodule Qtmultimedia on Fedora?

Scheduled Pinned Locked Moved Unsolved General and Desktop
40 Posts 3 Posters 4.2k 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
    SGaist
    Lifetime Qt Champion
    wrote on 2 Jun 2021, 19:42 last edited by
    #6

    That part looks good.

    What about the content of gcc_x64 lib and plugins folders ?

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

    N 1 Reply Last reply 3 Jun 2021, 06:57
    0
    • J Offline
      J Offline
      JoeCFD
      wrote on 2 Jun 2021, 20:09 last edited by
      #7

      This is how I installed web engine module. It may be helpful for you.
      git clone ​https://code.qt.io/qt/qtwebengine.git
      cd qtwebengine
      git checkout 5.15.2 ==>match the Qt version installed
      git submodule update --init --recursive
      mkdir build
      cd build
      qmake ../qtwebengine.pro -- -no-build-qtwebengine-core ==>core engine build has been installed, no need to rebuild
      make -j4
      sudo make install ==>automatically to the installed location of Qt-5.15.2

      S N 2 Replies Last reply 2 Jun 2021, 20:14
      0
      • J JoeCFD
        2 Jun 2021, 20:09

        This is how I installed web engine module. It may be helpful for you.
        git clone ​https://code.qt.io/qt/qtwebengine.git
        cd qtwebengine
        git checkout 5.15.2 ==>match the Qt version installed
        git submodule update --init --recursive
        mkdir build
        cd build
        qmake ../qtwebengine.pro -- -no-build-qtwebengine-core ==>core engine build has been installed, no need to rebuild
        make -j4
        sudo make install ==>automatically to the installed location of Qt-5.15.2

        S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 2 Jun 2021, 20:14 last edited by
        #8

        @JoeCFD it's not about QtWebEngine but QtMultimedia.

        However, one good point: checkout the branch matching your release. By default it's dev and that one contains Qt 6 code.

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

        J 1 Reply Last reply 2 Jun 2021, 20:17
        0
        • S SGaist
          2 Jun 2021, 20:14

          @JoeCFD it's not about QtWebEngine but QtMultimedia.

          However, one good point: checkout the branch matching your release. By default it's dev and that one contains Qt 6 code.

          J Offline
          J Offline
          JoeCFD
          wrote on 2 Jun 2021, 20:17 last edited by
          #9

          @SGaist I know that. Simply let him know how this is done.

          1 Reply Last reply
          0
          • S SGaist
            2 Jun 2021, 19:42

            That part looks good.

            What about the content of gcc_x64 lib and plugins folders ?

            N Offline
            N Offline
            nrml
            wrote on 3 Jun 2021, 06:57 last edited by nrml 6 Mar 2021, 06:58
            #10

            @SGaist

            There are so many, about 600, files in the gcc_64 lib. What kind of files should be in the directory?

            Plugins folder has these folders:

            • assetimporters
            • audio
            • bearer
            • canbus
            • designer
            • egldeviceintegrations
            • gamepads
            • generic
            • geometryloaders
            • geoservices
            • iconengines
            • imageformats
            • mediaservice
            • platforminputcontexts
            • platforms
            • platformthemes
            • playlistformats
            • position
            • printsupport
            • qmltooling
            • renderers
            • renderplugins
            • sceneparsers
            • sensorgestures
            • sensors
            • sqldrivers
            • texttospeech
            • virtualkeyboard
            • wayland-decoration-client
            • wayland-graphics-integration-client
            • wayland-graphics-integration-server
            • wayland-shell-integration
            • webview
            • xcbglintegrations
            1 Reply Last reply
            0
            • J JoeCFD
              2 Jun 2021, 20:09

              This is how I installed web engine module. It may be helpful for you.
              git clone ​https://code.qt.io/qt/qtwebengine.git
              cd qtwebengine
              git checkout 5.15.2 ==>match the Qt version installed
              git submodule update --init --recursive
              mkdir build
              cd build
              qmake ../qtwebengine.pro -- -no-build-qtwebengine-core ==>core engine build has been installed, no need to rebuild
              make -j4
              sudo make install ==>automatically to the installed location of Qt-5.15.2

              N Offline
              N Offline
              nrml
              wrote on 3 Jun 2021, 11:17 last edited by
              #11

              @JoeCFD

              Thank you for your advice. I tried $ git clone git://code.qt.io/qt/qt5.git and $git checkout and so forth.
              At the point at make -j4 errors came, which said

              qt5/qtmultimedia/src/multimedia/qmediacontrol.cpp:136:10: fatal error: moc_qmediacontrol.cpp: No such file or directory
                136 | #include "moc_qmediacontrol.cpp"
              

              So I am doing $ https://code.qt.io/cgit/qt/qtmultimedia.git.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 3 Jun 2021, 11:29 last edited by
                #12

                The idea is that you look for the multimedia library and the plugins. The former should be something like libQt5Multimedia.so and you should have a subfolder named multimedia in the plugins folder.

                Note that if you do not have the GStreamer development libraries installed, you won't have much in the multimedia part.

                Did you do that from a clean state ?

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

                N 2 Replies Last reply 3 Jun 2021, 11:52
                0
                • S SGaist
                  3 Jun 2021, 11:29

                  The idea is that you look for the multimedia library and the plugins. The former should be something like libQt5Multimedia.so and you should have a subfolder named multimedia in the plugins folder.

                  Note that if you do not have the GStreamer development libraries installed, you won't have much in the multimedia part.

                  Did you do that from a clean state ?

                  N Offline
                  N Offline
                  nrml
                  wrote on 3 Jun 2021, 11:52 last edited by nrml 6 Mar 2021, 11:53
                  #13

                  @SGaist

                  Now Qt folder has multimedia and the install done:

                  $git clone https://code.qt.io/cgit/qt/qtmultimedia.git
                  $cd qtmultimedia/
                  $git checkout 5.15.2
                  $git submodule update --init --recursive
                  $cd ../qt_build
                  $qmake ../qtmultimedia/qtmultimedia.pro --
                  $make -j4
                  $make install
                  

                  No error happened but still error: Qtmultimedia/QMediaPlayer: No such file or directory occured.

                  Note that if you do not have the GStreamer development libraries installed, you won't have much in the multimedia part.

                  No, I haven't installed GStreamer development yet...

                  1 Reply Last reply
                  0
                  • S SGaist
                    3 Jun 2021, 11:29

                    The idea is that you look for the multimedia library and the plugins. The former should be something like libQt5Multimedia.so and you should have a subfolder named multimedia in the plugins folder.

                    Note that if you do not have the GStreamer development libraries installed, you won't have much in the multimedia part.

                    Did you do that from a clean state ?

                    N Offline
                    N Offline
                    nrml
                    wrote on 3 Jun 2021, 12:06 last edited by
                    #14

                    @SGaist

                    Did you do that from a clean state ?

                    No, the Qt folder was not cleaned. Should I re install Qt creator and clone https://code.qt.io/cgit/qt/qtmultimedia.git?

                    1 Reply Last reply
                    0
                    • J Offline
                      J Offline
                      JoeCFD
                      wrote on 3 Jun 2021, 15:04 last edited by
                      #15

                      After installation, you will be able to find this.
                      5.15.2/gcc_64/include/QtMultimedia
                      In the .pro file, add multimedia
                      QT += core gui widgets xml multimedia

                      N 2 Replies Last reply 3 Jun 2021, 15:18
                      0
                      • J JoeCFD
                        3 Jun 2021, 15:04

                        After installation, you will be able to find this.
                        5.15.2/gcc_64/include/QtMultimedia
                        In the .pro file, add multimedia
                        QT += core gui widgets xml multimedia

                        N Offline
                        N Offline
                        nrml
                        wrote on 3 Jun 2021, 15:18 last edited by nrml 6 Mar 2021, 15:28
                        #16

                        @JoeCFD

                        Hello,

                        After installation, you will be able to find this.
                        5.15.2/gcc_64/include/QtMultimedia

                        Yes, I can find it.

                        I uninstalled Qt creator and reinstalled it. Then I did:

                        $git clone https://code.qt.io/cgit/qt/qtmultimedia.git
                        $cd qtmultimedia/
                        $git checkout 5.15.2
                        $git submodule update --init --recursive
                        $cd ../qt_build
                        $qmake ../qtmultimedia/qtmultimedia.pro --
                        $make -j4
                        $make install
                        

                        No error has come. I wrote

                        QT += core gui widgets xml multimedia

                        in .pro file and #include <Qtmultimedia/QMediaPlayer> into mainwindow.h file.
                        But IDE says "Qtmultimedia/QMediaPlayer not found" and "You need to set an executable in the custom run configuration".

                        What am I missing?

                        J 1 Reply Last reply 3 Jun 2021, 15:50
                        0
                        • S Offline
                          S Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on 3 Jun 2021, 15:34 last edited by
                          #17

                          It's QtMultimedia.

                          However, the use of the module prefix recommandation has been dropped since Qt 5.0 if not before.

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

                          J N 2 Replies Last reply 3 Jun 2021, 15:45
                          0
                          • S SGaist
                            3 Jun 2021, 15:34

                            It's QtMultimedia.

                            However, the use of the module prefix recommandation has been dropped since Qt 5.0 if not before.

                            J Offline
                            J Offline
                            JoeCFD
                            wrote on 3 Jun 2021, 15:45 last edited by
                            #18
                            This post is deleted!
                            1 Reply Last reply
                            0
                            • S SGaist
                              3 Jun 2021, 15:34

                              It's QtMultimedia.

                              However, the use of the module prefix recommandation has been dropped since Qt 5.0 if not before.

                              N Offline
                              N Offline
                              nrml
                              wrote on 3 Jun 2021, 15:45 last edited by
                              #19

                              @SGaist
                              Hello,

                              I changed Qtmultimedia to QtMultimedia but it cannot find the file...

                              J 1 Reply Last reply 3 Jun 2021, 15:47
                              0
                              • N nrml
                                3 Jun 2021, 15:45

                                @SGaist
                                Hello,

                                I changed Qtmultimedia to QtMultimedia but it cannot find the file...

                                J Offline
                                J Offline
                                JoeCFD
                                wrote on 3 Jun 2021, 15:47 last edited by JoeCFD 6 Mar 2021, 15:48
                                #20

                                @nrml said in How to install submodule Qtmultimedia on Fedora?:

                                QtMultimedia

                                type:
                                locate QtMultimedia

                                to show what you see
                                I have:
                                /opt/thirdParties/Qt/5.15.2/gcc_64/include/QtMultimedia/5.15.2/QtMultimedia/

                                1 Reply Last reply
                                0
                                • N nrml
                                  3 Jun 2021, 15:18

                                  @JoeCFD

                                  Hello,

                                  After installation, you will be able to find this.
                                  5.15.2/gcc_64/include/QtMultimedia

                                  Yes, I can find it.

                                  I uninstalled Qt creator and reinstalled it. Then I did:

                                  $git clone https://code.qt.io/cgit/qt/qtmultimedia.git
                                  $cd qtmultimedia/
                                  $git checkout 5.15.2
                                  $git submodule update --init --recursive
                                  $cd ../qt_build
                                  $qmake ../qtmultimedia/qtmultimedia.pro --
                                  $make -j4
                                  $make install
                                  

                                  No error has come. I wrote

                                  QT += core gui widgets xml multimedia

                                  in .pro file and #include <Qtmultimedia/QMediaPlayer> into mainwindow.h file.
                                  But IDE says "Qtmultimedia/QMediaPlayer not found" and "You need to set an executable in the custom run configuration".

                                  What am I missing?

                                  J Offline
                                  J Offline
                                  JoeCFD
                                  wrote on 3 Jun 2021, 15:50 last edited by JoeCFD 6 Mar 2021, 15:51
                                  #21

                                  @nrml When Qt is installed, there is an option to select multimedia for installation. It is not necessary to install it separately. But now you know how to install a component which may be required in Qt6

                                  1 Reply Last reply
                                  0
                                  • J JoeCFD
                                    3 Jun 2021, 15:04

                                    After installation, you will be able to find this.
                                    5.15.2/gcc_64/include/QtMultimedia
                                    In the .pro file, add multimedia
                                    QT += core gui widgets xml multimedia

                                    N Offline
                                    N Offline
                                    nrml
                                    wrote on 3 Jun 2021, 15:59 last edited by nrml 6 Mar 2021, 16:00
                                    #22

                                    @JoeCFD

                                    QT += core gui widgets xml multimedia

                                    If I add widgets xml to QT +=, at #include<QMainWindwow> and some others, errors as "Lexical or preprocessor issue" and "Parse issue" happen...

                                    type:
                                    locate QtMultimedia

                                    Okay, this is a result:

                                    /opt/Webex/qml/QtMultimedia
                                    /opt/Webex/qml/QtMultimedia/libdeclarative_multimedia.so
                                    /opt/Webex/qml/QtMultimedia/qmldir
                                    /var/lib/flatpak/runtime/org.fedoraproject.Platform/x86_64/f34/ca7d2818b9f0f5fb411ff4ac4a7c6bf3e0b404aa3623d674b547245c0902f10a/files/lib64/qt5/qml/QtMultimedia
                                    /var/lib/flatpak/runtime/org.fedoraproject.Platform/x86_64/f34/ca7d2818b9f0f5fb411ff4ac4a7c6bf3e0b404aa3623d674b547245c0902f10a/files/lib64/qt5/qml/QtMultimedia/Video.qml
                                    /var/lib/flatpak/runtime/org.fedoraproject.Platform/x86_64/f34/ca7d2818b9f0f5fb411ff4ac4a7c6bf3e0b404aa3623d674b547245c0902f10a/files/lib64/qt5/qml/QtMultimedia/libdeclarative_multimedia.so
                                    /var/lib/flatpak/runtime/org.fedoraproject.Platform/x86_64/f34/ca7d2818b9f0f5fb411ff4ac4a7c6bf3e0b404aa3623d674b547245c0902f10a/files/lib64/qt5/qml/QtMultimedia/plugins.qmltypes
                                    /var/lib/flatpak/runtime/org.fedoraproject.Platform/x86_64/f34/ca7d2818b9f0f5fb411ff4ac4a7c6bf3e0b404aa3623d674b547245c0902f10a/files/lib64/qt5/qml/QtMultimedia/qmldir
                                    

                                    When Qt is installed, there is an option to select multimedia for installation.

                                    I used an installer which is from Open Source Qt Use but there was no option to multimedia. There, however, is an option to "Additional libraries->Qt->Active Qt, Qt 3D, Qt Charts and so forth" in Maintain Qt.

                                    J 1 Reply Last reply 3 Jun 2021, 16:13
                                    0
                                    • N nrml
                                      3 Jun 2021, 15:59

                                      @JoeCFD

                                      QT += core gui widgets xml multimedia

                                      If I add widgets xml to QT +=, at #include<QMainWindwow> and some others, errors as "Lexical or preprocessor issue" and "Parse issue" happen...

                                      type:
                                      locate QtMultimedia

                                      Okay, this is a result:

                                      /opt/Webex/qml/QtMultimedia
                                      /opt/Webex/qml/QtMultimedia/libdeclarative_multimedia.so
                                      /opt/Webex/qml/QtMultimedia/qmldir
                                      /var/lib/flatpak/runtime/org.fedoraproject.Platform/x86_64/f34/ca7d2818b9f0f5fb411ff4ac4a7c6bf3e0b404aa3623d674b547245c0902f10a/files/lib64/qt5/qml/QtMultimedia
                                      /var/lib/flatpak/runtime/org.fedoraproject.Platform/x86_64/f34/ca7d2818b9f0f5fb411ff4ac4a7c6bf3e0b404aa3623d674b547245c0902f10a/files/lib64/qt5/qml/QtMultimedia/Video.qml
                                      /var/lib/flatpak/runtime/org.fedoraproject.Platform/x86_64/f34/ca7d2818b9f0f5fb411ff4ac4a7c6bf3e0b404aa3623d674b547245c0902f10a/files/lib64/qt5/qml/QtMultimedia/libdeclarative_multimedia.so
                                      /var/lib/flatpak/runtime/org.fedoraproject.Platform/x86_64/f34/ca7d2818b9f0f5fb411ff4ac4a7c6bf3e0b404aa3623d674b547245c0902f10a/files/lib64/qt5/qml/QtMultimedia/plugins.qmltypes
                                      /var/lib/flatpak/runtime/org.fedoraproject.Platform/x86_64/f34/ca7d2818b9f0f5fb411ff4ac4a7c6bf3e0b404aa3623d674b547245c0902f10a/files/lib64/qt5/qml/QtMultimedia/qmldir
                                      

                                      When Qt is installed, there is an option to select multimedia for installation.

                                      I used an installer which is from Open Source Qt Use but there was no option to multimedia. There, however, is an option to "Additional libraries->Qt->Active Qt, Qt 3D, Qt Charts and so forth" in Maintain Qt.

                                      J Offline
                                      J Offline
                                      JoeCFD
                                      wrote on 3 Jun 2021, 16:13 last edited by JoeCFD 6 Mar 2021, 16:26
                                      #23

                                      @nrml download qt-unified-linux-x64-4.0.1-online.run from ​https://download.qt.io/official_releases/online_installers/
                                      use the latest one. Remove the old installation and try the new one. Install it in a location which can be found easily.
                                      Usually /opt is the right choice.

                                      N 1 Reply Last reply 3 Jun 2021, 16:49
                                      0
                                      • J JoeCFD
                                        3 Jun 2021, 16:13

                                        @nrml download qt-unified-linux-x64-4.0.1-online.run from ​https://download.qt.io/official_releases/online_installers/
                                        use the latest one. Remove the old installation and try the new one. Install it in a location which can be found easily.
                                        Usually /opt is the right choice.

                                        N Offline
                                        N Offline
                                        nrml
                                        wrote on 3 Jun 2021, 16:49 last edited by nrml 6 Mar 2021, 16:56
                                        #24

                                        @JoeCFD

                                        Thank you for the link. I downloaded qt-unified-linux-x86_64-4.1.1-online.run and tried to run but there is no option to select multimedia in Select Components. I looked for it in Additional libraries, which has

                                        • italicised text
                                        • list item"Active Qt",
                                        • list item" Qt 3D" and so on,

                                        and Qt versions. Qt 6.1.0 has

                                        • list item"Desktop gcc 64-bit",
                                        • list item"Android",
                                        • list item"Sources"....
                                          Screenshot from 2021-06-04 01-54-42.png

                                        Also Qt 5.15.2 has some components like them. Is the multimedia included one of them?

                                        J 1 Reply Last reply 3 Jun 2021, 18:03
                                        0
                                        • N nrml
                                          3 Jun 2021, 16:49

                                          @JoeCFD

                                          Thank you for the link. I downloaded qt-unified-linux-x86_64-4.1.1-online.run and tried to run but there is no option to select multimedia in Select Components. I looked for it in Additional libraries, which has

                                          • italicised text
                                          • list item"Active Qt",
                                          • list item" Qt 3D" and so on,

                                          and Qt versions. Qt 6.1.0 has

                                          • list item"Desktop gcc 64-bit",
                                          • list item"Android",
                                          • list item"Sources"....
                                            Screenshot from 2021-06-04 01-54-42.png

                                          Also Qt 5.15.2 has some components like them. Is the multimedia included one of them?

                                          J Offline
                                          J Offline
                                          JoeCFD
                                          wrote on 3 Jun 2021, 18:03 last edited by JoeCFD 6 Mar 2021, 18:05
                                          #25

                                          @nrml this is the latest 6.0.4. Click Archives and select 5.15.2 may be 4

                                          N 1 Reply Last reply 3 Jun 2021, 19:07
                                          0

                                          15/40

                                          3 Jun 2021, 15:04

                                          • Login

                                          • Login or register to search.
                                          15 out of 40
                                          • First post
                                            15/40
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved