Results 1 to 6 of 6

Thread: Cannot add Multimedia Widgets to Qt Creator C++ project

  1. #1
    Join Date
    Feb 2016
    Location
    S. Stefano di Sessanio
    Posts
    11
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Cannot add Multimedia Widgets to Qt Creator C++ project

    Hi,
    I am trying to compile and run the official Media Player Example in Qt:
    http://doc.qt.io/qt-5/qtmultimediawi...r-example.html
    for a Raspberry Pi running Raspbian Jessie. I still have no success: when I build the project, the following error appears:
    Qt Code:
    1. :-1: error: Unknown module(s) in QT: multimedia multimediawidgets
    To copy to clipboard, switch view to plain text mode 
    I installed "sudo apt-get install qtmultimedia5-dev" but without any success. Is it the right module to install?
    My Qt should be up to date, and I don't know where the problem can be. Could anyone help please?
    Thanks!
    Last edited by Cazzaniga; 10th February 2016 at 12:27.

  2. #2
    Join Date
    Feb 2016
    Location
    S. Stefano di Sessanio
    Posts
    11
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Cannot add Multimedia Widgets to Qt Creator C++ project

    Please, could anyone give some hints? The multimedia package seems to be installed well, but in Qt the folowing error remains:
    Qt Code:
    1. error: Unknown module(s) in QT: multimedia
    To copy to clipboard, switch view to plain text mode 
    Maybe the package has to be manually installed into Qt in some way?
    Thanks!

  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Cannot add Multimedia Widgets to Qt Creator C++ project

    Have you tried on a desktop just to see if it might be Raspberry Pi related?

    Cheers,
    _

  4. #4
    Join Date
    Feb 2016
    Location
    S. Stefano di Sessanio
    Posts
    11
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Cannot add Multimedia Widgets to Qt Creator C++ project

    Thanks anda_skoa,
    I think it's not a problem related to the Raspberry Pi, because the build fails in Qt at the desktop side!
    EDIT:
    perhaps you mean that I should try to not cross-platform for RPi and try to compile for desktop?

  5. #5
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Cannot add Multimedia Widgets to Qt Creator C++ project

    Yes, try a desktop build.

    Also, if you are cross-compiling, make sure the cross compiled Qt has these modules built.

    Cheers,
    _

  6. #6
    Join Date
    Feb 2016
    Location
    S. Stefano di Sessanio
    Posts
    11
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Cannot add Multimedia Widgets to Qt Creator C++ project

    Also, if you are cross-compiling, make sure the cross compiled Qt has these modules built.
    How can I check this? Is it an option in the Qt project Properties?

Similar Threads

  1. qt creator with cmake project
    By cic in forum Qt Tools
    Replies: 1
    Last Post: 1st July 2014, 10:25
  2. Will Qt Multimedia Widgets be supported in the future for Android?
    By Awareness in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 23rd December 2013, 03:23
  3. Duplicate a Qt Creator project
    By Coises in forum Newbie
    Replies: 5
    Last Post: 20th December 2009, 20:38
  4. Replies: 0
    Last Post: 29th October 2009, 20:20

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.