Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Crosscompile QtMultimedia for Raspberry Pi
Forum Updated to NodeBB v4.3 + New Features

Crosscompile QtMultimedia for Raspberry Pi

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
31 Posts 3 Posters 12.0k Views 3 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

    What if you disable ALSA support ?

    The cmake warning can be ignored, it just states that the related tests won't be run.

    A Offline
    A Offline
    arsinte_andrei
    wrote on last edited by
    #14

    @SGaist but I need Alsa support! I'm using ALSA with IQaudio Pi-DigiAMP+.
    What other option do you think is available?
    how to disable ALSA? and how to ignore the < Not running CMake unit tests > How to disable those tests anyway?

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

      I don't remember the options when using qmake directly, however you can comment the alsa relate lines in qtmultimedia/src/plugins.pro.

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

      A 1 Reply Last reply
      0
      • SGaistS SGaist

        I don't remember the options when using qmake directly, however you can comment the alsa relate lines in qtmultimedia/src/plugins.pro.

        A Offline
        A Offline
        arsinte_andrei
        wrote on last edited by
        #16

        @SGaist yep but what alternative do I have without ALSA? will PulseAudio work without ALSA? As far as I can see Qt is supporting only ALSA and PulseAudio and nothing else...

        Qt Multimedia:
          ALSA ................................... yes
          GStreamer 1.0 .......................... yes
          GStreamer 0.10 ......................... no
          Video for Linux ........................ yes
          OpenAL ................................. no
          PulseAudio ............................. yes
          Resource Policy (libresourceqt5) ....... no
          Windows Audio Services ................. no
          DirectShow ............................. no
          Windows Media Foundation ............... no
        

        at least into my configuration

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

          I meant that as a test to ensure that you could build the module. So then we can concentrate on why ALSA is not found properly at compile time.

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

          A 1 Reply Last reply
          0
          • SGaistS SGaist

            I meant that as a test to ensure that you could build the module. So then we can concentrate on why ALSA is not found properly at compile time.

            A Offline
            A Offline
            arsinte_andrei
            wrote on last edited by
            #18

            @SGaist after googling a lot .. my conclusion is that there is some sort of problem in QtMultimedia relating to gStreamer version - a fight between old one 0.1 and new one 1.0...

            "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
            

            this appeared on my Pi as a program error...

            by the way, I've also realised that compiling QtMultimedia just with

            ~/raspi/qtmultimedia$ ~/raspi/qt5/bin/qmake -r
            

            is working but when I'm trying to specify the GST version with

            GST_VERSION=1.0
            

            it can not find ALSA....
            witch, to be honest, is strange for me... that means 2 things:

            1. without gst version is compiling using gstreamer 0.1 witch acourding to this
            Qt Multimedia:
              ALSA ................................... yes
              GStreamer 1.0 .......................... yes
              GStreamer 0.10 ......................... no
              Video for Linux ........................ yes
              OpenAL ................................. no
              PulseAudio ............................. yes
              Resource Policy (libresourceqt5) ....... no
              Windows Audio Services ................. no
              DirectShow ............................. no
              Windows Media Foundation ............... no
            

            is not even available - but I can see that the compile finish without any error

            1. is using the new GStreamer 1.0 which is also found by the configure.. but.. why is finding ALSA now? Where is ALSA??

            ..... Realy strange... at least for me...

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

              You have both version of GStreamer installed on your sysroot ?

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

              A 2 Replies Last reply
              0
              • SGaistS SGaist

                You have both version of GStreamer installed on your sysroot ?

                A Offline
                A Offline
                arsinte_andrei
                wrote on last edited by
                #20

                @SGaist As you can see form configure (I think that configure is looking into sysroot if I'm not wrong) It says only 1.0..

                1 Reply Last reply
                0
                • SGaistS SGaist

                  You have both version of GStreamer installed on your sysroot ?

                  A Offline
                  A Offline
                  arsinte_andrei
                  wrote on last edited by
                  #21

                  @SGaist
                  after a lot more digging here is what I've just found out

                  • delete the libraries containing the unwanted elements (like /usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstomx.so)
                  • delete the cache ~/.cache/gstreamer-1.0/registry.arm.bin
                  • re-run the application

                  all are useless - at least in my case.

                  • adapt QtMultimedia source code, see and re-compile, cf. http://code.qt.io/cgit/qt/qtmultimedia.git/tree/src/plugins/gstreamer/mediaplayer/qgstreamerplayersession.cpp?id=eedba02427aa4750011f010319bf34959ecbd3e1&h=5.10.0#n168

                  and changed from "autoaudiosink" to "alsasink"
                  is giving this now:

                  ~/raspi/qt5/bin/qmake -r
                  Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_lib_multimedia.pri: No such file or directory
                  Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_lib_multimedia_private.pri: No such file or directory
                  Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_lib_multimediagsttools_private.pri: No such file or directory
                  Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_lib_multimediawidgets.pri: No such file or directory
                  Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_lib_multimediawidgets_private.pri: No such file or directory
                  Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_plugin_gstaudiodecoder.pri: No such file or directory
                  Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_plugin_gstcamerabin.pri: No such file or directory
                  Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_plugin_gstmediacapture.pri: No such file or directory
                  Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_plugin_gstmediaplayer.pri: No such file or directory
                  Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_plugin_mockserviceplugin1.pri: No such file or directory
                  Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_plugin_mockserviceplugin2.pri: No such file or directory
                  Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_plugin_mockserviceplugin3.pri: No such file or directory
                  Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_plugin_mockserviceplugin4.pri: No such file or directory
                  Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_plugin_mockserviceplugin5.pri: No such file or directory
                  Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_plugin_qtaudio_alsa.pri: No such file or directory
                  Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_plugin_qtmedia_pulse.pri: No such file or directory
                  Cannot read /home/andrei/raspi/qtmultimedia/mkspecs/modules-inst/qt_plugin_qtmultimedia_m3u.pri: No such file or directory
                  
                  Running configuration tests...
                  Done running configuration tests.
                  
                  Configure summary:
                  
                  Qt Multimedia:
                    ALSA ................................... yes
                    GStreamer 1.0 .......................... yes
                    GStreamer 0.10 ......................... no
                    Video for Linux ........................ yes
                    OpenAL ................................. no
                    PulseAudio ............................. yes
                    Resource Policy (libresourceqt5) ....... no
                    Windows Audio Services ................. no
                    DirectShow ............................. no
                    Windows Media Foundation ............... no
                  
                  Note: Dropped compiler flags '-pthread' when detecting library 'gstreamer'.
                  
                  Note: Dropped compiler flags '-pthread' when detecting library 'gstreamer_app'.
                  
                  Qt is now configured for building. Just run 'make'.
                  Once everything is built, Qt is installed.
                  You should NOT run 'make install'.
                  Note that this build cannot be deployed to other machines or devices.
                  
                  Prior to reconfiguration, make sure you remove any leftovers from
                  the previous build.
                  
                  Reading /home/andrei/.local/share/Trash/files/qtmultimedia (1)/src/src.pro
                   Reading /home/andrei/.local/share/Trash/files/qtmultimedia (1)/src/multimedia/multimedia.pro
                   Reading /home/andrei/.local/share/Trash/files/qtmultimedia (1)/src/multimediawidgets/multimediawidgets.pro
                   Reading /home/andrei/.local/share/Trash/files/qtmultimedia (1)/src/gsttools/gsttools.pro
                  Project ERROR: Could not find feature alsa.
                  
                  

                  So.. where is Alsa??? where I can find it? how can I put it there??

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

                    Is this on your desktop machine or on your Pi ?

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

                    A 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      Is this on your desktop machine or on your Pi ?

                      A Offline
                      A Offline
                      arsinte_andrei
                      wrote on last edited by
                      #23

                      @SGaist this is when I try to crosscompile QtMultimedia after modifying that line there - when running

                      ~/raspi/qt5/bin/qmake -r
                      
                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #24

                        Take a look at the tests to see what failed exactly.

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

                        A 1 Reply Last reply
                        0
                        • SGaistS SGaist

                          Take a look at the tests to see what failed exactly.

                          A Offline
                          A Offline
                          arsinte_andrei
                          wrote on last edited by
                          #25

                          @SGaist where is that... as you can see here

                          Configure summary:
                          
                          Qt Multimedia:
                            ALSA ................................... yes
                            GStreamer 1.0 .......................... yes
                            GStreamer 0.10 ......................... no
                            Video for Linux ........................ yes
                            OpenAL ................................. no
                            PulseAudio ............................. yes
                            Resource Policy (libresourceqt5) ....... no
                            Windows Audio Services ................. no
                            DirectShow ............................. no
                            Windows Media Foundation ............... no
                          

                          the GStreamer 1 and ALSA did pas the test...and aftre that alsa is failing why???

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

                            Read the config.log file

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

                            A 1 Reply Last reply
                            0
                            • A Offline
                              A Offline
                              arsinte_andrei
                              wrote on last edited by
                              #27

                              until I find a proper way of doing it for Raspberry Pi.. here you have a workaround this problem - delete the libgtsomx.so I had to delete also the libgstomx-rpi.so then delete the cache.
                              but this is just a workaround and making it to work.. I do not know if that is the proper way of doing it...

                              1 Reply Last reply
                              0
                              • SGaistS SGaist

                                Read the config.log file

                                A Offline
                                A Offline
                                arsinte_andrei
                                wrote on last edited by
                                #28

                                @SGaist said in Crosscompile QtMultimedia for Raspberry Pi:

                                Read the config.log file

                                Sorry but no config file found inside the qtmultimedia folder

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

                                  You don't have anything like that in the build folder ?

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

                                  A 1 Reply Last reply
                                  0
                                  • SGaistS SGaist

                                    You don't have anything like that in the build folder ?

                                    A Offline
                                    A Offline
                                    arsinte_andrei
                                    wrote on last edited by
                                    #30

                                    @SGaist OK... now I have a BIG question... where is that??

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

                                      The build folder ? The folder in which you called qmake to build the QtMultimedia module.

                                      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

                                      • Login

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