<?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[Cross compiled qt-app gives illegal instruction in target]]></title><description><![CDATA[<p dir="auto">I used the qt for user interface development for our application. I used buildroot for developed embedded linux for our application. I are planning to run the Qt-UI in target application. We cross compiled all gcc/g++, linkers and others carefully . With the crosscompiler toolchain We able to develop the executable. When I transfer the executable to target through scp (not through Qt kits SFTP) and run on target I am getting "Illegal Instruction". Before running qt-app i did LD_TRACE_LOADED_OBJECTS=1 ./test (test is qt-app)</p>
<p dir="auto">I am getting the following</p>
<h1>LD_TRACE_LOADED_OBJECTS=1 ./test</h1>
<pre><code>linux-gate.so.1 (0xb7799000)
libQt5Widgets.so.5 =&gt; /usr/lib/libQt5Widgets.so.5 (0xb6ff4000)
libQt5Gui.so.5 =&gt; /usr/lib/libQt5Gui.so.5 (0xb696f000)
libQt5Core.so.5 =&gt; /usr/lib/libQt5Core.so.5 (0xb6495000)
librt.so.1 =&gt; /lib/librt.so.1 (0xb648c000)
libdl.so.2 =&gt; /lib/libdl.so.2 (0xb6487000)
libGL.so.1 =&gt; /usr/lib/libGL.so.1 (0xb642c000)
libpthread.so.0 =&gt; /lib/libpthread.so.0 (0xb640f000)
libatomic.so.1 =&gt; /lib/libatomic.so.1 (0xb6408000)
libstdc++.so.6 =&gt; /usr/lib/libstdc++.so.6 (0xb6348000)
libm.so.6 =&gt; /lib/libm.so.6 (0xb62f1000)
libgcc_s.so.1 =&gt; /lib/libgcc_s.so.1 (0xb62db000)
libc.so.6 =&gt; /lib/libc.so.6 (0xb6155000)
libpng16.so.16 =&gt; /usr/lib/libpng16.so.16 (0xb612b000)
libz.so.1 =&gt; /usr/lib/libz.so.1 (0xb6119000)
libicui18n.so.57 =&gt; /usr/lib/libicui18n.so.57 (0xb5f0a000)
libicuuc.so.57 =&gt; /usr/lib/libicuuc.so.57 (0xb5db0000)
libicudata.so.57 =&gt; /usr/lib/libicudata.so.57 (0xb4532000)
libpcre16.so.0 =&gt; /usr/lib/libpcre16.so.0 (0xb44fc000)
libgthread-2.0.so.0 =&gt; /usr/lib/libgthread-2.0.so.0 (0xb44fa000)
libglib-2.0.so.0 =&gt; /usr/lib/libglib-2.0.so.0 (0xb4413000)
/lib/ld-linux.so.2 (0xb779a000)
libexpat.so.1 =&gt; /usr/lib/libexpat.so.1 (0xb43f5000)
libglapi.so.0 =&gt; /usr/lib/libglapi.so.0 (0xb43cf000)
libXdamage.so.1 =&gt; /usr/lib/libXdamage.so.1 (0xb43cc000)
libXfixes.so.3 =&gt; /usr/lib/libXfixes.so.3 (0xb43c7000)
libX11-xcb.so.1 =&gt; /usr/lib/libX11-xcb.so.1 (0xb43c5000)
libX11.so.6 =&gt; /usr/lib/libX11.so.6 (0xb42b2000)
libxcb-glx.so.0 =&gt; /usr/lib/libxcb-glx.so.0 (0xb429a000)
libxcb-dri2.so.0 =&gt; /usr/lib/libxcb-dri2.so.0 (0xb4296000)
libxcb.so.1 =&gt; /usr/lib/libxcb.so.1 (0xb4272000)
libXxf86vm.so.1 =&gt; /usr/lib/libXxf86vm.so.1 (0xb426d000)
libXext.so.6 =&gt; /usr/lib/libXext.so.6 (0xb425d000)
libXau.so.6 =&gt; /usr/lib/libXau.so.6 (0xb425a000)
libXdmcp.so.6 =&gt; /usr/lib/libXdmcp.so.6 (0xb4255000)
libdrm.so.2 =&gt; /usr/lib/libdrm.so.2 (0xb4248000)
libpcre.so.1 =&gt; /usr/lib/libpcre.so.1 (0xb420b000)
</code></pre>
<h1></h1>
<p dir="auto">after executing the LD_TRACE_LOADED_OBJECTS, If I run the</p>
<h1>./test</h1>
<p dir="auto">I am getting<br />
Illegal Instruction.</p>
<p dir="auto">How to fix it.</p>
<p dir="auto">My target system : ICOP VDX6354RD with 512MB RAM, 800MHz Processor</p>
<p dir="auto">Linux Kernel : 3.8.13</p>
<p dir="auto">GCC Version : 4.9.4</p>
<p dir="auto">Qt : 5.6.1</p>
<p dir="auto">Host System : 64bit, Fedora 24</p>
<p dir="auto">thanks &amp; regards,<br />
servo gmrt</p>
]]></description><link>https://forum.qt.io/topic/71775/cross-compiled-qt-app-gives-illegal-instruction-in-target</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 11:01:04 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/71775.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 29 Sep 2016 19:22:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cross compiled qt-app gives illegal instruction in target on Thu, 20 Oct 2016 19:13:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a><br />
Yes, I cross checked all my shared object files in /lib and /usr/lib.</p>
<p dir="auto">I am using the cross compiled iso images. Which is built using buildroot.</p>
]]></description><link>https://forum.qt.io/post/355479</link><guid isPermaLink="true">https://forum.qt.io/post/355479</guid><dc:creator><![CDATA[gmrt]]></dc:creator><pubDate>Thu, 20 Oct 2016 19:13:44 GMT</pubDate></item><item><title><![CDATA[Reply to Cross compiled qt-app gives illegal instruction in target on Thu, 20 Oct 2016 18:57:47 GMT]]></title><description><![CDATA[<p dir="auto">Did you deploy all dependencies ?</p>
<p dir="auto">What distribution are you running on your target ?</p>
]]></description><link>https://forum.qt.io/post/355475</link><guid isPermaLink="true">https://forum.qt.io/post/355475</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 20 Oct 2016 18:57:47 GMT</pubDate></item><item><title><![CDATA[Reply to Cross compiled qt-app gives illegal instruction in target on Thu, 20 Oct 2016 18:43:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a><br />
I checked in my build all the libraries build using i586.<br />
I found another interesting thing when I run the cross compiled qt executable in virtual machine. It is running without any error.<br />
When I try to run it in hardware i am getting "illegal instruction" error.<br />
Problem found is while running in actual hardware is shared libraries are not getting loaded.<br />
I tried with exporting LD_LIBRARY_PATH before running the qt application. but no change, same error is appearing.</p>
]]></description><link>https://forum.qt.io/post/355470</link><guid isPermaLink="true">https://forum.qt.io/post/355470</guid><dc:creator><![CDATA[gmrt]]></dc:creator><pubDate>Thu, 20 Oct 2016 18:43:01 GMT</pubDate></item><item><title><![CDATA[Reply to Cross compiled qt-app gives illegal instruction in target on Fri, 30 Sep 2016 11:54:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gmrt">@<bdi>gmrt</bdi></a> Is any of the libs built for &gt;i586?</p>
]]></description><link>https://forum.qt.io/post/351100</link><guid isPermaLink="true">https://forum.qt.io/post/351100</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Fri, 30 Sep 2016 11:54:02 GMT</pubDate></item><item><title><![CDATA[Reply to Cross compiled qt-app gives illegal instruction in target on Fri, 30 Sep 2016 10:34:55 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">My file output as follows,</p>
<p dir="auto">test is my qt-app</p>
<p dir="auto">test: ELF 32-bit LSB executable, Intel 80386, version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=41e3e6d6fa1db29b9747d7334ee029f375829195, not stripped</p>
<p dir="auto">My target is i586 architecture CPU. Same I enabled in Linux kernel configuration.</p>
<p dir="auto">My Kit configuration variables are pointing to the cross compiled path.</p>
]]></description><link>https://forum.qt.io/post/351080</link><guid isPermaLink="true">https://forum.qt.io/post/351080</guid><dc:creator><![CDATA[gmrt]]></dc:creator><pubDate>Fri, 30 Sep 2016 10:34:55 GMT</pubDate></item><item><title><![CDATA[Reply to Cross compiled qt-app gives illegal instruction in target on Fri, 30 Sep 2016 07:08:14 GMT]]></title><description><![CDATA[<p dir="auto">You should check the processor type as well as the linux distribution you have running to ensure that you are building for the correct ARM processor type as well as ABI.</p>
]]></description><link>https://forum.qt.io/post/351021</link><guid isPermaLink="true">https://forum.qt.io/post/351021</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Fri, 30 Sep 2016 07:08:14 GMT</pubDate></item><item><title><![CDATA[Reply to Cross compiled qt-app gives illegal instruction in target on Fri, 30 Sep 2016 05:18:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gmrt">@<bdi>gmrt</bdi></a> What does "file YOUR_EXECUTABLE" say?</p>
]]></description><link>https://forum.qt.io/post/351000</link><guid isPermaLink="true">https://forum.qt.io/post/351000</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Fri, 30 Sep 2016 05:18:06 GMT</pubDate></item><item><title><![CDATA[Reply to Cross compiled qt-app gives illegal instruction in target on Fri, 30 Sep 2016 04:15:26 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I am using qt5base-5.6.1-1cross compiled binaries in target board.</p>
<p dir="auto">For building qt-application cross compiled qmake I am using.</p>
<p dir="auto">My Qt creator version installed in Host System is 4.0.3 .</p>
<p dir="auto">But I configured the Kit in Qt creator with the cross compiled binaries.</p>
]]></description><link>https://forum.qt.io/post/350989</link><guid isPermaLink="true">https://forum.qt.io/post/350989</guid><dc:creator><![CDATA[gmrt]]></dc:creator><pubDate>Fri, 30 Sep 2016 04:15:26 GMT</pubDate></item><item><title><![CDATA[Reply to Cross compiled qt-app gives illegal instruction in target on Thu, 29 Sep 2016 20:34:31 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Which version of Qt are you using to build your application ?</p>
]]></description><link>https://forum.qt.io/post/350940</link><guid isPermaLink="true">https://forum.qt.io/post/350940</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 29 Sep 2016 20:34:31 GMT</pubDate></item></channel></rss>