<div dir="ltr"><div class="gmail_quote"><div dir="ltr">Hi,<div>I've been trying for the past two days to get my Kirigami application up and working on Android. It all works fine in the desktop, but when i try to deploy it to an android device the application dies.</div><div><br></div><div>I'm using qmake, because with cmake i haven't been able to get pass this error:</div><div><br></div><div>/usr/share/cmake-3.9/Modules/<wbr>CMakeTestCCompiler.cmake:51: error: The C compiler "/opt/android-sdk/ndk-bundle/<wbr>toolchains/arm-linux-<wbr>androideabi-4.9/prebuilt/<wbr>linux-x86_64/bin/arm-linux-<wbr>androideabi-gcc" is not able to compile a simple test program. It fails with the following output: Change Dir: /tmp/QtCreator-Dzolzo/qtc-<wbr>cmake-XXyC6vei/CMakeFiles/<wbr>CMakeTmp<br></div><div><br></div><div>I'm using QtCreato 4.4.1 and I'm under Arch Linux</div><div><br></div><div>Here's the application i'm trying to build:</div><div><br></div><div><a href="https://github.com/milohr/medOS-kirigami" target="_blank">https://github.com/milohr/<wbr>medOS-kirigami</a><br></div><div><br></div><div>Apparently the error comes from here:</div><div>On android it dies cause of engine<span style="color:rgb(214,187,154)">.</span>rootObjects<span style="color:rgb(214,187,154)">().</span>isEmpty<span style="color:rgb(214,187,154)">()</span></div><div><br></div><div>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(190,192,194)"> </span><span style="color:rgb(214,187,154)">engine</span><span style="color:rgb(214,187,154)">.</span>load<span style="color:rgb(214,187,154)">(</span><span style="color:rgb(255,128,128)">QUrl</span><span style="color:rgb(214,187,154)">(</span><span style="color:rgb(255,128,128)">QLatin1String</span><span style="color:rgb(214,187,154)"><wbr>(</span><span style="color:rgb(214,149,69)">"qrc:/main.qml"</span><span style="color:rgb(214,187,154)">)));</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(190,192,194)"> </span><span style="font-style:italic;color:rgb(69,198,214)">if</span><span style="color:rgb(190,192,194)"> </span><span style="color:rgb(214,187,154)">(</span>engine<span style="color:rgb(214,187,154)">.</span>rootObjects<span style="color:rgb(214,187,154)">().</span>isEmpty<span style="color:rgb(214,187,154)">(<wbr>))</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(190,192,194)"> </span><span style="color:rgb(214,187,154)">{</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(190,192,194)"> </span><span style="color:rgb(255,106,173)">qDebug</span><span style="color:rgb(214,187,154)">()</span><span style="color:rgb(214,187,154)"><<</span><span style="color:rgb(214,149,69)">"engine.load</span><span style="color:rgb(190,192,194)"> </span><span style="color:rgb(214,149,69)">is</span><span style="color:rgb(190,192,194)"> </span><span style="color:rgb(214,149,69)">empty"</span><span style="color:rgb(214,187,154)">;</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(190,192,194)"> </span><span style="font-style:italic;color:rgb(69,198,214)">return</span><span style="color:rgb(190,192,194)"> </span><span style="color:rgb(214,187,154)">-</span><span style="color:rgb(138,96,44)">1</span><span style="color:rgb(214,187,154)">;</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(190,192,194)"> </span><span style="color:rgb(214,187,154)">}</span><span style="font-style:italic;color:rgb(69,198,214)">else</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(190,192,194)"> </span><span style="color:rgb(214,187,154)">{</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(190,192,194)"> </span><span style="color:rgb(255,106,173)">qDebug</span><span style="color:rgb(214,187,154)">()</span><span style="color:rgb(214,187,154)"><<</span><span style="color:rgb(214,149,69)">"engine.load</span><span style="color:rgb(190,192,194)"> </span><span style="color:rgb(214,149,69)">is</span><span style="color:rgb(190,192,194)"> </span><span style="color:rgb(214,149,69)">not</span><span style="color:rgb(190,192,194)"> </span><span style="color:rgb(214,149,69)">empty"</span><span style="color:rgb(214,187,154)">;</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(190,192,194)"> </span><span style="color:rgb(214,187,154)">}</span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(214,187,154)"><br></span></pre></div><div><br></div><div>Here's the error log:</div><div><a href="https://paste.kde.org/prrj64zsd/p2rbd5" style="color:rgb(0,64,122);outline:0px;font-family:"Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px" target="_blank">https://paste.kde.org/<wbr>prrj64zsd/p2rbd5</a><br></div><div><br></div><div>Any kind of help would be greatly appreciated. </div></div>
</div><br></div>