Results 1 to 3 of 3

Thread: Linker errors Phonon lib

  1. #1
    Join Date
    Mar 2012
    Posts
    12
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Linker errors Phonon lib

    Hi there,

    I'm trying to use the function Phonon::createPlayer() to play some .wav files in my application.
    I've built Qt 4.7.4 in static mode with the phonon libs using the MS Visual Studio 2005 with: configure -debug-and-release -phonon -static and added to the necessary includes and libs to the project.

    I have this output:

    1>playbeep.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Phonon::MediaSource::~MediaSource(void)" (__imp_??1MediaSource@Phonon@@QAE@XZ)
    1>playbeep.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Phonon::MediaSource::MediaSource(class QString const &)" (__imp_??0MediaSource@Phonon@@QAE@ABVQString@@@Z)
    1>playbeep.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Phonon::MediaObject:lay(void)" (__imp_?play@MediaObject@Phonon@@QAEXXZ)
    1>playbeep.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class Phonon::MediaObject * __cdecl Phonon::createPlayer(enum Phonon::Category,class Phonon::MediaSource const &)" (__imp_?createPlayer@Phonon@@YAPAVMediaObject@1@W4 Category@1@ABVMediaSource@1@@Z)

    Can you help me solving this problem? I tried everything...

    Thanks in advance.
    Tiago Campos

  2. #2
    Join Date
    Feb 2012
    Posts
    16
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Linker errors Phonon lib

    got the solution??

  3. #3
    Join Date
    Mar 2012
    Posts
    12
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Linker errors Phonon lib

    Sorry for taking all this time to answer.
    No, still no solution.

    Seems that Phonon libs have problems with static compilation.

Similar Threads

  1. Linker errors with Q_OBJECT
    By dustin034 in forum Qt Programming
    Replies: 2
    Last Post: 13th May 2010, 19:14
  2. linker errors from MinGW 4.4.0 for Qt 4.6.2
    By planetLars in forum Qt Tools
    Replies: 1
    Last Post: 15th April 2010, 20:30
  3. please help with linker errors
    By jimboqt in forum Qt Programming
    Replies: 1
    Last Post: 5th July 2007, 09:49
  4. Linker errors!!
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 25th April 2006, 08:14
  5. Linker Errors
    By MarkoSan in forum Qt Programming
    Replies: 5
    Last Post: 7th March 2006, 18:30

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.