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. Add Multimedia Widgets to Qt Creator C++ project for Raspberry Pi
Forum Updated to NodeBB v4.3 + New Features

Add Multimedia Widgets to Qt Creator C++ project for Raspberry Pi

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
11 Posts 3 Posters 6.8k Views 2 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.
  • douglasD Offline
    douglasD Offline
    douglas
    wrote on last edited by
    #1

    Hi,
    I am trying to compile a Qt5 project that should play a video, and I found the Multimedia widget could be used for it. The problem is that when I add the line:

    QT +=    multimediawidgets 
    

    on my app.pro file, it gives me a build error:

        :-1: error: Unknown module(s) in QT: multimedia multimediawidgets
    

    Then I tryied to install the missing module with:

    sudo apt-get install qtmultimedia5-dev
    

    but I did not succeed.
    Does anyone know what am I missing or what am I doing wrong?
    How I can build a Qt project including multimedia features?
    Thanks a lot!

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

      Hi and welcome to devnet,

      What error did you get when trying to install that package ?

      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
      • douglasD Offline
        douglasD Offline
        douglas
        wrote on last edited by douglas
        #3

        Hi! I didn't get any error when I installed that package on Ubuntu, the problem is that my Qt project fails the build anyway. I get the same error "Unknown module(s) in QT: multimedia multimediawidgets" even though that package is now installed!
        Looking at Ubuntu Software Centre, "Qt Multimedia Widgets Module" seems to be installed!

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

          Are you cross-compiling for the Raspberry Pi ?

          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
          • douglasD Offline
            douglasD Offline
            douglas
            wrote on last edited by
            #5

            Yes, I'm cross-compiling for the Raspberry Pi on Ubuntu! Sorry, I did not mentioned before:)
            The Multimedia package seems to be installed.. perhaps have I to add some additional compilation directives on Qt project properties?

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

              It looks like you don't have qtmultimedia for RPI. Did you build it for RPI?

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

              1 Reply Last reply
              0
              • douglasD Offline
                douglasD Offline
                douglas
                wrote on last edited by douglas
                #7

                The problem is when I build at the desktop side. I have already installed the multimedia package on my Ubuntu machine with "sudo apt-get install qtmultimedia5-dev". Have I to install other kind of package for the RPi? How can I check if I build the qtmultimedia for RPI?

                1 Reply Last reply
                0
                • jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  It doesn't matter whether you installed it on your host machine. If you cross-compile then you need it for your target device and not your host (Ubuntu).

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

                  1 Reply Last reply
                  0
                  • douglasD Offline
                    douglasD Offline
                    douglas
                    wrote on last edited by
                    #9

                    Ok, so you mean I have to install QtMultimedia package on my Raspberry Pi?
                    By the way, the compiling error is shown when I build in Qt on my host machine, hence before deploying the program on the RPi!

                    1 Reply Last reply
                    0
                    • jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      "By the way, the compiling error is shown when I build in Qt on my host machine, hence before deploying the program on the RPi!" - sure, if you cross-compile without QMultimedia for Pi. I guess you already have Qt cross-compiled for Pi, right? Now you need QMultimedia cross-compiled for Pi as well.

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

                      1 Reply Last reply
                      1
                      • douglasD Offline
                        douglasD Offline
                        douglas
                        wrote on last edited by douglas
                        #11

                        Ok, I see, thanks! Which are the steps I should do to cross-compile QtMultimedia for Pi? Could you show please? I'm a beginner:)

                        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