Results 1 to 7 of 7

Thread: Phonon doesn`t play sound on other computers :(

  1. #1
    Join Date
    Dec 2009
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Phonon doesn`t play sound on other computers :(

    hello
    at the beginning I want to sorry for my English I'm from Polish and use google translate
    When I use a phonon it works on my computer (playing music), but on other computers just run the application without playing music.
    I tried also to open Phonon expample, but only works on my computer, on the other could not even load the songs to a playlist
    What should I do to phonon play sound on other computers ?
    I'm using Qt 4.6
    I`m tested my application for Windows XP and Windows 7
    I throw phonon.dll to the folder with the *.exe
    Please help me

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Phonon doesn`t play sound on other computers :(

    Quote Originally Posted by pioter View Post
    I throw phonon.dll to the folder with the *.exe
    It has to be in a subdirectory. See "Deploying a application on Windows" in the docs. You also can use qt.conf.

  3. #3
    Join Date
    Dec 2009
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Phonon doesn`t play sound on other computers :(

    I searched doc and found this:
    http://doc.trolltech.com/4.6/phonon-...w.html#windows and http://pepper.troll.no/s60prerelease...t-windows.html

    If I have understood that I must download it and launch the script [C: \ Program Files \ Microsoft SDKs \ Windows \ v6.1 \ Bin \ setenv.cmd] before I build project and then my program will it work ?

    If I haven`t understood please write me step by step what I must do

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Phonon doesn`t play sound on other computers :(

    I guess you are using the sdk, so you don't need to build anything. Just deliver the *.dll with your application. See your last link under "Qt Plugins".

  5. #5
    Join Date
    Dec 2009
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Phonon doesn`t play sound on other computers :(

    I am using QtCreator 1.3.
    I delive:
    Qt Code:
    1. libgcc_s_dw2-1.dll
    2. mingwm10.dll
    3. phonon4.dll
    4. QtCore4.dll
    5. QtGui4.dll
    6. phonon_ds94.dll
    7. phononwidgetsd.dll
    To copy to clipboard, switch view to plain text mode 
    on my computer (windows xp) my application run and play music

    on other computer (windows xp and 7, without install Qt liblaries) my application run, but dones not play music

    What am I doing wrong ?

  6. #6
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Phonon doesn`t play sound on other computers :(

    the phonon libraries must be in a subdirectory called "plugins" and then in another which I don't now right now because I sit in front of my linux machine. Or use qt.conf to set the path where your program can find it.

  7. The following user says thank you to Lykurg for this useful post:

    pioter (23rd December 2009)

  8. #7
    Join Date
    Dec 2009
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Phonon doesn`t play sound on other computers :(

    Success !
    I add to the qt.conf this
    Qt Code:
    1. [Paths]
    2. Prefix = path to the application folder/
    To copy to clipboard, switch view to plain text mode 

    and add files and folders:
    Qt Code:
    1. plugins/designer/phononwidgets.dll
    2. plugins/phonon_backend/phonon_ds94.dll
    To copy to clipboard, switch view to plain text mode 

    and now my application play the music

    thank you very much for helping

    topic can be closed

Similar Threads

  1. Phonon Cannot Play Sound (without Error)
    By padawan in forum Qt Programming
    Replies: 5
    Last Post: 16th September 2009, 16:17
  2. S60, garden and play sound with native functions
    By Lykurg in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 29th May 2009, 20:52
  3. Phonon issues with DirectSound9
    By Zoltán in forum Qt Programming
    Replies: 2
    Last Post: 2nd February 2009, 03:48
  4. Phonon Media Object blocking on play()
    By traetox in forum Qt Programming
    Replies: 0
    Last Post: 21st May 2008, 06:43
  5. MP3 Sound / OGG Sound Play on GUI
    By patrik08 in forum Newbie
    Replies: 3
    Last Post: 1st September 2006, 20:01

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.