Results 1 to 2 of 2

Thread: [Qt 4.4] Phonon Module

  1. #1
    Join Date
    Jul 2008
    Posts
    6
    Qt products
    Qt4
    Platforms
    Windows

    Question [Qt 4.4] Phonon Module

    Hi
    I try to use a phonon module but I have a problem in a compilation:

    Qt Code:
    1. C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lphonon
    To copy to clipboard, switch view to plain text mode 

    my code:

    Qt Code:
    1. #include <phonon>
    To copy to clipboard, switch view to plain text mode 

    Qt Code:
    1. Phonon::MediaObject bip;
    2. bip.setCurrentSource(Phonon::MediaSource("alerte.mp3"));
    3. bip.play();
    To copy to clipboard, switch view to plain text mode 


    *.pro
    Qt Code:
    1. QT += phonon
    To copy to clipboard, switch view to plain text mode 

    thank you!!
    Last edited by scorpiondezer; 2nd July 2008 at 19:10.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: [Qt 4.4] Phonon Module

    How did you install Qt? Did you compile it yourself? Did you examine configure output to verify that phonon support was enabled?
    J-P Nurmi

Similar Threads

  1. Font differences and how to mitigate
    By PrimeCP in forum Qt Programming
    Replies: 7
    Last Post: 23rd July 2007, 22:55

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.