<?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[Building Qt 5.7 with MingW64]]></title><description><![CDATA[<p dir="auto">I am building the Qt 5.7 with MingW64, I have the following errors:</p>
<pre><code>ar -M &lt; object_script.libQt5PlatformSupport.Release
mingw32-make[4]: Leaving directory 'C:/Qt/Qt57_build/qtbase/src/platformsupport'
ar -M &lt; object_script.libQt5PlatformSupportd.Debug
mingw32-make[4]: Leaving directory 'C:/Qt/Qt57_build/qtbase/src/platformsupport'
mingw32-make[3]: Leaving directory 'C:/Qt/Qt57_build/qtbase/src/platformsupport'
mingw32-make[2]: Leaving directory 'C:/Qt/Qt57_build/qtbase/src'
Makefile:41: recipe for target 'sub-src-make_first' failed
mingw32-make[1]: *** [sub-src-make_first] Error 2
mingw32-make[1]: Leaving directory 'C:/Qt/Qt57_build/qtbase'
Makefile:73: recipe for target 'module-qtbase-make_first' failed
mingw32-make: *** [module-qtbase-make_first] Error 2
</code></pre>
<p dir="auto">I know that it is not full description of errors, but where do I find their full description? I skimmed through folders and did not find any log files or something like that. Any ideas?</p>
]]></description><link>https://forum.qt.io/topic/69808/building-qt-5-7-with-mingw64</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Apr 2026 04:40:10 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/69808.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 31 Jul 2016 15:20:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Building Qt 5.7 with MingW64 on Tue, 02 Aug 2016 21:57:57 GMT]]></title><description><![CDATA[<p dir="auto">Alright, I also added "LIBS += opengl32.lib" to the <a href="http://boxes.pro" target="_blank" rel="noopener noreferrer nofollow ugc">boxes.pro</a> file, now it compiles and runs..so, I guess it worked.</p>
<p dir="auto">In any case, building mingw64 with Qt is just straight out disaster, unless one is going to spend significant time on resolving things or be part of dev team...</p>
<p dir="auto">The main download page for Qt has all kinds of pre-built versions, MSVC64 and MINGW32...but why not MINGW64..</p>
]]></description><link>https://forum.qt.io/post/340499</link><guid isPermaLink="true">https://forum.qt.io/post/340499</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 02 Aug 2016 21:57:57 GMT</pubDate></item><item><title><![CDATA[Reply to Building Qt 5.7 with MingW64 on Tue, 02 Aug 2016 21:47:02 GMT]]></title><description><![CDATA[<p dir="auto">OK nevermind I had to set attribute this way:</p>
<pre><code>    QApplication app(argc, argv);
    app.setAttribute(Qt::AA_UseDesktopOpenGL, true);
</code></pre>
<p dir="auto">However; now I get tons of LNK2019 errors, like:</p>
<pre><code>glbuffers.obj:-1: error: LNK2019: unresolved external symbol __imp_glDisable referenced in function "public: virtual void __cdecl GLTexture2D::unbind(void)" (?unbind@GLTexture2D@@UEAAXXZ)

File not found: glbuffers.obj
</code></pre>
<p dir="auto">Am I supposed to do something more than just setting the OpenGL related attribute?</p>
]]></description><link>https://forum.qt.io/post/340493</link><guid isPermaLink="true">https://forum.qt.io/post/340493</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 02 Aug 2016 21:47:02 GMT</pubDate></item><item><title><![CDATA[Reply to Building Qt 5.7 with MingW64 on Tue, 02 Aug 2016 21:26:17 GMT]]></title><description><![CDATA[<p dir="auto">But isn't it not dependent on me? In other words, should I just start searching for the file name "QByteArray" and just correcting each source file to point to it? That rather sounds not good to me though...</p>
<p dir="auto">And another question, now regarding those attributes, I opened that OpenGL Boxes example now in the Installed QtCreator, and put this line right before instantiating QApplication:</p>
<pre><code>setAttribute(Qt::AA_UseDesktopOpenGL, true);
</code></pre>
<p dir="auto">And got the rrror:<br />
<strong>..\boxes\main.cpp(114): error C3861: 'setAttribute': identifier not found</strong></p>
<p dir="auto">What is the proper way of setting that attribute?</p>
]]></description><link>https://forum.qt.io/post/340489</link><guid isPermaLink="true">https://forum.qt.io/post/340489</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 02 Aug 2016 21:26:17 GMT</pubDate></item><item><title><![CDATA[Reply to Building Qt 5.7 with MingW64 on Tue, 02 Aug 2016 21:12:53 GMT]]></title><description><![CDATA[<p dir="auto">I'd check whether the forwarded headers were created successfully.</p>
]]></description><link>https://forum.qt.io/post/340486</link><guid isPermaLink="true">https://forum.qt.io/post/340486</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 02 Aug 2016 21:12:53 GMT</pubDate></item><item><title><![CDATA[Reply to Building Qt 5.7 with MingW64 on Tue, 02 Aug 2016 21:05:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> Also, meanwhile I am trying now to build it with MSYS2, and here is an error I have encountered:</p>
<pre><code>C:/Qt/qt5/qtbase/src/corelib/tools/qsimd.cpp:43:22: fatal error: QByteArray: No such file or directory
 #include &lt;QByteArray&gt;
                      ^
