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 6.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.
  • SGaistS SGaist

    @nrml Because, as I wrote, it is part of the standard set of installed modules.

    N Offline
    N Offline
    nrml
    wrote on last edited by
    #29

    @SGaist

    Okay... so if I install Qt, it should be installed as default?
    Hmm... then why cannot my qt creator find the file?

    Path problem? I am installing qt in /opt directory and try run the code again once it done.

    1 Reply Last reply
    0
    • N Offline
      N Offline
      nrml
      wrote on last edited by nrml
      #30

      Once done installing Qt into /opt directory and git clone and qmake , make install and so forth, but it still says Unknown module(s) in QT: multimedia...

      What can I do anything else?

      JoeCFDJ 1 Reply Last reply
      0
      • N nrml

        Once done installing Qt into /opt directory and git clone and qmake , make install and so forth, but it still says Unknown module(s) in QT: multimedia...

        What can I do anything else?

        JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by
        #31

        @nrml It is unnecessary to do git clone anymore after installation. Next step is to add qt bin and lib path in the shell.

        add the similar stuff somewhere in .bashrc
        export QT_DIR=/opt/thirdParties/Qt/5.15.2/gcc_64
        export PATH=$QT_DIR/bin:$PATH
        export LD_LIBRARY_PATH=$QT_DIR/lib:$LD_LIBRARY_PATH

        open another tab and launch your qtcreator.

        1 Reply Last reply
        0
        • N Offline
          N Offline
          nrml
          wrote on last edited by
          #32

          @nrml

          I added

          export QT_DIR=/opt/Qt/5.15.2/gcc_64
          export PATH=$QT_DIR/bin:$PATH
          export LD_LIBRARY_PATH=$QT_DIR/lib:$LD_LIBRARY_PATH
          

          in .bashrc and logged out. Then launched qtcreator but the error was there...

          What I did is that I installed qtcreator in /opt/Qt/ and installed qtmultimedia which is cloned from git and qmake and so on. Then I added path above in my .bashrc.

          JoeCFDJ 1 Reply Last reply
          0
          • N nrml

            @nrml

            I added

            export QT_DIR=/opt/Qt/5.15.2/gcc_64
            export PATH=$QT_DIR/bin:$PATH
            export LD_LIBRARY_PATH=$QT_DIR/lib:$LD_LIBRARY_PATH
            

            in .bashrc and logged out. Then launched qtcreator but the error was there...

            What I did is that I installed qtcreator in /opt/Qt/ and installed qtmultimedia which is cloned from git and qmake and so on. Then I added path above in my .bashrc.

            JoeCFDJ Offline
            JoeCFDJ Offline
            JoeCFD
            wrote on last edited by
            #33

            @nrml PATH has to set first before clone. Actually cloning multimedia is not needed.
            in /opt/thirdParties/Qt/5.15.2/gcc_64/include, I have:
            drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtKmsSupport/
            drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtLinuxAccessibilitySupport/
            drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtLocation/
            drwxr-xr-x 3 root root 12288 Jan 12 11:29 QtMultimedia/
            drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtMultimediaGstTools/
            drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtMultimediaQuick/
            drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtMultimediaWidgets/
            drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtNetwork/
            drwxr-xr-x 3 root root 4096 Jan 12 11:30 QtNetworkAuth/

            in /opt/thirdParties/Qt/5.15.2/gcc_64/lib, I have
            -rw-r--r-- 1 root root 1084 Jan 12 11:29 libQt5MultimediaGstTools.la
            -rw-r--r-- 1 root root 1999 Jan 12 11:29 libQt5MultimediaGstTools.prl
            lrwxrwxrwx 1 root root 34 Jan 12 11:29 libQt5MultimediaGstTools.so -> libQt5MultimediaGstTools.so.5.15.2*
            lrwxrwxrwx 1 root root 34 Jan 12 11:29 libQt5MultimediaGstTools.so.5 -> libQt5MultimediaGstTools.so.5.15.2*
            lrwxrwxrwx 1 root root 34 Jan 12 11:29 libQt5MultimediaGstTools.so.5.15 -> libQt5MultimediaGstTools.so.5.15.2*
            -rwxr-xr-x 1 root root 448160 Nov 6 2020 libQt5MultimediaGstTools.so.5.15.2*
            -rw-r--r-- 1 root root 13762056 Nov 6 2020 libQt5MultimediaGstTools.so.5.15.2.debug
            -rw-r--r-- 1 root root 773 Jan 12 11:29 libQt5Multimedia.la
            -rw-r--r-- 1 root root 1462 Jan 12 11:29 libQt5Multimedia.prl
            -rw-r--r-- 1 root root 929 Jan 12 11:29 libQt5MultimediaQuick.la
            -rw-r--r-- 1 root root 1786 Jan 12 11:29 libQt5MultimediaQuick.prl
            lrwxrwxrwx 1 root root 31 Jan 12 11:29 libQt5MultimediaQuick.so -> libQt5MultimediaQuick.so.5.15.2*
            lrwxrwxrwx 1 root root 31 Jan 12 11:29 libQt5MultimediaQuick.so.5 -> libQt5MultimediaQuick.so.5.15.2*
            lrwxrwxrwx 1 root root 31 Jan 12 11:29 libQt5MultimediaQuick.so.5.15 -> libQt5MultimediaQuick.so.5.15.2*
            -rwxr-xr-x 1 root root 175168 Nov 6 2020 libQt5MultimediaQuick.so.5.15.2*
            -rw-r--r-- 1 root root 4672384 Nov 6 2020 libQt5MultimediaQuick.so.5.15.2.debug
            lrwxrwxrwx 1 root root 26 Jan 12 11:29 libQt5Multimedia.so -> libQt5Multimedia.so.5.15.2*
            lrwxrwxrwx 1 root root 26 Jan 12 11:29 libQt5Multimedia.so.5 -> libQt5Multimedia.so.5.15.2*
            lrwxrwxrwx 1 root root 26 Jan 12 11:29 libQt5Multimedia.so.5.15 -> libQt5Multimedia.so.5.15.2*
            -rwxr-xr-x 1 root root 1421032 Nov 6 2020 libQt5Multimedia.so.5.15.2*
            -rw-r--r-- 1 root root 43392192 Nov 6 2020 libQt5Multimedia.so.5.15.2.debug
            -rw-r--r-- 1 root root 880 Jan 12 11:29 libQt5MultimediaWidgets.la
            -rw-r--r-- 1 root root 1584 Jan 12 11:29 libQt5MultimediaWidgets.prl
            lrwxrwxrwx 1 root root 33 Jan 12 11:29 libQt5MultimediaWidgets.so -> libQt5MultimediaWidgets.so.5.15.2*
            lrwxrwxrwx 1 root root 33 Jan 12 11:29 libQt5MultimediaWidgets.so.5 -> libQt5MultimediaWidgets.so.5.15.2*
            lrwxrwxrwx 1 root root 33 Jan 12 11:29 libQt5MultimediaWidgets.so.5.15 -> libQt5MultimediaWidgets.so.5.15.2*
            -rwxr-xr-x 1 root root 172184 Nov 6 2020 libQt5MultimediaWidgets.so.5.15.2*
            -rw-r--r-- 1 root root 2710760 Nov 6 2020 libQt5MultimediaWidgets.so.5.15.2.debug

            Do you have all of them?

            N 1 Reply Last reply
            0
            • JoeCFDJ JoeCFD

              @nrml PATH has to set first before clone. Actually cloning multimedia is not needed.
              in /opt/thirdParties/Qt/5.15.2/gcc_64/include, I have:
              drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtKmsSupport/
              drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtLinuxAccessibilitySupport/
              drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtLocation/
              drwxr-xr-x 3 root root 12288 Jan 12 11:29 QtMultimedia/
              drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtMultimediaGstTools/
              drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtMultimediaQuick/
              drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtMultimediaWidgets/
              drwxr-xr-x 3 root root 4096 Jan 12 11:29 QtNetwork/
              drwxr-xr-x 3 root root 4096 Jan 12 11:30 QtNetworkAuth/

              in /opt/thirdParties/Qt/5.15.2/gcc_64/lib, I have
              -rw-r--r-- 1 root root 1084 Jan 12 11:29 libQt5MultimediaGstTools.la
              -rw-r--r-- 1 root root 1999 Jan 12 11:29 libQt5MultimediaGstTools.prl
              lrwxrwxrwx 1 root root 34 Jan 12 11:29 libQt5MultimediaGstTools.so -> libQt5MultimediaGstTools.so.5.15.2*
              lrwxrwxrwx 1 root root 34 Jan 12 11:29 libQt5MultimediaGstTools.so.5 -> libQt5MultimediaGstTools.so.5.15.2*
              lrwxrwxrwx 1 root root 34 Jan 12 11:29 libQt5MultimediaGstTools.so.5.15 -> libQt5MultimediaGstTools.so.5.15.2*
              -rwxr-xr-x 1 root root 448160 Nov 6 2020 libQt5MultimediaGstTools.so.5.15.2*
              -rw-r--r-- 1 root root 13762056 Nov 6 2020 libQt5MultimediaGstTools.so.5.15.2.debug
              -rw-r--r-- 1 root root 773 Jan 12 11:29 libQt5Multimedia.la
              -rw-r--r-- 1 root root 1462 Jan 12 11:29 libQt5Multimedia.prl
              -rw-r--r-- 1 root root 929 Jan 12 11:29 libQt5MultimediaQuick.la
              -rw-r--r-- 1 root root 1786 Jan 12 11:29 libQt5MultimediaQuick.prl
              lrwxrwxrwx 1 root root 31 Jan 12 11:29 libQt5MultimediaQuick.so -> libQt5MultimediaQuick.so.5.15.2*
              lrwxrwxrwx 1 root root 31 Jan 12 11:29 libQt5MultimediaQuick.so.5 -> libQt5MultimediaQuick.so.5.15.2*
              lrwxrwxrwx 1 root root 31 Jan 12 11:29 libQt5MultimediaQuick.so.5.15 -> libQt5MultimediaQuick.so.5.15.2*
              -rwxr-xr-x 1 root root 175168 Nov 6 2020 libQt5MultimediaQuick.so.5.15.2*
              -rw-r--r-- 1 root root 4672384 Nov 6 2020 libQt5MultimediaQuick.so.5.15.2.debug
              lrwxrwxrwx 1 root root 26 Jan 12 11:29 libQt5Multimedia.so -> libQt5Multimedia.so.5.15.2*
              lrwxrwxrwx 1 root root 26 Jan 12 11:29 libQt5Multimedia.so.5 -> libQt5Multimedia.so.5.15.2*
              lrwxrwxrwx 1 root root 26 Jan 12 11:29 libQt5Multimedia.so.5.15 -> libQt5Multimedia.so.5.15.2*
              -rwxr-xr-x 1 root root 1421032 Nov 6 2020 libQt5Multimedia.so.5.15.2*
              -rw-r--r-- 1 root root 43392192 Nov 6 2020 libQt5Multimedia.so.5.15.2.debug
              -rw-r--r-- 1 root root 880 Jan 12 11:29 libQt5MultimediaWidgets.la
              -rw-r--r-- 1 root root 1584 Jan 12 11:29 libQt5MultimediaWidgets.prl
              lrwxrwxrwx 1 root root 33 Jan 12 11:29 libQt5MultimediaWidgets.so -> libQt5MultimediaWidgets.so.5.15.2*
              lrwxrwxrwx 1 root root 33 Jan 12 11:29 libQt5MultimediaWidgets.so.5 -> libQt5MultimediaWidgets.so.5.15.2*
              lrwxrwxrwx 1 root root 33 Jan 12 11:29 libQt5MultimediaWidgets.so.5.15 -> libQt5MultimediaWidgets.so.5.15.2*
              -rwxr-xr-x 1 root root 172184 Nov 6 2020 libQt5MultimediaWidgets.so.5.15.2*
              -rw-r--r-- 1 root root 2710760 Nov 6 2020 libQt5MultimediaWidgets.so.5.15.2.debug

              Do you have all of them?

              N Offline
              N Offline
              nrml
              wrote on last edited by nrml
              #34

              @JoeCFD

              Thank you for showing your folders.
              I checked my /gcc_64/include and /gcc_64/lib. All folders and files you mentioned are in them.

              PATH has to set first before clone. Actually cloning multimedia is not needed.

              So, all I have to do was add PATH? No qmake or make install? Sorry I am a little confused...

              My qt creator's options:

              1feba256-33ac-46ff-a7ef-628bee0cb4cd-image.png

              c8ba6ce7-8c2d-4bbf-826f-7849c9b1ff59-image.png

              e7affb27-b360-4734-a2e8-f75ef023ba2d-image.png

              Are there any problems in these?

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

                Please do not modify the PATH environment variable like that for development tools.

                Beside being unnecessary, it will break as soon as you install a different Qt version and expect it to work automagically from the command line.

                As for your issue:

                • go to the terminal
                • create a dummy project there that uses QtMultimedia
                • use the full path to your Qt 5 installation's qmake to set it up
                • build from the command line

                What do you get ?

                I insist: use the full path to the qmake executable from your installation.

                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
                0
                • SGaistS SGaist

                  Please do not modify the PATH environment variable like that for development tools.

                  Beside being unnecessary, it will break as soon as you install a different Qt version and expect it to work automagically from the command line.

                  As for your issue:

                  • go to the terminal
                  • create a dummy project there that uses QtMultimedia
                  • use the full path to your Qt 5 installation's qmake to set it up
                  • build from the command line

                  What do you get ?

                  I insist: use the full path to the qmake executable from your installation.

                  N Offline
                  N Offline
                  nrml
                  wrote on last edited by nrml
                  #36

                  @SGaist

                  Okay, so do you recommend not to edit .bashrc and to use absolute path when I make?

                  What do you get ?

                  I added QT += core gui multimedia line to my multimedia temp project's .pro file and #include <QtMultimedia/QMediaPlayer> to .h file. Also added a push button to play some .mp3 file into .ui file. Then from my console I did qmake, make and run.
                  Wow, It worked!!
                  Thank you :)

                  But why does to build from Qt Creator make errors, which cannot find proper files? And this error is still there when I use qtcreator and I cannot build the project using it...

                  1 Reply Last reply
                  0
                  • N nrml

                    @JoeCFD

                    Thank you for showing your folders.
                    I checked my /gcc_64/include and /gcc_64/lib. All folders and files you mentioned are in them.

                    PATH has to set first before clone. Actually cloning multimedia is not needed.

                    So, all I have to do was add PATH? No qmake or make install? Sorry I am a little confused...

                    My qt creator's options:

                    1feba256-33ac-46ff-a7ef-628bee0cb4cd-image.png

                    c8ba6ce7-8c2d-4bbf-826f-7849c9b1ff59-image.png

                    e7affb27-b360-4734-a2e8-f75ef023ba2d-image.png

                    Are there any problems in these?

                    JoeCFDJ Offline
                    JoeCFDJ Offline
                    JoeCFD
                    wrote on last edited by
                    #37
                    This post is deleted!
                    1 Reply Last reply
                    0
                    • JoeCFDJ Offline
                      JoeCFDJ Offline
                      JoeCFD
                      wrote on last edited by JoeCFD
                      #38

                      launch Qt creator ==>Tools==>Options==>Kits==>Versions
                      switch to tab Kits and select 5.15.2 ( gcc_64 ) under Qt version for Kit: Desktop(click this); then click apply.
                      Click Qbs==>Profiles==>ModuleProvides==>Qt==>qmakeFilePath and make sure it points to /opt/thirdParties/Qt/5.15.2/gcc_64/bin/qmake
                      It will do it.

                      Manual settings on Qt Versions tab can be created and deleted if qt is not automatically detected.

                      N 1 Reply Last reply
                      0
                      • JoeCFDJ JoeCFD

                        launch Qt creator ==>Tools==>Options==>Kits==>Versions
                        switch to tab Kits and select 5.15.2 ( gcc_64 ) under Qt version for Kit: Desktop(click this); then click apply.
                        Click Qbs==>Profiles==>ModuleProvides==>Qt==>qmakeFilePath and make sure it points to /opt/thirdParties/Qt/5.15.2/gcc_64/bin/qmake
                        It will do it.

                        Manual settings on Qt Versions tab can be created and deleted if qt is not automatically detected.

                        N Offline
                        N Offline
                        nrml
                        wrote on last edited by nrml
                        #39

                        @JoeCFD

                        Thanks to your advice, now my qt creator works well!!

                        1 Reply Last reply
                        0
                        • N Offline
                          N Offline
                          nrml
                          wrote on last edited by
                          #40

                          @SGaist , @JoeCFD

                          Thank you both @SGaist and @JoeCFD so much :)

                          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