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. Trouble deploying Phonon media player on Windows
Forum Updated to NodeBB v4.3 + New Features

Trouble deploying Phonon media player on Windows

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

    I have written an audio media player using phonon. I have compiled it for both Windows (mingw) and Linux. It works great. The Linux version has been installed on several machines and works flawlessly. The Windows version works perfectly on my development machine, but I am having problems installing it on other Windows computers. I am installing the following files:
    Application folder:
    application executable, necessary PNG files, help file, etc.

    Windows\System32 folder:
    mingwm10.dll
    QtXml4.dll
    QtCore4.dll
    QtGui4.dll
    QtNetwork4.dll
    phonon4.dll
    msvcrt.dll
    libgcc_s_dw2-1.dll
    (all of these might not be required, but I will have other Qt applications as well)

    The application launches fine, and I can add files to the playlist. But when I try to play a file, it will not play. I believe it never enters the playing state in phonon. This problem happens on other machines where I have tried to install my application. I can install it on my development machine and it works perfectly.

    I have tried copying QtOpenGL4.dll into System32, as well as copying phonon_ds94.dll into System32, or into a folder phonon_backend in the application folder. This did not help.

    I'm sure I must be missing some DLL(s), but I can't figure out which one(s). I've also tried the sample Phonon Music Player that comes with QtCreator. Same results, it plays fine on my development machine, but not on another Windows machine.

    Help! What file(s) am I missing, or how can I find out?

    1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      Google for dependencywalker and install.

      This tool will tell you what dependencies you need on windows. Maybe one is missing?

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      0
      • G Offline
        G Offline
        giesbert
        wrote on last edited by
        #3

        dependency walker will not show, if later loaded dlls are missing. And if he can start the app and add files to his list, dependency walker will find nothing, as everything that is early bound is found.

        Nokia Certified Qt Specialist.
        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dbzhang800
          wrote on last edited by
          #4

          [quote author="Gerolf" date="1309503568"]dependency walker will not show, if later loaded dlls are missing. And if he can start the app and add files to his list, dependency walker will find nothing, as everything that is early bound is found.[/quote]

          yes, And "Process Explorer":http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx can be used in this case.

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jim_kaiser
            wrote on last edited by
            #5

            Well, I believe phonon uses certain system libraries to do the job. In linux, that is the GStreamer backend which depends on the GStreamer plugins installed on your machine. Something like DirectShow (DS9) is the backend on Windows. Maybe you need to install that or related plugins.

            Also, this is the model because, mp3 is a patented technology and Qt cannot by itself provide the mp3 decoding and encoding. It is left to the system backend. You could also try the VLC backend (I'm not sure how stable it is though..).

            1 Reply Last reply
            0
            • J Offline
              J Offline
              jim_kaiser
              wrote on last edited by
              #6

              DirectShow is part of DirectX I guess.. so make sure DirectX9 is installed on the target machine.

              1 Reply Last reply
              0
              • M Offline
                M Offline
                microaide
                wrote on last edited by
                #7

                Thank you all for your suggestions. I solved my problem. I had already used dependency walker and installed all DLLs that it showed were required, and no DLLs were coming up missing when the application was launched. Process explorer was very helpful. I compared the loaded DLLs on a working and non-working machine, and found what I had done wrong. phonon_ds94.dll must be installed in a folder "phonon_backend" located under the application programs folder. I had put in in a folder called "phononbackend" by mistake. As soon as I corrected the name of that folder, my player started working. Process explorer showed that phonon_ds94.dll was not loading on the non-working machine.

                On the development machine it was loading phonon_ds94.dll from C:\Qt\2010.05\qt\plugins\phonon_backend.

                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