<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jack</title>
    <description>The latest articles on DEV Community by Jack (@jackhistoria).</description>
    <link>https://dev.to/jackhistoria</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F411628%2Fe1b2a22c-63b9-4077-95bf-21a0537caa30.jpeg</url>
      <title>DEV Community: Jack</title>
      <link>https://dev.to/jackhistoria</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jackhistoria"/>
    <language>en</language>
    <item>
      <title>Please help me by writing a working tutorial about cross-compiling qt for a raspberry pi zero w</title>
      <dc:creator>Jack</dc:creator>
      <pubDate>Thu, 18 Jun 2020 22:01:53 +0000</pubDate>
      <link>https://dev.to/jackhistoria/please-help-me-by-writing-a-working-tutorial-about-cross-compiling-qt-for-a-raspberry-pi-zero-w-44k7</link>
      <guid>https://dev.to/jackhistoria/please-help-me-by-writing-a-working-tutorial-about-cross-compiling-qt-for-a-raspberry-pi-zero-w-44k7</guid>
      <description>&lt;p&gt;I was using 17 tutorials on the subject and got nothing. I found the discussion to &lt;a href="https://wiki.qt.io/Talk:Raspberry_Pi_Beginners_Guide"&gt;this official qt tutorial&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This entire process is utterly broken.. Bad links, code that wont compile, scripts that don't work.. did you even try any of it?????&lt;br&gt;
