<?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[Linking problem with Vlc Qt library]]></title><description><![CDATA[<p dir="auto">I have download VLC-Qt library from <a href="https://github.com/vlc-qt/vlc-qt/releases/tag/0.9.0" target="_blank" rel="noopener noreferrer nofollow ugc">here</a> . I unzipped and copied all files to my project folder. This is my .pro file :</p>
<pre><code>
QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = untitled7
TEMPLATE = app
SOURCES += main.cpp\
        mainwindow.cpp\

HEADERS  += mainwindow.h\



FORMS    += mainwindow.ui
INCLUDEPATH += $$PWD\include
LIBS += -Llib -lvlc-qt

</code></pre>
<p dir="auto">My main.cpp file :</p>
<pre><code>#include "mainwindow.h"
#include &lt;QApplication&gt;
#include &lt;QStringList&gt;
#include &lt;vlc-qt/Instance.h&gt;
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
  QStringList list{"media.mp3"};
  VlcInstance h(list);
  return a.exec();
}

</code></pre>
<p dir="auto">When I try to run this code it shows following errors:</p>
<pre><code>main.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl VlcInstance::VlcInstance(class QStringList const &amp;,class QObject *)" (__imp_??0VlcInstance@@QEAA@AEBVQStringList@@PEAVQObject@@@Z) referenced in function main
main.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl VlcInstance::~VlcInstance(void)" (__imp_??1VlcInstance@@UEAA@XZ) referenced in function main
debug\untitled7.exe:-1: error: LNK1120: 2 unresolved externals
</code></pre>
<p dir="auto">I have tried rebuilding the project and ran Qmake but this this error keeps showing up. What am I doing wrong ?  How can I fix this ?</p>
]]></description><link>https://forum.qt.io/topic/67079/linking-problem-with-vlc-qt-library</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Jul 2026 11:27:57 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/67079.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 15 May 2016 14:02:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Linking problem with Vlc Qt library on Mon, 16 May 2016 18:11:13 GMT]]></title><description><![CDATA[<p dir="auto">Sounds like what I said earlier - the vlc dll was probably compiled with different Qt version than what you're using in your project. These need to match.</p>
]]></description><link>https://forum.qt.io/post/327684</link><guid isPermaLink="true">https://forum.qt.io/post/327684</guid><dc:creator><![CDATA[Chris Kawa]]></dc:creator><pubDate>Mon, 16 May 2016 18:11:13 GMT</pubDate></item><item><title><![CDATA[Reply to Linking problem with Vlc Qt library on Mon, 16 May 2016 05:06:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> After copying the .dll files, when I open the application, this error message is displayed:<br />
"the procedure entry point could not be located in dynamuc link library &lt;location&gt;\VLCQtCore.dll"</p>
]]></description><link>https://forum.qt.io/post/327569</link><guid isPermaLink="true">https://forum.qt.io/post/327569</guid><dc:creator><![CDATA[AyushExel204]]></dc:creator><pubDate>Mon, 16 May 2016 05:06:01 GMT</pubDate></item><item><title><![CDATA[Reply to Linking problem with Vlc Qt library on Sun, 15 May 2016 21:32:54 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Like <a class="plugin-mentions-user plugin-mentions-a" href="/user/chris-kawa">@<bdi>chris-kawa</bdi></a> suggested, copy the VLC .dlls where the application was built. Or go to the Run part of the Project panel in Qt Creator and modify the PATH environment variable by adding the path to where the VLC .dlls files are located.</p>
]]></description><link>https://forum.qt.io/post/327556</link><guid isPermaLink="true">https://forum.qt.io/post/327556</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 15 May 2016 21:32:54 GMT</pubDate></item><item><title><![CDATA[Reply to Linking problem with Vlc Qt library on Sun, 15 May 2016 17:16:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chris-kawa">@<bdi>Chris-Kawa</bdi></a>  How can I fix this issue? Is there any other way to play all video and audio formats using QMediaPlayer without using these VLC libraries ?</p>
]]></description><link>https://forum.qt.io/post/327514</link><guid isPermaLink="true">https://forum.qt.io/post/327514</guid><dc:creator><![CDATA[AyushExel204]]></dc:creator><pubDate>Sun, 15 May 2016 17:16:23 GMT</pubDate></item><item><title><![CDATA[Reply to Linking problem with Vlc Qt library on Sun, 15 May 2016 16:26:09 GMT]]></title><description><![CDATA[<p dir="auto">Could be any number of problems.<br />
Is it compiled with exactly the same compiler version (i.e. MSVC update version)? Is it compiled with the same version of Qt as the one you use? Have you copied the vlc dlls to your app's output dir?</p>
]]></description><link>https://forum.qt.io/post/327510</link><guid isPermaLink="true">https://forum.qt.io/post/327510</guid><dc:creator><![CDATA[Chris Kawa]]></dc:creator><pubDate>Sun, 15 May 2016 16:26:09 GMT</pubDate></item><item><title><![CDATA[Reply to Linking problem with Vlc Qt library on Sun, 15 May 2016 15:02:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chris-kawa">@<bdi>Chris-Kawa</bdi></a> Okay so the linking problem is finally fixed but when the program runs it crashes showing this message:<br />
"The program has unexpectedly finished."</p>
]]></description><link>https://forum.qt.io/post/327508</link><guid isPermaLink="true">https://forum.qt.io/post/327508</guid><dc:creator><![CDATA[AyushExel204]]></dc:creator><pubDate>Sun, 15 May 2016 15:02:31 GMT</pubDate></item><item><title><![CDATA[Reply to Linking problem with Vlc Qt library on Sun, 15 May 2016 14:40:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chris-kawa">@<bdi>Chris-Kawa</bdi></a> Okay so I have updated the .pro file and downloaded <a href="this">https://github.com/vlc-qt/vlc-qt/releases/tag/1.0.1t</a> version which is compatible with msvc2013 but this time I am getting this error :</p>
<pre><code>:-1: error: LNK1104: cannot open file 'vlc-qt.lib'
</code></pre>
]]></description><link>https://forum.qt.io/post/327505</link><guid isPermaLink="true">https://forum.qt.io/post/327505</guid><dc:creator><![CDATA[AyushExel204]]></dc:creator><pubDate>Sun, 15 May 2016 14:40:40 GMT</pubDate></item><item><title><![CDATA[Reply to Linking problem with Vlc Qt library on Sun, 15 May 2016 16:19:21 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">What am I doing wrong ?</p>
</blockquote>
<p dir="auto">You're not linking to the vlc library.</p>
<blockquote>
<p dir="auto">How can I fix this ?</p>
</blockquote>
<p dir="auto">Link to the library. If it's in <code>&lt;your project dir&gt;\vlc\lib\vlc-qt.lib</code> you can do this by adding this to the .pro file:</p>
<pre><code class="language-cpp">LIBS += -Lvlc\lib -lvlc-qt
</code></pre>
<p dir="auto">Adjust paths accordingly if you have vlc located elsewhere.</p>
<p dir="auto">Please note that if you downloaded the precompiled package (e.g. <code>Windows 64-bit MSVC2012 Qt5</code>) you will have to use the same compiler (VS2012) for your project. If you're using different compiler then you need to download the source package and build it yourself with your compiler.</p>
]]></description><link>https://forum.qt.io/post/327503</link><guid isPermaLink="true">https://forum.qt.io/post/327503</guid><dc:creator><![CDATA[Chris Kawa]]></dc:creator><pubDate>Sun, 15 May 2016 16:19:21 GMT</pubDate></item></channel></rss>