<?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[Step-By-Step tutorial on how to cross-compile a Qt application for a raspberry pi zero w from any Linux Distribution in 2020 with Raspberry OS]]></title><description><![CDATA[<p dir="auto">I was using 17 tutorials on the subject and got nothing. I found the discussion to <a href="https://wiki.qt.io/Talk:Raspberry_Pi_Beginners_Guide" target="_blank" rel="noopener noreferrer nofollow ugc">this official qt tutorial</a>:</p>
<blockquote>
<p dir="auto">This entire process is utterly broken.. Bad links, code that wont compile, scripts that don't work.. did you even try any of it?????<br />
Ive added changes to the wiki that have not been moderated yet..<br />
If you provide a "how to" consider the following...</p>
<ol>
<li>keep it updated or 2) step aside and let someone else do it..<br />
Its the official QT wiki at least this one should be right...</li>
</ol>
</blockquote>
<p dir="auto"><em><strong>... and ...</strong></em></p>
<blockquote>
<p dir="auto">It looks like this page hasn't been properly updated in about two<br />
years. Dead links all round etc. I'm currently trying to set up a<br />
cross compiler so that I can compile an application on my PC and then<br />
ssh it over to the Raspberry Pi. I'll try and get it working following<br />
these steps and try editing the article where things don't seem to be<br />
working. Jonnax (talk) 15:02, 12 June 2015 (UTC)</p>
</blockquote>
<p dir="auto"><em><strong>...and to top all of this:</strong></em></p>
<blockquote>
<p dir="auto">Since the script here uses dead links that <em><strong>redirect to phishing sites.</strong></em><br />
Perhaps someone could fix and change the script? Jonnax (talk) 17:32,<br />
12 June 2015 (UTC)</p>
</blockquote>
<p dir="auto"><em><strong>Could it be that hard to compile a piece of code for a cheap ARM? Aren't people paying fees starting at 500USD a month for the Qt toolkit to get something like that?</strong></em></p>
<p dir="auto">I got it working to cross-compile for android OS, windows OS, mac OS and different flavors of linux OS <em>(Even arch linux from scratch)</em> but I really stuck and hit the wall <em>(17 times:)</em> at this little piece of hardware.</p>
<p dir="auto"><em><strong>So my question is: Would anyone kindly please write a working tutorial here that covers the topic?</strong></em> <em><a href="https://raspberrypi.stackexchange.com/questions/tagged/qt" target="_blank" rel="noopener noreferrer nofollow ugc">(The <code>stack-exchange for raspberry pi qt Tag</code> is full of questions about this topic but no answers yet.)</a></em></p>
<p dir="auto">When I got it working somehow I will write it myself and in addition host the virtual box images for free on my server to spare the struggle and keep the source updated.</p>
<hr />
<p dir="auto"><strong>Most tutorials are working with some broken links for older <code>ubuntu OS</code> versions and broken links to older <code>raspian OS</code> versions so I guess it would be most beneficial if the tutorial is created for the following <em>(But It's totally up to you if even one would work)</em>:</strong></p>
<blockquote>
<p dir="auto"><code>Ubuntu 20.04 LTS</code> <a href="https://ubuntu.com/download/desktop" target="_blank" rel="noopener noreferrer nofollow ugc">https://ubuntu.com/download/desktop</a></p>
<p dir="auto"><code>Raspberry Pi OS</code> <em>(previously called Raspbian)</em><br />
<a href="https://www.raspberrypi.org/downloads/" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.raspberrypi.org/downloads/</a></p>
<p dir="auto"><code>Qt Qt Creator 4.12.2</code> <a href="https://www.qt.io/download-open-source" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.qt.io/download-open-source</a></p>
<p dir="auto"><code>Virtual Box 6.1</code> <a href="https://www.virtualbox.org/wiki/Downloads" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.virtualbox.org/wiki/Downloads</a></p>
</blockquote>
<p dir="auto">Please help - thanks upfront!</p>
<hr />
<p dir="auto"><em>EDIT: I will try out some <a href="https://www.qt.io/blog/docker-builds-from-qtcreator" target="_blank" rel="noopener noreferrer nofollow ugc">Docker Blog/Tutorial</a> I just found and tell you if it did it.</em></p>
<p dir="auto"><em>What tutorials didn't work (or don't work anymore) and things I tried (To safe you about 3 Weeks of work)</em>:</p>
<ol>
<li>
<p dir="auto"><a href="https://www.raspberrypi.org/forums/viewtopic.php?t=83955" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.raspberrypi.org/forums/viewtopic.php?t=83955</a></p>
</li>
<li>
<p dir="auto"><a href="https://wiki.qt.io/Raspberry_Pi_Beginners_Guide" target="_blank" rel="noopener noreferrer nofollow ugc">https://wiki.qt.io/Raspberry_Pi_Beginners_Guide</a></p>
</li>
<li>
<p dir="auto"><a href="https://www.youtube.com/watch?v=lh8lqtgzqYA" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.youtube.com/watch?v=lh8lqtgzqYA</a></p>
</li>
<li>
<p dir="auto"><a href="https://wiki.archlinux.org/index.php/Cross-compiling_tools_package_guidelines" target="_blank" rel="noopener noreferrer nofollow ugc">https://wiki.archlinux.org/index.php/Cross-compiling_tools_package_guidelines</a></p>
</li>
<li>
<p dir="auto"><a href="https://www.raspberrypi.org/forums/viewtopic.php?t=204529" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.raspberrypi.org/forums/viewtopic.php?t=204529</a></p>
</li>
<li>
<p dir="auto"><a href="https://mechatronicsblog.com/cross-compile-and-deploy-qt-5-12-for-raspberry-pi/" target="_blank" rel="noopener noreferrer nofollow ugc">https://mechatronicsblog.com/cross-compile-and-deploy-qt-5-12-for-raspberry-pi/</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/ElektorLabs/160520-QT-compile-and-install-manual" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/ElektorLabs/160520-QT-compile-and-install-manual</a></p>
</li>
</ol>
<p dir="auto">8.<a href="https://www.elektormagazine.com/articles/qt-for-the-raspberry-pi-a-step-by-step-guide-to-set-up-the-gui-framework" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.elektormagazine.com/articles/qt-for-the-raspberry-pi-a-step-by-step-guide-to-set-up-the-gui-framework</a></p>
<ol start="9">
<li>
<p dir="auto"><a href="https://www.interelectronix.com/de/qt-auf-dem-raspberry-pi-4.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.interelectronix.com/de/qt-auf-dem-raspberry-pi-4.html</a></p>
</li>
<li>
<p dir="auto"><a href="https://wiki.qt.io/RaspberryPi2EGLFS" target="_blank" rel="noopener noreferrer nofollow ugc">https://wiki.qt.io/RaspberryPi2EGLFS</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/neuronalmotion/qtrpi" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/neuronalmotion/qtrpi</a></p>
</li>
<li>
<p dir="auto"><a href="https://www.ics.com/blog/configuring-qt-creator-raspberry-pi" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.ics.com/blog/configuring-qt-creator-raspberry-pi</a></p>
</li>
<li>
<p dir="auto"><a href="http://thebugfreeblog.blogspot.com/2012/11/bring-up-qt-50-on-raspberry-pi.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://thebugfreeblog.blogspot.com/2012/11/bring-up-qt-50-on-raspberry-pi.html</a></p>
</li>
<li>
<p dir="auto"><a href="https://stackoverflow.com/questions/13626726/an-error-building-qt-libraries-for-the-raspberry-pi/33254355#33254355" target="_blank" rel="noopener noreferrer nofollow ugc">https://stackoverflow.com/questions/13626726/an-error-building-qt-libraries-for-the-raspberry-pi/33254355#33254355</a></p>
</li>
<li>
<p dir="auto"><a href="https://medium.com/@amirmann/how-to-cross-compile-qt-for-raspberry-pi-3-on-linux-ubuntu-for-beginners-75acf2a078c" target="_blank" rel="noopener noreferrer nofollow ugc">https://medium.com/@amirmann/how-to-cross-compile-qt-for-raspberry-pi-3-on-linux-ubuntu-for-beginners-75acf2a078c</a></p>
</li>
<li>
<p dir="auto"><a href="https://forum.qt.io/topic/100994/qt5-12-x-raspberry-pi-zero-cross-compilation-qcoreapplication-error">https://forum.qt.io/topic/100994/qt5-12-x-raspberry-pi-zero-cross-compilation-qcoreapplication-error</a></p>
</li>
<li>
<p dir="auto"><a href="https://www.raspberrypi.org/forums/viewtopic.php?t=89518" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.raspberrypi.org/forums/viewtopic.php?t=89518</a></p>
</li>
<li>
<p dir="auto"><a href="https://github.com/chschnell/build-qt5-rpi/blob/master/build-qt5-rpi.sh" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/chschnell/build-qt5-rpi/blob/master/build-qt5-rpi.sh</a></p>
</li>
<li>
<p dir="auto"><a href="https://www.raspberrypi.org/forums/viewtopic.php?t=204778" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.raspberrypi.org/forums/viewtopic.php?t=204778</a></p>
</li>
</ol>
]]></description><link>https://forum.qt.io/topic/116005/step-by-step-tutorial-on-how-to-cross-compile-a-qt-application-for-a-raspberry-pi-zero-w-from-any-linux-distribution-in-2020-with-raspberry-os</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 22:14:34 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/116005.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 17 Jun 2020 23:49:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Step-By-Step tutorial on how to cross-compile a Qt application for a raspberry pi zero w from any Linux Distribution in 2020 with Raspberry OS on Wed, 31 May 2023 21:18:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/uraihan">@<bdi>uraihan</bdi></a></p>
<p dir="auto">I am trying to cross compile for a Raspberry Pi 4B and running into errors when building for the target device.</p>
<p dir="auto">Is anyone available to help work through this?  Right now I'm developing on Ubuntu and moving all of my source files to the Pi to build in place.  This project will eventually have multiple devices that need to be updated.  I won't be able to build from source for all them when I make functionality updates.</p>
]]></description><link>https://forum.qt.io/post/760115</link><guid isPermaLink="true">https://forum.qt.io/post/760115</guid><dc:creator><![CDATA[TracerBullet]]></dc:creator><pubDate>Wed, 31 May 2023 21:18:23 GMT</pubDate></item><item><title><![CDATA[Reply to Step-By-Step tutorial on how to cross-compile a Qt application for a raspberry pi zero w from any Linux Distribution in 2020 with Raspberry OS on Mon, 20 Jun 2022 15:18:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jacktr">@<bdi>JackTr</bdi></a> Hi, I just made a new guide on Qt Wiki on how to cross-compile a Qt 6 application to Raspberry Pi from an Ubuntu/Debian-based Linux distro to Raspberry Pi OS. However, it was tested with Raspberry Pi 4 Model B and not Raspberry Pi Zero W, but I would love to hear any feedback and see if it works with other Raspberry Pi boards :)</p>
<p dir="auto"><a href="https://wiki.qt.io/Cross-Compile_Qt_6_for_Raspberry_Pi" target="_blank" rel="noopener noreferrer nofollow ugc">https://wiki.qt.io/Cross-Compile_Qt_6_for_Raspberry_Pi</a></p>
<p dir="auto">Hope it helps.</p>
]]></description><link>https://forum.qt.io/post/718373</link><guid isPermaLink="true">https://forum.qt.io/post/718373</guid><dc:creator><![CDATA[uraihan]]></dc:creator><pubDate>Mon, 20 Jun 2022 15:18:16 GMT</pubDate></item><item><title><![CDATA[Reply to Step-By-Step tutorial on how to cross-compile a Qt application for a raspberry pi zero w from any Linux Distribution in 2020 with Raspberry OS on Sun, 18 Jul 2021 21:25:52 GMT]]></title><description><![CDATA[<p dir="auto">12345678</p>
]]></description><link>https://forum.qt.io/post/671392</link><guid isPermaLink="true">https://forum.qt.io/post/671392</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 18 Jul 2021 21:25:52 GMT</pubDate></item><item><title><![CDATA[Reply to Step-By-Step tutorial on how to cross-compile a Qt application for a raspberry pi zero w from any Linux Distribution in 2020 with Raspberry OS on Tue, 25 Aug 2020 12:14:20 GMT]]></title><description><![CDATA[<p dir="auto">I had the same frustration until I found this complete and comprehensive guide:</p>
<p dir="auto"><a href="https://github.com/UvinduW/Cross-Compiling-Qt-for-Raspberry-Pi-4" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/UvinduW/Cross-Compiling-Qt-for-Raspberry-Pi-4</a></p>
<p dir="auto">Kudos to Uvindu Wijesinghe for being awesome.</p>
<p dir="auto">Verified it with Qt 5.15.0, Ubuntu 20.04 development machine and Raspberry Pi 3+ target. (Yes, this guide works for 3+ even though it says for 4). Also I've verified that this tutorial is still valid for Linaro toolchain 7.5.0.</p>
<p dir="auto">Hope this helps.</p>
<p dir="auto">Edit note: Additionally this guide does not use rpi-update which could be an issue on some setups (like mine).</p>
]]></description><link>https://forum.qt.io/post/614135</link><guid isPermaLink="true">https://forum.qt.io/post/614135</guid><dc:creator><![CDATA[MuratUrsavas]]></dc:creator><pubDate>Tue, 25 Aug 2020 12:14:20 GMT</pubDate></item><item><title><![CDATA[Reply to Step-By-Step tutorial on how to cross-compile a Qt application for a raspberry pi zero w from any Linux Distribution in 2020 with Raspberry OS on Thu, 18 Jun 2020 06:17:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jacktr">@<bdi>JackTr</bdi></a> said in <a href="/post/601437">Step-By-Step tutorial on how to cross-compile a Qt application for a raspberry pi zero w from any Linux Distribution in 2020 with Raspberry OS</a>:</p>
<blockquote>
<p dir="auto">Aren't people paying fees starting at 500USD a month for the Qt toolkit to get something like that?</p>
</blockquote>
<p dir="auto">People paying for Qt can get direct support from QtCompany.<br />
I agree a good and up-to-date description how to build Qt for RPi would be good, but somebody needs to write it.</p>
]]></description><link>https://forum.qt.io/post/601471</link><guid isPermaLink="true">https://forum.qt.io/post/601471</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Thu, 18 Jun 2020 06:17:38 GMT</pubDate></item></channel></rss>