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. QtMultimedia on Raspbian
QtWS25 Last Chance

QtMultimedia on Raspbian

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
6 Posts 2 Posters 3.1k 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.
  • N Offline
    N Offline
    neda
    wrote on last edited by neda
    #1

    I tried to deploy an application Qt on Raspbian (in raspberry pi 3).

    Qt Creator 3.2.1
    Based on Qt 5.3.2 (GCC 4.9.2, 32 bit)

    Debuggers: System GDB at /usr/bin/gdb/bin/gdb GDB
    Compiler: /usr/bin/arm-linux-gnueabihf-gcc-4.9
    Qt Version: Qt 5.3.2 (qt5) /usr/lib/arm-linux-gnueabihf/qt5/bin/qmake

    I have a problem when I want execute my application :

    Error: Could not load: qrc:/main.qml:7 module "QtMultimedia" is not installed
    

    I tried to deploy an application Qt on Raspbian (in raspberry pi 3).

    Qt Creator 3.2.1
    Based on Qt 5.3.2 (GCC 4.9.2, 32 bit)
    Debuggers: System GDB at /usr/bin/gdb/bin/gdb GDB
    Compiler: /usr/bin/arm-linux-gnueabihf-gcc-4.9
    Qt Version: Qt 5.3.2 (qt5) /usr/lib/arm-linux-gnueabihf/qt5/bin/qmake
    I have a problem when I want execute my application :

    Error: Could not load: qrc:/main.qml:7 module "QtMultimedia" is not installed
    Line 7:

    import QtMultimedia 5.0
    

    I use camera in qml.

    Camera {
             id: camera
             imageProcessing.whiteBalanceMode: 
             CameraImageProcessing.WhiteBalanceFlash
    

    My app.pro:

    Qt += multimedia
    

    I install:

    qtdeclarative5-dev, qtmobility-dev, qtdeclarative5-qtmultimedia-plugin 
    

    and

    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
    

    But I have same error.

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

      Hi,

      From what I can see, you are cross-compiling with Qt 5.3.2 but you are basing your code based on the 5.8 version, while likely using yet another version on your Raspian.

      Makes a bit of mix to find what's the exact problem.

      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

        Hi,

        From what I can see, you are cross-compiling with Qt 5.3.2 but you are basing your code based on the 5.8 version, while likely using yet another version on your Raspian.

        Makes a bit of mix to find what's the exact problem.

        N Offline
        N Offline
        neda
        wrote on last edited by neda
        #3

        @SGaist

        Hi, Thanks
        I wrote this application with Qt 5.8 for windows. It works fine in windows.
        I want to build same application in "Raspbian" (Raspberry pi3).
        What did I do wrong? (In install the Qt on Raspbian or?)
        What should I install Qt version?

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

          Do you mean you want to cross-compile it or build it directly on your Pi3 ?

          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

            Do you mean you want to cross-compile it or build it directly on your Pi3 ?

            N Offline
            N Offline
            neda
            wrote on last edited by neda
            #5

            @SGaist said in QtMultimedia on Raspbian:

            build it directly on your Pi3

            I want to install Qt on Pi3 and build program directly on it.

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

              Then you should check which is the exact version of Qt that is installed and then adapt the code to that version. If you want to use the exact same version, then you can compile Qt directly on your RPi3.

              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