Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT - KDE raise device error using Phonon

QT - KDE raise device error using Phonon

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.7k 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.
  • K Offline
    K Offline
    Kobid
    wrote on last edited by
    #1

    My application need to play mp3. I'm not familiar with QT (learning from half year). I started from QT 5.0.2 which worked perfect except that it can't use oxygen on my KDE enviromnent. So due to this cosmetic problem (I will use this app too :P ) I tried to use QT 4.8. Theme is now ok but it uses Phonon library for audio output (QT5 is using something new). QT 4.8 also doesn't provide binaries for linux unlike QT 5.0.2, so I needed to compile it by my self (first time). After 3 hours of compiling I finally get my QT binaries. MediaPlayer examples run but when try to play music I get few errors about phonon backends, music doesn't play. I googled a lot, finally installed depended packages (like gstreamer, gstreamer-plugins-base etc) and recompiled QT with flags ./configure -glib -phonon -phonon-backend (I did make confclean if someone ask). After 3 hours of compiling (again) I finally see some phonon libs. Running MediaPlayer demo, at start I get KDE info in task manager:

    bq. The audio playback device doesn't work. Falling back to default

    and error in log output (but this time only one)

    bq. Music Player(29292)/phonon (KDE plugin): Can not create backend object from factory for "GStreamer" , "phonon_gstreamer" : "Could not find plugin 'GStreamer' for application 'Music Player'"

    But music is playing. Anyone can help me? What did I miss? I don't want to lose another 3 hours of compiling.

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

      Hi,

      Since you are using KDE, I suppose you are running linux. Why don't you install the Qt development libraries from your distribution ? They will already be compiled to use the Phonon installation of your system.

      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
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Edit: removed, post got doubled

        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
        • K Offline
          K Offline
          Kobid
          wrote on last edited by
          #4

          Yes, I finally did this and work fine now. But can I deploy my application with QT compiled for ubuntu? License agree with that? I want deploy my app for non-KDE linux too. I have sh script which export my own QT lib so user don't need install enything, but don't know if I can use QT libs from ubuntu.

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

            Most linux distribution I know includes Qt either optionally or installed by default. Depending on what distribution you are targeting, the best is to prepare i.e a deb package for Debian based distro, or rpm for Red Hat derivate etc... Making your package depend on Qt will make the package manager install them automagically.

            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