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. Raspberry pi + QtMultimedia + Alsa
Forum Updated to NodeBB v4.3 + New Features

Raspberry pi + QtMultimedia + Alsa

Scheduled Pinned Locked Moved Solved Mobile and Embedded
17 Posts 5 Posters 9.7k 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 Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by SGaist
    #7

    Hi and welcome to devnet,

    Did you install the ALSA development package for your target ?

    [edit: corrected question SGaist]

    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
    • C Offline
      C Offline
      Chrizzy87
      wrote on last edited by
      #8

      Hi everyone! I got the same issues. I'm a beginner in crosscompiling and just followed the tutorial: https://wiki.qt.io/RaspberryPi2EGLFS ; Now i want to capture Audio Data via USB Audio Adapter (ALSA) but cannot use the QtMultimedia library. Would appreciate it very much, if anyone can help and post a little tutorial about the steps which are different to the tutorial for enabling QtMultimedia. Thanks a lot!

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

        Hi and welcome to devnet,

        The same question applies: did you install the ALSA dev packages on your target ?

        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
        • A Offline
          A Offline
          Arthux
          wrote on last edited by
          #10

          Install alsa dev on target and 32bits host machine and it work well. But I don't know for 64bits host machine ...

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

            It should apply the same for a 64bit host.

            Do you mean you have it working properly now or is it still failing ?

            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
            • A Offline
              A Offline
              Arthux
              wrote on last edited by
              #12

              It's working with a 32bits virtual machine, I try the same thing with a 64bits machine

              jsulmJ 1 Reply Last reply
              0
              • A Arthux

                It's working with a 32bits virtual machine, I try the same thing with a 64bits machine

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #13

                @Arthux And what is the problem with 64bit machine? You just need to do the same as on 32bit.

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  Arthux
                  wrote on last edited by
                  #14

                  When I do qmake to qtmultimedia folder, QMake doesn't re-check alsa library. So it mark "no" to alsa plugin ...

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    Arthux
                    wrote on last edited by
                    #15

                    So, I finally do this tutorial : https://wiki.qt.io/RaspberryPi2EGLFS

                    It's perfect on 64bits host machine !

                    You must to install this libraries on the target (and purhaps on host machine) for alsa support on QtMultimedia before to do the tutorial :

                    sudo apt-get install libfontconfig1-dev libdbus-1-dev libfreetype6-dev libudev-dev libicu-dev libsqlite3-dev libxslt1-dev libssl-dev libasound2-dev libavcodec-dev libavformat-dev \
                    libswscale-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev gstreamer-tools gstreamer0.10-plugins-good gstreamer0.10-plugins-bad libraspberrypi-dev libpulse-dev \
                    libx11-dev libglib2.0-dev libcups2-dev freetds-dev libsqlite0-dev libpq-dev libiodbc2-dev libmysqlclient-dev firebird-dev libpng12-dev libjpeg9-dev libgst-dev libxext-dev libxcb1 \
                    libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 libxcb-icccm4-dev \
                    libxcb-sync0 libxcb-sync1-dev libxcb-render-util0 libxcb-render-util0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-glx0-dev libxi-dev libdrm-dev gstreamer0.10-alsa
                    

                    I prefert to download all Qt Libraries with this repo :

                    git clone git://code.qt.io/qt/qt5.git
                    cd qt5
                    ./init-repository
                    

                    And I had a little problem with icu and linaro toolchain. You can solve this with add "-no-icu" to configure the qt library.

                    And thank a lot, men, for your help !

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      Chrizzy87
                      wrote on last edited by Chrizzy87
                      #16

                      Hey, thanks for your answers! I made some progress. I installed the dependencies and cloned the repository, Arthux posted. Configured it like described in the tutorial, but now I'm stuck at "sudo make install".

                      Ich get the following error message, saying that stdc-predef could not be found:

                      In file included from <command-line>:0:0:
                      /home/chrizzy/raspi/sysroot/usr/include/stdc-predef.h:59:1: error: one or more PCH files were found, but they were invalid
                       #endif
                       ^
                      /home/chrizzy/raspi/sysroot/usr/include/stdc-predef.h:59:1: error: use -Winvalid-pch for more information
                      /home/chrizzy/raspi/sysroot/usr/include/stdc-predef.h:59:1: fatal error: .pch/Qt5Multimedia: Datei oder Verzeichnis nicht gefunden
                      compilation terminated.
                      Makefile:15672: die Regel für Ziel „.obj/qmediacontrol.o“ scheiterte
                      make[3]: *** [.obj/qmediacontrol.o] Fehler 1
                      make[3]: Verzeichnis „/home/chrizzy/raspi/qt5complete/qtmultimedia/src/multimedia“ wird verlassen
                      Makefile:58: die Regel für Ziel „sub-multimedia-install_subtargets“ scheiterte
                      make[2]: *** [sub-multimedia-install_subtargets] Fehler 2
                      make[2]: Verzeichnis „/home/chrizzy/raspi/qt5complete/qtmultimedia/src“ wird verlassen
                      Makefile:56: die Regel für Ziel „sub-src-install_subtargets“ scheiterte
                      make[1]: *** [sub-src-install_subtargets] Fehler 2
                      make[1]: Verzeichnis „/home/chrizzy/raspi/qt5complete/qtmultimedia“ wird verlassen
                      Makefile:633: die Regel für Ziel „module-qtmultimedia-install_subtargets“ scheiterte
                      make: *** [module-qtmultimedia-install_subtargets] Fehler 2
                      

                      Has anyone an idea how to solve this? Thanks a lot in advance!

                      1 Reply Last reply
                      0
                      • C Offline
                        C Offline
                        Chrizzy87
                        wrote on last edited by
                        #17

                        Solved it by adding the following argument to the ./configure call:

                        -no-pch
                        
                        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