<?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[C++ Qt 6.7.2 VLC, VLC-Qt]]></title><description><![CDATA[<h4>Hi,</h4>
<h5>when I try build app with VLC-Qt I'm getting this errors:</h5>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/6f63adfe-467c-4b73-9472-3afb24fd3574.png" alt="04c22c54-04e3-4316-a5df-addcc0d1187f-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">main.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) class QList&lt;class QString&gt; __cdecl VlcCommon::args(void)" (_<em>imp</em>?args@VlcCommon@@YA?AV?$QList@VQString@@@@XZ) referenced in function main</p>
<p dir="auto">main.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl VlcInstance::VlcInstance(class QList&lt;class QString&gt; const &amp;,class QObject *)" (_<em>imp</em>??0VlcInstance@@QEAA@AEBV?$QList@VQString@@@@PEAVQObject@@@Z) referenced in function main</p>
<h5>This is my code:</h5>
<pre><code>#include &lt;QApplication&gt;
#include &lt;QMainWindow&gt;
#include &lt;VLCQtCore/Common.h&gt;
#include &lt;VLCQtCore/Instance.h&gt;
#include &lt;VLCQtCore/Media.h&gt;
#include &lt;VLCQtCore/MediaPlayer.h&gt;
#include &lt;VLCQtWidgets/WidgetVideo.h&gt;

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    QMainWindow mainWindow;

    VlcWidgetVideo *videoWidget = new VlcWidgetVideo(&amp;mainWindow);

    QList&lt;QString&gt; args = VlcCommon::args();
    VlcInstance *instance = new VlcInstance(args, &amp;mainWindow);
    VlcMediaPlayer *player = new VlcMediaPlayer(instance);
    player-&gt;setVideoWidget(videoWidget);

    mainWindow.setCentralWidget(videoWidget);
    mainWindow.resize(800, 600);

    VlcMedia *media = new VlcMedia("path/to/your/video/file.mp4", true, instance);
    player-&gt;open(media);
    player-&gt;play();

    mainWindow.show();

    return app.exec();
}

</code></pre>
<p dir="auto">But when I try with commented</p>
<pre><code>QList&lt;QString&gt; args ;//= VlcCommon::args();
VlcInstance *instance;// = new VlcInstance(args, &amp;mainWindow);
</code></pre>
<h5>It compiles and I getting this:<img src="https://ddgobkiprc33d.cloudfront.net/58319925-fe5a-4afd-be38-c114bf6faf2a.png" alt="bb69a827-c540-4429-b740-befbb796b67c-image.png" class=" img-fluid img-markdown" /></h5>
<p dir="auto">So I don't understand problems with my .libs or something else.<br />
I downloaded VLC-Qt from <a href="https://vlc-qt.tano.si/" target="_blank" rel="noopener noreferrer nofollow ugc">https://vlc-qt.tano.si/</a>. (Windows 64-bit (MSVC 2013))<br />
<strong>Compiler I used for building MSVC 2019 64 bit</strong></p>
<h5>my .pro:</h5>
<pre><code>QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17
TARGET = VlcQtExample
TEMPLATE = app

SOURCES += \
    main.cpp \
    mainwindow.cpp

HEADERS += \
    mainwindow.h

FORMS += \
    mainwindow.ui

INCLUDEPATH += D:/vlc-qt/include

LIBS += -LD:/vlc-qt/lib
LIBS += -lVLCQtCore -lVLCQtWidgets -lVLCQtCored -lVLCQtWidgetsd

qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

</code></pre>
<p dir="auto"><strong>Thanks for any help</strong></p>
]]></description><link>https://forum.qt.io/topic/157710/c-qt-6-7-2-vlc-vlc-qt</link><generator>RSS for Node</generator><lastBuildDate>Tue, 12 May 2026 11:37:04 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/157710.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 13 Jul 2024 11:28:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to C++ Qt 6.7.2 VLC, VLC-Qt on Sat, 13 Jul 2024 12:43:44 GMT]]></title><description><![CDATA[<p dir="auto">Good luck with the project!</p>
]]></description><link>https://forum.qt.io/post/804719</link><guid isPermaLink="true">https://forum.qt.io/post/804719</guid><dc:creator><![CDATA[artwaw]]></dc:creator><pubDate>Sat, 13 Jul 2024 12:43:44 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Qt 6.7.2 VLC, VLC-Qt on Sat, 13 Jul 2024 12:39:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/artwaw">@<bdi>artwaw</bdi></a> ok, thank you, have a nice day!</p>
]]></description><link>https://forum.qt.io/post/804718</link><guid isPermaLink="true">https://forum.qt.io/post/804718</guid><dc:creator><![CDATA[Vitallll]]></dc:creator><pubDate>Sat, 13 Jul 2024 12:39:56 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Qt 6.7.2 VLC, VLC-Qt on Sat, 13 Jul 2024 12:37:03 GMT]]></title><description><![CDATA[<p dir="auto">As stated on <a href="https://vlc-qt.tano.si" target="_blank" rel="noopener noreferrer nofollow ugc">download page</a>: <code>All SDKs are based on Qt 5.6.1 and VLC 2.2.4.</code></p>
<p dir="auto">So you can:</p>
<ul>
<li>revert to qt 5;</li>
<li>contact <s>the VLC</s> the creator and ask about their plans to port to Qt6;</li>
<li>take a source code of QtVLC and try to port it yourself.</li>
</ul>
<p dir="auto">Me myself I'd rather try to use <a href="https://code.videolan.org/videolan/libvlcpp" target="_blank" rel="noopener noreferrer nofollow ugc">libvlcpp</a> and try to mix it with Qt Multimedia myself. QtVLC is really dated, considering the current Qt5 version.</p>
]]></description><link>https://forum.qt.io/post/804717</link><guid isPermaLink="true">https://forum.qt.io/post/804717</guid><dc:creator><![CDATA[artwaw]]></dc:creator><pubDate>Sat, 13 Jul 2024 12:37:03 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Qt 6.7.2 VLC, VLC-Qt on Sat, 13 Jul 2024 12:15:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/christian-ehrlicher">@<bdi>Christian-Ehrlicher</bdi></a> is it real use Vlc and Qt 6?</p>
]]></description><link>https://forum.qt.io/post/804714</link><guid isPermaLink="true">https://forum.qt.io/post/804714</guid><dc:creator><![CDATA[Vitallll]]></dc:creator><pubDate>Sat, 13 Jul 2024 12:15:32 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Qt 6.7.2 VLC, VLC-Qt on Sat, 13 Jul 2024 12:06:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/artwaw">@<bdi>artwaw</bdi></a> I missed this 🙂<br />
Yes, you can not mix Qt5 and Qt6</p>
]]></description><link>https://forum.qt.io/post/804713</link><guid isPermaLink="true">https://forum.qt.io/post/804713</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Sat, 13 Jul 2024 12:06:09 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Qt 6.7.2 VLC, VLC-Qt on Sat, 13 Jul 2024 12:05:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/artwaw">@<bdi>artwaw</bdi></a>, I don't understand why I get these 2 errors with undefined refs.</p>
]]></description><link>https://forum.qt.io/post/804712</link><guid isPermaLink="true">https://forum.qt.io/post/804712</guid><dc:creator><![CDATA[Vitallll]]></dc:creator><pubDate>Sat, 13 Jul 2024 12:05:29 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Qt 6.7.2 VLC, VLC-Qt on Sat, 13 Jul 2024 11:54:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/christian-ehrlicher">@<bdi>Christian-Ehrlicher</bdi></a>, thanks</p>
]]></description><link>https://forum.qt.io/post/804711</link><guid isPermaLink="true">https://forum.qt.io/post/804711</guid><dc:creator><![CDATA[Vitallll]]></dc:creator><pubDate>Sat, 13 Jul 2024 11:54:28 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Qt 6.7.2 VLC, VLC-Qt on Sat, 13 Jul 2024 11:54:07 GMT]]></title><description><![CDATA[<p dir="auto">On top of that I think VLC asks for Qt5 while you're using Qt6?</p>
]]></description><link>https://forum.qt.io/post/804710</link><guid isPermaLink="true">https://forum.qt.io/post/804710</guid><dc:creator><![CDATA[artwaw]]></dc:creator><pubDate>Sat, 13 Jul 2024 11:54:07 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Qt 6.7.2 VLC, VLC-Qt on Sat, 13 Jul 2024 11:52:58 GMT]]></title><description><![CDATA[<p dir="auto">You can not mix msvc2019 and 2013 iirc.</p>
]]></description><link>https://forum.qt.io/post/804709</link><guid isPermaLink="true">https://forum.qt.io/post/804709</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Sat, 13 Jul 2024 11:52:58 GMT</pubDate></item></channel></rss>