compilation terminated.

</code></pre>
<p dir="auto">Any ideas what is going on?</p>
]]></description><link>https://forum.qt.io/post/340482</link><guid isPermaLink="true">https://forum.qt.io/post/340482</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 02 Aug 2016 21:05:19 GMT</pubDate></item><item><title><![CDATA[Reply to Building Qt 5.7 with MingW64 on Tue, 02 Aug 2016 21:01:54 GMT]]></title><description><![CDATA[<p dir="auto">No you can't but that's nothing Qt specific. You can't mix and match compilers on Windows. Even the different version of MSVC are not compatible one with the other.</p>
]]></description><link>https://forum.qt.io/post/340481</link><guid isPermaLink="true">https://forum.qt.io/post/340481</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 02 Aug 2016 21:01:54 GMT</pubDate></item><item><title><![CDATA[Reply to Building Qt 5.7 with MingW64 on Tue, 02 Aug 2016 21:02:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> Looking into this now.</p>
<p dir="auto">Another question, is there any way to have Qt 5.7 use the Mingw64 compiler as well instead of Msvc64? Or in that case I definitely <em>need</em> to comnpile Qt myself?</p>
]]></description><link>https://forum.qt.io/post/340478</link><guid isPermaLink="true">https://forum.qt.io/post/340478</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 02 Aug 2016 21:02:56 GMT</pubDate></item><item><title><![CDATA[Reply to Building Qt 5.7 with MingW64 on Tue, 02 Aug 2016 20:51:25 GMT]]></title><description><![CDATA[<p dir="auto">You can set the <code>QT_OPENGL </code> environment variable to desktop or set the application attribute <code>Qt::AA_UseDesktopOpenGL</code> before creating your application object.</p>
<p dir="auto">More information <a href="http://doc.qt.io/qt-5/windows-requirements.html" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>.</p>
<p dir="auto">As for the example, you can try by commenting the OpenGL check in the .pro file and either set the environment variable or modify the main.cpp to set the application attribute.</p>
]]></description><link>https://forum.qt.io/post/340476</link><guid isPermaLink="true">https://forum.qt.io/post/340476</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 02 Aug 2016 20:51:25 GMT</pubDate></item><item><title><![CDATA[Reply to Building Qt 5.7 with MingW64 on Tue, 02 Aug 2016 15:58:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> can you expand more on that please?</p>
<p dir="auto">How can I force loading the OpenGL backend?</p>
<p dir="auto">(i.e. when I open the Boxes OpenGL example, i cant run/build it, because it tells me that for this example to run the Qt had to be compiled with -opengl desktop option)</p>
]]></description><link>https://forum.qt.io/post/340451</link><guid isPermaLink="true">https://forum.qt.io/post/340451</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 02 Aug 2016 15:58:39 GMT</pubDate></item><item><title><![CDATA[Reply to Building Qt 5.7 with MingW64 on Tue, 02 Aug 2016 15:57:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/buckwheat">@<bdi>Buckwheat</bdi></a>, yes you can. There are already some pages about building Qt e.g. from git.</p>
<p dir="auto">@r2com Since Qt 5.5 the backend selection on Windows is dynamic so it basically depends on what GPU/Driver combo you have on a machine. You can force loading the OpenGL backend though.</p>
]]></description><link>https://forum.qt.io/post/340450</link><guid isPermaLink="true">https://forum.qt.io/post/340450</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 02 Aug 2016 15:57:02 GMT</pubDate></item><item><title><![CDATA[Reply to Building Qt 5.7 with MingW64 on Tue, 02 Aug 2016 15:44:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/buckwheat">@<bdi>Buckwheat</bdi></a><br />
"I, myself, prefer to focus on using Qt and not building it. I let the pros at Qt or distro builders do that."</p>
<p dir="auto">So do I! I want to use Qt not build it, but pros at Qt made a silly decision to distribute Windows binaries without "-opengl desktop" option, perhaps their rationale was the fact that windows does not by default provide latest OpenGL drivers, so they wanted to make life of Qt OpenGL developers "better" by providing binaries using that ANGLE.</p>
<p dir="auto">However, pros building Qt failed to realize the fact that building the Qt is way more complicated than downloading the OpenGL drivers for your system.</p>
<p dir="auto">Hopefully the Qt people noticing this thread will try to fix it and redistribute binary installation of Qt for Windows with -opengl desktop option. Otherwise its just plain stupid</p>
]]></description><link>https://forum.qt.io/post/340444</link><guid isPermaLink="true">https://forum.qt.io/post/340444</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 02 Aug 2016 15:44:13 GMT</pubDate></item><item><title><![CDATA[Reply to Building Qt 5.7 with MingW64 on Tue, 02 Aug 2016 15:06:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> Thanks! Can we access the current Wiki to change it? There is some writeup on alternate builds but they are not complete or actually very useful. I was thinking that building Qt is coming up so often that there should be forum topic or a Wiki dedicated just for building the libraries or downloading already completed toolkits.</p>
]]></description><link>https://forum.qt.io/post/340435</link><guid isPermaLink="true">https://forum.qt.io/post/340435</guid><dc:creator><![CDATA[Buckwheat]]></dc:creator><pubDate>Tue, 02 Aug 2016 15:06:58 GMT</pubDate></item><item><title><![CDATA[Reply to Building Qt 5.7 with MingW64 on Mon, 01 Aug 2016 22:24:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/buckwheat">@<bdi>Buckwheat</bdi></a>, rather than using the forum for your guides, I'd recommend writing Wiki pages, they'll be easier to find and to link to from the forum.</p>
]]></description><link>https://forum.qt.io/post/340270</link><guid isPermaLink="true">https://forum.qt.io/post/340270</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 01 Aug 2016 22:24:05 GMT</pubDate></item><item><title><![CDATA[Reply to Building Qt 5.7 with MingW64 on Mon, 01 Aug 2016 12:05:49 GMT]]></title><description><![CDATA[<p dir="auto">Hi!  Welcome!</p>
<p dir="auto">It is amazing that this is a common post that keeps coming up. "Building Qt in MinGW64." I know I have posted about MSYS2 and its complete 32bit and 64bit devel kit for Qt (currently 5.61) and QtCreator (4.0.3) using the gcc MinGW64 toolchain (now at 6.1.0).</p>
<p dir="auto">I, myself, prefer to focus on using Qt and not building it. I let the pros at Qt or distro builders do that. You can download MSYS2 from <a href="https://sourceforge.net/projects/msys2/" target="_blank" rel="noopener noreferrer nofollow ugc">https://sourceforge.net/projects/msys2/</a> and then using pacman, the package manager, can download and install the toolchains and Qt API. Generally takes about 30 minutes to one hour to download and install the complete toolchain and Qt development kit.</p>
<p dir="auto">I have other and more complete write-ups in the forum on this. Save some time, headaches, and get doing what you most want to do... create great code!</p>
]]></description><link>https://forum.qt.io/post/340207</link><guid isPermaLink="true">https://forum.qt.io/post/340207</guid><dc:creator><![CDATA[Buckwheat]]></dc:creator><pubDate>Mon, 01 Aug 2016 12:05:49 GMT</pubDate></item><item><title><![CDATA[Reply to Building Qt 5.7 with MingW64 on Mon, 01 Aug 2016 04:24:22 GMT]]></title><description><![CDATA[<p dir="auto">@r2com It looks like Qt5Core was not built. How and from where did you call configure and make?<br />
C:/Qt/Qt57_build/qtbase/bin/uic.exe: error while loading shared libraries: Qt5Core.dll: cannot open shared object file: No such file or directory</p>
]]></description><link>https://forum.qt.io/post/340165</link><guid isPermaLink="true">https://forum.qt.io/post/340165</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Mon, 01 Aug 2016 04:24:22 GMT</pubDate></item><item><title><![CDATA[Reply to Building Qt 5.7 with MingW64 on Sun, 31 Jul 2016 15:25:30 GMT]]></title><description><![CDATA[<p dir="auto">here it is: <a href="http://bcas.tv/paste/results/5X3Lj482.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://bcas.tv/paste/results/5X3Lj482.html</a></p>
]]></description><link>https://forum.qt.io/post/340126</link><guid isPermaLink="true">https://forum.qt.io/post/340126</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 31 Jul 2016 15:25:30 GMT</pubDate></item><item><title><![CDATA[Reply to Building Qt 5.7 with MingW64 on Sun, 31 Jul 2016 15:22:54 GMT]]></title><description><![CDATA[<p dir="auto">Hi &amp; welcome,</p>
<p dir="auto">The part of the compiler output that you posted is the end when all jobs are being terminated. It doesn't show the actual error. The errors would likely be shown somewhere above that.<br />
Can you please paste the entire compilation output?</p>
]]></description><link>https://forum.qt.io/post/340124</link><guid isPermaLink="true">https://forum.qt.io/post/340124</guid><dc:creator><![CDATA[Joel Bodenmann]]></dc:creator><pubDate>Sun, 31 Jul 2016 15:22:54 GMT</pubDate></item></channel></rss>