Results 1 to 1 of 1

Thread: [solved] Phonon::createPath problem on windows

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60

    Default [solved] Phonon::createPath problem on windows

    Hello. I wrote application to listen internet radio. All works fine on linux but i have problem with windows. On windows with sdk application it works but when i try to run my application on windows without QT sdk i have error.
    I have problem after this line
    Qt Code:
    1. path=Phono::createPath(mediaObject,audioOutput);
    To copy to clipboard, switch view to plain text mode 
    I check if this path is valid and i get false.

    Do you have idea where is problem?

    This is all code to phonon on:
    Qt Code:
    1. mediaObject = new Phonon::MediaObject(this);
    2. audioOutput = new Phonon::AudioOutput(Phonon::MusicCategory, this);
    3.  
    4. if(mediaObject==NULL||mediaObject->errorType()!=0||audioOutput==NULL)
    5. {
    6. if(mediaObject!=NULL)
    7. QMessageBox::critical(this,tr("Error!"),tr("Nie można uruchomić serwera dźwięku.\nByć może jest zjęty przez inny program.")+
    8. tr("\nAplikacja zostanie zamknięta."+mediaObject->errorType())
    9. ,QMessageBox::Ok);
    10. else
    11. QMessageBox::critical(this,tr("Błąd!"),tr("Nie można uruchomić serwera dźwięku.\nByć może jest zjęty przez inny program.")+
    12. tr("\nAplikacja zostanie zamknięta.")
    13. ,QMessageBox::Ok);
    14. exit(-1);
    15. }
    16.  
    17. path = Phonon::createPath(mediaObject, audioOutput);
    18.  
    19. ################
    20. I get error here
    21. ################
    22. while(!path.isValid())
    23. {
    24. if(QMessageBox::Ok==QMessageBox::critical(this,tr("Error!"),tr("Path is not vaild.\nAplikacja zostanie zamknięta."),QMessageBox::Ok|QMessageBox::Retry))
    25. exit(-1);
    26. else
    27. path.reconnect(mediaObject,audioOutput);
    28. }
    To copy to clipboard, switch view to plain text mode 

    I add this dll files to application folder:
    - libgcc_s_dw2-1.dll
    - mingwm10.dll
    - phonon.dll
    - phonon4.dll
    - QtCore4.dll
    - QtGui4.dll
    - QtNetwork.dll

    Edit:
    Always when i create topic I find solution. So the solution is to create phonon_backend folder and put there dll phono files That`s all. So sorry for create topic and for my english
    Last edited by skoczo; 11th December 2010 at 18:30.

Similar Threads

  1. Qt Windows XPembedded debug version problem[SOLVED]
    By ^NyAw^ in forum Qt Programming
    Replies: 3
    Last Post: 17th August 2010, 03:35
  2. Phonon deployment on Windows XP //solved
    By roxton in forum Installation and Deployment
    Replies: 3
    Last Post: 11th March 2010, 20:49
  3. Problem with Phonon on Windows with Mingw and Qt 4.6
    By *Baby* in forum Installation and Deployment
    Replies: 0
    Last Post: 5th February 2010, 16:38
  4. Problem with compiling qt on windows xp with phonon
    By junky in forum Installation and Deployment
    Replies: 3
    Last Post: 13th April 2009, 08:13
  5. Replies: 0
    Last Post: 14th December 2007, 01:33

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
  •  
Qt is a trademark of The Qt Company.