Ive added changes to the wiki that have not been moderated yet..&lt;br&gt;
If you provide a "how to" consider the following...&lt;br&gt;
1) keep it updated or 2) step aside and let someone else do it..&lt;br&gt;
Its the official QT wiki at least this one should be right...&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;... and ...&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;It looks like this page hasn't been properly updated in about two&lt;br&gt;
years. Dead links all round etc. I'm currently trying to set up a&lt;br&gt;
cross compiler so that I can compile an application on my PC and then&lt;br&gt;
ssh it over to the Raspberry Pi. I'll try and get it working following&lt;br&gt;
these steps and try editing the article where things don't seem to be&lt;br&gt;
working. Jonnax (talk) 15:02, 12 June 2015 (UTC)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;...and to top all of this:&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Since the script here uses dead links that &lt;strong&gt;&lt;em&gt;redirect to phishing sites.&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
Perhaps someone could fix and change the script? Jonnax (talk) 17:32,&lt;br&gt;
12 June 2015 (UTC)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;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?&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I got it working to cross-compile for android OS, windows OS, mac OS and different flavors of linux OS &lt;em&gt;(Even arch linux from scratch)&lt;/em&gt; but I really stuck and hit the wall &lt;em&gt;(17 times:)&lt;/em&gt; at this little piece of hardware.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--B_KkXxzm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/8x35ae7hx5ol3mhniald.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--B_KkXxzm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/8x35ae7hx5ol3mhniald.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;So my question is: Would anyone kindly please write a working tutorial here that covers the topic?&lt;/em&gt;&lt;/strong&gt; &lt;em&gt;&lt;a href="https://raspberrypi.stackexchange.com/questions/tagged/qt"&gt;(The &lt;code&gt;stack-exchange for raspberry pi qt Tag&lt;/code&gt; is full of questions about this topic but no answers yet.)&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;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. &lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Most tutorials are working with some broken links for older &lt;code&gt;ubuntu OS&lt;/code&gt; versions and broken links to older &lt;code&gt;raspian OS&lt;/code&gt; versions so I guess it would be most beneficial if the tutorial is created for the following &lt;em&gt;(But It's totally up to you if even one would work)&lt;/em&gt;:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;Ubuntu 20.04 LTS&lt;/code&gt; &lt;a href="https://ubuntu.com/download/desktop"&gt;https://ubuntu.com/download/desktop&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Raspberry Pi OS&lt;/code&gt; &lt;em&gt;(previously called Raspbian)&lt;/em&gt;&lt;br&gt;
&lt;a href="https://www.raspberrypi.org/downloads/"&gt;https://www.raspberrypi.org/downloads/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Qt Qt Creator 4.12.2&lt;/code&gt; &lt;a href="https://www.qt.io/download-open-source"&gt;https://www.qt.io/download-open-source&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Virtual Box 6.1&lt;/code&gt; &lt;a href="https://www.virtualbox.org/wiki/Downloads"&gt;https://www.virtualbox.org/wiki/Downloads&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Please help - thanks upfront!&lt;/p&gt;




&lt;p&gt;&lt;em&gt;EDIT: I will try out some &lt;a href="https://www.qt.io/blog/docker-builds-from-qtcreator"&gt;Docker Blog/Tutorial&lt;/a&gt; I just found and tell you if it did it.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;What tutorials didn't work (or don't work anymore) and things I tried (To safe you about 3 Weeks of work)&lt;/em&gt;:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.raspberrypi.org/forums/viewtopic.php?t=83955"&gt;https://www.raspberrypi.org/forums/viewtopic.php?t=83955&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://wiki.qt.io/Raspberry_Pi_Beginners_Guide"&gt;https://wiki.qt.io/Raspberry_Pi_Beginners_Guide&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=lh8lqtgzqYA"&gt;https://www.youtube.com/watch?v=lh8lqtgzqYA&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://wiki.archlinux.org/index.php/Cross-compiling_tools_package_guidelines"&gt;https://wiki.archlinux.org/index.php/Cross-compiling_tools_package_guidelines&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.raspberrypi.org/forums/viewtopic.php?t=204529"&gt;https://www.raspberrypi.org/forums/viewtopic.php?t=204529&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://mechatronicsblog.com/cross-compile-and-deploy-qt-5-12-for-raspberry-pi/"&gt;https://mechatronicsblog.com/cross-compile-and-deploy-qt-5-12-for-raspberry-pi/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://github.com/ElektorLabs/160520-QT-compile-and-install-manual"&gt;https://github.com/ElektorLabs/160520-QT-compile-and-install-manual&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;8.&lt;a href="https://www.elektormagazine.com/articles/qt-for-the-raspberry-pi-a-step-by-step-guide-to-set-up-the-gui-framework"&gt;https://www.elektormagazine.com/articles/qt-for-the-raspberry-pi-a-step-by-step-guide-to-set-up-the-gui-framework&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.interelectronix.com/de/qt-auf-dem-raspberry-pi-4.html"&gt;https://www.interelectronix.com/de/qt-auf-dem-raspberry-pi-4.html&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://wiki.qt.io/RaspberryPi2EGLFS"&gt;https://wiki.qt.io/RaspberryPi2EGLFS&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://github.com/neuronalmotion/qtrpi"&gt;https://github.com/neuronalmotion/qtrpi&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.ics.com/blog/configuring-qt-creator-raspberry-pi"&gt;https://www.ics.com/blog/configuring-qt-creator-raspberry-pi&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="http://thebugfreeblog.blogspot.com/2012/11/bring-up-qt-50-on-raspberry-pi.html"&gt;http://thebugfreeblog.blogspot.com/2012/11/bring-up-qt-50-on-raspberry-pi.html&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://stackoverflow.com/questions/13626726/an-error-building-qt-libraries-for-the-raspberry-pi/33254355#33254355"&gt;https://stackoverflow.com/questions/13626726/an-error-building-qt-libraries-for-the-raspberry-pi/33254355#33254355&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://medium.com/@amirmann/how-to-cross-compile-qt-for-raspberry-pi-3-on-linux-ubuntu-for-beginners-75acf2a078c"&gt;https://medium.com/@amirmann/how-to-cross-compile-qt-for-raspberry-pi-3-on-linux-ubuntu-for-beginners-75acf2a078c&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://forum.qt.io/topic/100994/qt5-12-x-raspberry-pi-zero-cross-compilation-qcoreapplication-error"&gt;https://forum.qt.io/topic/100994/qt5-12-x-raspberry-pi-zero-cross-compilation-qcoreapplication-error&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.raspberrypi.org/forums/viewtopic.php?t=89518"&gt;https://www.raspberrypi.org/forums/viewtopic.php?t=89518&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://github.com/chschnell/build-qt5-rpi/blob/master/build-qt5-rpi.sh"&gt;https://github.com/chschnell/build-qt5-rpi/blob/master/build-qt5-rpi.sh&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.raspberrypi.org/forums/viewtopic.php?t=204778"&gt;https://www.raspberrypi.org/forums/viewtopic.php?t=204778&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>cpp</category>
      <category>raspberrypi</category>
      <category>qt</category>
      <category>crosscompiling</category>
    </item>
  </channel>
</rss>
