<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Error LNK2019: unresolved external symbol with Phonon]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I tried integrating phonon music player with an existing application which compiles well before the integration. I'm using VS 2010 and Qt 4.8.2 VS-addin. The error below occurred after integrating phonon music player and I have searched online but can't find any solution to this problem.<br />
@12&gt;MainWindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Phonon::Path::~Path(void)" (_<em>imp</em>??1Path@Phonon@@QAE@XZ) referenced in function "public: __thiscall MainWindow::MainWindow(class QString const &amp;,class QWidget *,class QFlags&lt;enum Qt::WindowType&gt;)" (??0MainWindow@@QAE@ABVQString@@PAVQWidget@@V?$QFlags@W4WindowType@Qt@@@@@Z)<br />
12&gt;MainWindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class Phonon::Path __cdecl Phonon::createPath(class Phonon::MediaNode *,class Phonon::MediaNode *)" (_<em>imp</em>?createPath@Phonon@@YA?AVPath@1@PAVMediaNode@1@0@Z) referenced in function "public: __thiscall MainWindow::MainWindow(class QString const &amp;,class QWidget *,class QFlags&lt;enum Qt::WindowType&gt;)" (??0MainWindow@@QAE@ABVQString@@PAVQWidget@@V?$QFlags@W4WindowType@Qt@@@@@Z)<br />
12&gt;MainWindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Phonon::MediaObject::setTickInterval(int)" (_<em>imp</em>?setTickInterval@MediaObject@Phonon@@QAEXH@Z) referenced in function "public: __thiscall MainWindow::MainWindow(class QString const &amp;,class QWidget *,class QFlags&lt;enum Qt::WindowType&gt;)" (??0MainWindow@@QAE@ABVQString@@PAVQWidget@@V?$QFlags@W4WindowType@Qt@@@@@Z)<br />
12&gt;MainWindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Phonon::MediaObject::MediaObject(class QObject *)" (_<em>imp</em>??0MediaObject@Phonon@@QAE@PAVQObject@@@Z) referenced in function "public: __thiscall MainWindow::MainWindow(class QString const &amp;,class QWidget *,class QFlags&lt;enum Qt::WindowType&gt;)" (??0MainWindow@@QAE@ABVQString@@PAVQWidget@@V?$QFlags@W4WindowType@Qt@@@@@Z)</p>
<p dir="auto">....<br />
12&gt;F:\Projects\build_0.02_audio\bin\Debug\Rsh.exe : fatal error LNK1120: 37 unresolved externals<br />
@</p>
<p dir="auto">I came across the link below which mentioned "Qt Project Settings" but the problem with this is, my "Qt Project Settings" is not selectable in current project. Its only selectable if there is .pro file but my project don't have a .pro file<br />
"Your text to link here...":<a href="http://qt-project.org/forums/viewthread/14771" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/forums/viewthread/14771</a></p>
<p dir="auto">Thanks in advance for your help.</p>
]]></description><link>https://forum.qt.io/topic/20264/error-lnk2019-unresolved-external-symbol-with-phonon</link><generator>RSS for Node</generator><lastBuildDate>Thu, 11 Jun 2026 19:50:02 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/20264.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 30 Sep 2012 20:52:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Error LNK2019: unresolved external symbol with Phonon on Mon, 01 Oct 2012 12:02:21 GMT]]></title><description><![CDATA[<p dir="auto">During build from CMake VS should generate makefile that is used later on during compilation. Do you have any makefile next to CMake or in build directory? Is in this makefile information about phonon?</p>
]]></description><link>https://forum.qt.io/post/153418</link><guid isPermaLink="true">https://forum.qt.io/post/153418</guid><dc:creator><![CDATA[guziemic]]></dc:creator><pubDate>Mon, 01 Oct 2012 12:02:21 GMT</pubDate></item><item><title><![CDATA[Reply to Error LNK2019: unresolved external symbol with Phonon on Mon, 01 Oct 2012 09:35:33 GMT]]></title><description><![CDATA[<p dir="auto">I'm using windows 7 32bit and phonon dll is located at C:\Qt\4.8.2\lib. If the cmake setting is suffient, how do I solve this problem then?</p>
]]></description><link>https://forum.qt.io/post/153388</link><guid isPermaLink="true">https://forum.qt.io/post/153388</guid><dc:creator><![CDATA[morpe]]></dc:creator><pubDate>Mon, 01 Oct 2012 09:35:33 GMT</pubDate></item><item><title><![CDATA[Reply to Error LNK2019: unresolved external symbol with Phonon on Mon, 01 Oct 2012 08:44:58 GMT]]></title><description><![CDATA[<p dir="auto">Actually, I am using Linux and Eclipse with Qt plugin. So, I can suggest you where problem can be located. Anyway, if you have phonon there it is OK.</p>
<p dir="auto">@<br />
#specify place -L&lt;place&gt; and name of library -l&lt;name&gt; to link our code against<br />
LIBS = -L/usr/lib -lphonon<br />
@</p>
<p dir="auto">and there is also specification of include path, but this you have correct as the compilation finish with success.<br />
@<br />
INCPATH = -I/usr/include/phonon<br />
@</p>
<p dir="auto">In your case you should look for libraries in place where you have install Qt. Do you have there phonon DLL?</p>
]]></description><link>https://forum.qt.io/post/153376</link><guid isPermaLink="true">https://forum.qt.io/post/153376</guid><dc:creator><![CDATA[guziemic]]></dc:creator><pubDate>Mon, 01 Oct 2012 08:44:58 GMT</pubDate></item><item><title><![CDATA[Reply to Error LNK2019: unresolved external symbol with Phonon on Mon, 01 Oct 2012 08:07:04 GMT]]></title><description><![CDATA[<p dir="auto">Hi guziemic,<br />
Thanks for your reply. I'm new to Qt and the project have Cmakefile and it does contain a line with phonon as follow:</p>
<p dir="auto">@set( QT_LIBS QtCore QtGui QtNetwork QtSvg QtWebKit QtXml QtXmlPatterns phonon )@</p>
<p dir="auto">Please, can you elaborate on what you mean by LIBDIRS and LIBS.</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.qt.io/post/153371</link><guid isPermaLink="true">https://forum.qt.io/post/153371</guid><dc:creator><![CDATA[morpe]]></dc:creator><pubDate>Mon, 01 Oct 2012 08:07:04 GMT</pubDate></item><item><title><![CDATA[Reply to Error LNK2019: unresolved external symbol with Phonon on Mon, 01 Oct 2012 07:09:25 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Then if you do not use .pro file, you should have Makefile which is used during build process. Probably in LIBDIRS and LIBS you are missing path and library of Phonon.</p>
]]></description><link>https://forum.qt.io/post/153351</link><guid isPermaLink="true">https://forum.qt.io/post/153351</guid><dc:creator><![CDATA[guziemic]]></dc:creator><pubDate>Mon, 01 Oct 2012 07:09:25 GMT</pubDate></item></channel></rss>