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. Problem to deploy Qt app with QtMultimedia on Linux
Forum Updated to NodeBB v4.3 + New Features

Problem to deploy Qt app with QtMultimedia on Linux

Scheduled Pinned Locked Moved Installation and Deployment
19 Posts 4 Posters 14.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.
  • H Offline
    H Offline
    helenebro
    wrote on last edited by
    #9

    I have already instaledl libgstreamer0.10*
    If I run my application with GST_DEBUG, I have the same message : "QtMultimedia is not installed".

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #10

      Hi,

      [quote author="helenebro" date="1406206379"] I have the same message : "QtMultimedia is not installed".[/quote]You also need to deploy Qt's QML libraries. Copy the folder <Qt>/qml/QtMultimedia/

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • H Offline
        H Offline
        helenebro
        wrote on last edited by
        #11

        Indeed, it works. Thank you.
        I have a new problem but it seems easy to solve :
        @libdeclarative_multimedia.so uses incompatible Qt library (5.3.1).@
        I build my app with "Desktop Qt 5.3 GCC 64 bits".
        On qml, I import QtMultimedia 5.0 (or 5.3)
        I have copy the file on Qt/5.3/gcc_64/qml

        Is there a different to 5.3 and 5.3.1 ?

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #12

          Qt 5.3.1 is the latest version of Qt 5.3.

          [quote]libdeclarative_multimedia.so uses incompatible Qt library (5.3.1)[/quote]Ubuntu contains older versions of Qt 5. Are you sure your app is linking to the correct versions of all the libraries? Use ldd to check.

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0
          • H Offline
            H Offline
            helenebro
            wrote on last edited by
            #13

            It seems that I build my app with Qt 5.3 and I have had libraries on file Qt/5.3/gcc_64. The lib uses for QtMultimedia are 5.3.1 extensions.

            I have succeed to run my app by using Qt 5.2.1 but I have a new problem with QtMultimedia.
            When I run my app, I have the error

            bq. defaultServiceProvider::requestService():no service found for - "org.qt-project.qt.mediaplayer"

            Files libQt5Multimedia.so.5, libQt5MultimediaQuick_p.so.5 and libQt5MultimediaWidgets.so.5 are on libs folder and I had copied QtMultimedia folder.

            1 Reply Last reply
            0
            • JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #14

              Does it work when you run your app in Qt Creator?

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              1 Reply Last reply
              0
              • H Offline
                H Offline
                helenebro
                wrote on last edited by
                #15

                Yes, I have no problem on Qt Creator. I have also update the version of my development PC to Ubuntu 14.4 to check the problem doesn't come to this version.

                1 Reply Last reply
                0
                • JKSHJ Offline
                  JKSHJ Offline
                  JKSH
                  Moderators
                  wrote on last edited by
                  #16

                  That's good! :) Then you just need to deploy correctly. You are probably missing a multimedia plugin (check your plugins folder)

                  See "this page":http://qt-project.org/wiki/Deploy_an_Application_on_Windows for the correct folder structure (it's written for Windows, but it applies to Ubuntu too).

                  This blog has very good details on the deployment process, including Linux-specific descriptions:

                  • http://www.tripleboot.org/?p=138
                  • http://www.tripleboot.org/?p=536

                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                  1 Reply Last reply
                  0
                  • H Offline
                    H Offline
                    helenebro
                    wrote on last edited by
                    #17

                    Thank you for the links. I use the method to clean my environment on my development comptuter (change Qt folder to QtHidden), and my app run correctly on this computer. I think it miss a library what is not on is folder.
                    I have the tree :
                    @Deployment/
                    |____myApp
                    |____myApp.sh
                    |____libs/
                    | |____libQt5Multimedia.so.5
                    | |____libQt5MultimediaQuick_p.so.5
                    | |libQt5MultimediaWidgets.so.5
                    | |
                    ...and other files given by ldd...
                    |____platforms/
                    | |___libqeglfs.so
                    | |___libqlinuxfb.so
                    | |___libqminimalegl.so
                    | |___libqminimal.so
                    | |___libqoffscreen.so
                    | |___libqxcb.so
                    |____QtMultimedia/
                    | |___libdeclarative_multimedia.so
                    | |___plugins.qmltypes
                    | |___qmldir
                    | |___Video.qml
                    |____QtQuick.2/
                    |___libqtquick2plugin.so
                    |___plugins.qmltypes
                    |___qmldir@

                    Before to start app, I set LD_LIBRARY_PATH (export LD_LIBRARY_PATH=libs).
                    Is it normal that ldd don't name multimedia files ?

                    I have also test the method "Quick and dirty" of the first link (I have copy all files on Qt/Qt5.2/gcc_64/plugins, Qt/Qt5.2/gcc_64/qml and Qt/Qt5.2/gcc_64/lib) whitout succeed

                    Further, I have checked gstreamer is correctly install on computer for the deployment. I have test some command gst-launch-1.0 wihout problem

                    1 Reply Last reply
                    0
                    • H Offline
                      H Offline
                      helenebro
                      wrote on last edited by
                      #18

                      I have found a solution. I have directly install liqt5multumedia5-plugins on the target computer. i think it isn't the cleanest solution but it works.
                      Thank you for your help

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        masum
                        wrote on last edited by
                        #19

                        I am also fetching same problem at windows environment (windows 8.1 64bit). When ever try to deploy app into android emulator then it show following errors.

                        qrc:///demos/maroon/content/SoundEffect.qml:45 ((null)): qrc:///demos/maroon/content/SoundEffect.qml:45: Error: Qt.createQmlObject(): failed to create object:
                        qrc:///demos/maroon/content/inline:1:1: module "QtMultimedia" is not installed

                        Kind Regards

                        Md. Rashidul Hasan
                        Software Architect
                        OnnoRokom Software Ltd.
                        Cell: 8801836885252

                        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