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.9k 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.
  • D Offline
    D Offline
    douglas
    wrote on 10 Feb 2016, 14:09 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 10 Feb 2016, 23:19 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
      • D Offline
        D Offline
        douglas
        wrote on 11 Feb 2016, 08:46 last edited by douglas 2 Nov 2016, 11:12
        #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
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 11 Feb 2016, 17:07 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
          • D Offline
            D Offline
            douglas
            wrote on 12 Feb 2016, 07:17 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
            • J Online
              J Online
              jsulm
              Lifetime Qt Champion
              wrote on 12 Feb 2016, 07:48 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
              • D Offline
                D Offline
                douglas
                wrote on 12 Feb 2016, 08:06 last edited by douglas 2 Dec 2016, 08:07
                #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
                • J Online
                  J Online
                  jsulm
                  Lifetime Qt Champion
                  wrote on 12 Feb 2016, 09:32 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
                  • D Offline
                    D Offline
                    douglas
                    wrote on 12 Feb 2016, 09:49 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
                    • J Online
                      J Online
                      jsulm
                      Lifetime Qt Champion
                      wrote on 12 Feb 2016, 10:40 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
                      • D Offline
                        D Offline
                        douglas
                        wrote on 12 Feb 2016, 10:50 last edited by douglas 2 Dec 2016, 10:53
                        #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

                        1/11

                        10 Feb 2016, 14:09

                        • Login

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