<div dir="ltr">Hi Tomaz,<div><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-08-31 5:58 GMT-03:00 Tomaz Canabrava <span dir="ltr"><<a href="mailto:tcanabrava@kde.org" target="_blank">tcanabrava@kde.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Pats,<br><br><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="gmail-h5">On Mon, Aug 28, 2017 at 6:27 PM, patrick JP <span dir="ltr"><<a href="mailto:patrickelectric@gmail.com" target="_blank">patrickelectric@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><span style="color:rgb(0,0,0);font-family:Tahoma,sans-serif,Arial,Helvetica;font-size:13px;white-space:pre-wrap">I am trying to compile kirigami apk.
This is my command line to use cmake:
</span><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><font color="#000000" face="Tahoma, sans-serif, Arial, Helvetica"><span style="white-space:pre-wrap">cmake ..  -DCMAKE_TOOLCHAIN_FILE=/usr/sh<wbr>are/cmake-3.9/Modules/Platform<wbr>/Android.cmake \<br></span></font><font color="#000000" face="Tahoma, sans-serif, Arial, Helvetica"><span style="white-space:pre-wrap">    -DQTANDROID_EXPORTED_TARGET=ki<wbr>rigami2gallery -DANDROID_APK_DIR=../examples/<wbr>galleryapp/ \<br></span></font><font color="#000000" face="Tahoma, sans-serif, Arial, Helvetica"><span style="white-space:pre-wrap">    -DCMAKE_PREFIX_PATH=/opt/andro<wbr>id-qt5/5.9.1/armeabi-v7a \<br></span></font><font color="#000000" face="Tahoma, sans-serif, Arial, Helvetica"><span style="white-space:pre-wrap">    -DCMAKE_INSTALL_PREFIX=potato \<br></span></font><font color="#000000" face="Tahoma, sans-serif, Arial, Helvetica"><span style="white-space:pre-wrap">    -DECM_DIR=/usr/share/ECM/cmake \<br></span></font><font color="#000000" face="Tahoma, sans-serif, Arial, Helvetica"><span style="white-space:pre-wrap">    -DBUILD_EXAMPLES=ON</span></font></blockquote><font color="#000000" face="Tahoma, sans-serif, Arial, Helvetica"><span style="font-size:13px;white-space:pre-wrap">
When running make, an error message appears saying that the binaries are incompatible. 
</span></font><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><pre class="gmail-m_-3193467100653951066m_6814862401581852215gmail-cye-lm-tag" style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">make</pre><pre class="gmail-m_-3193467100653951066m_6814862401581852215gmail-cye-lm-tag" style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">[  4%] Automatic MOC for target kirigamiplugin</pre><pre class="gmail-m_-3193467100653951066m_6814862401581852215gmail-cye-lm-tag" style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">Generating MOC predefs moc_predefs.h</pre><pre class="gmail-m_-3193467100653951066m_6814862401581852215gmail-cye-lm-tag" style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">[  4%] Built target kirigamiplugin_autogen</pre><pre class="gmail-m_-3193467100653951066m_6814862401581852215gmail-cye-lm-tag" style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">[  9%] Linking CXX shared library libkirigamiplugin.so</pre><pre class="gmail-m_-3193467100653951066m_6814862401581852215gmail-cye-lm-tag" style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">/opt/android-qt5/5.9.1/armeabi<wbr>-v7a/lib/libQt5Quick.so: error adding symbols: File in wrong format</pre><pre class="gmail-m_-3193467100653951066m_6814862401581852215gmail-cye-lm-tag" style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">collect2: error: ld returned 1 exit status</pre><pre class="gmail-m_-3193467100653951066m_6814862401581852215gmail-cye-lm-tag" style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">make[2]: *** [src/CMakeFiles/kirigamiplugin<wbr>.dir/build.make:225: src/libkirigamiplugin.so] Error 1</pre><pre class="gmail-m_-3193467100653951066m_6814862401581852215gmail-cye-lm-tag" style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">make[1]: *** [CMakeFiles/Makefile2:361: src/CMakeFiles/kirigamiplugin.<wbr>dir/all] Error 2</pre><pre class="gmail-m_-3193467100653951066m_6814862401581852215gmail-cye-lm-tag" style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">make: *** [Makefile:163: all] Error 2</pre></blockquote><span style="color:rgb(0,0,0);font-family:Tahoma,sans-serif,Arial,Helvetica;font-size:13px;white-space:pre-wrap">

The .obj that is generated from kirigami is x86-64 and not arm v7:
</span><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><span style="color:rgb(0,0,0);font-family:Tahoma,sans-serif,Arial,Helvetica;font-size:13px;white-space:pre-wrap">./src/CMakeFiles/kirigamiplugi<wbr>n.dir/ECMQmLoader-libkirigami2<wbr>plugin_qt.cpp.obj: ELF 64-bit LSB relocatable, x86-64,  </span><span style="color:rgb(0,0,0);font-family:Tahoma,sans-serif,Arial,Helvetica;font-size:13px;white-space:pre-wrap">version 1 (SYSV), not stripped</span></blockquote><div><br>I don't know what is the problem, I was just following the README.md.<br><br>My best regards,</div><span class="gmail-m_-3193467100653951066HOEnZb"><font color="#888888">-- <br><div class="gmail-m_-3193467100653951066m_6814862401581852215gmail-m_-4876088113887460216gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr" style="font-size:small">Patrick José Pereira<br>Electronics Engineer</div><div dir="ltr" style="font-size:small">Skype: patrickelectric434</div><div style="font-size:small">IRC: patrickelectric<br><a href="tel:(48)%2099917-4777" value="+5548999174777" target="_blank">+55 (048) 99917-4777</a></div></div></div></div></div></div></div></div></div></div></div></div></font></span></div></blockquote><div><br></div></div></div><div>I have a working script to build for android on subsurface sources/packaging/android  <br></div><div><br></div><div>take a look there and see if it helps, it's fully documented.<br></div></div><br></div></div>
</blockquote></div>Tys, I'll take a look asap.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Now about my journey trying to compile the kirigami apk.</div><div class="gmail_extra">Talking with Marco I changed my cmake command line to use the same path to ECM and Android.cmake.</div><div class="gmail_extra"><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div class="gmail_extra"><div class="gmail_extra">make .. -DCMAKE_TOOLCHAIN_FILE=/usr/share/ECM/toolchain/Android.cmake -DQTANDROID_EXPORTED_TARGET=kirigami2gallery -DANDROID_APK_DIR=../examples/galleryapp/ \</div></div><div class="gmail_extra"><div class="gmail_extra">    -DCMAKE_PREFIX_PATH=/opt/android-qt5/5.9.1/armeabi-v7a \</div></div><div class="gmail_extra"><div class="gmail_extra">    -DCMAKE_INSTALL_PREFIX=/mnt/hd/kirigami-install \</div></div><div class="gmail_extra"><div class="gmail_extra">    -DECM_DIR=/usr/share/ECM/cmake \</div></div><div class="gmail_extra"><div class="gmail_extra">    -DBUILD_EXAMPLES=ON -DCMAKE_SYSTEM_NAME="Android" -DCMAKE_ANDROID_NDK=/opt/android-ndk -DQTANDROID_EXPORTED_TARGET=galleryapp</div></div></blockquote><div class="gmail_extra"><br></div><div class="gmail_extra">Than cmake was not happy, and was not possible to find Qt5CoreConfig.cmake</div><div class="gmail_extra"><a href="https://paste.kde.org/ppkru7p0j">https://paste.kde.org/ppkru7p0j</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Than I added a new line, -DQt5Core_DIR=/opt/android-qt5/5.9.1/armeabi-v7a/lib/cmake/Qt5Core/</div><div class="gmail_extra">cmake was not so much happy but no errors this time.</div><div class="gmail_extra">cmake + make result <a href="https://paste.kde.org/ppkhbkmwx">https://paste.kde.org/ppkhbkmwx</a>:</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ok, now make create-apk-galleryapp appears !!</div><div class="gmail_extra">And a new error too..</div><div class="gmail_extra"><a href="https://paste.kde.org/pi7szfhj9">https://paste.kde.org/pi7szfhj9</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div>I'll try Tomaz approach, but I'll be very happy to solve than and help Kirigami documentation. </div><div><br>My best regards,</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr" style="font-size:small">Patrick José Pereira<br>Electronics Engineer</div><div dir="ltr" style="font-size:small">Skype: patrickelectric434</div><div style="font-size:small">IRC: patrickelectric<br>+55 (048) 99917-4777</div></div></div></div></div></div></div></div></div></div></div></div>
</div></div>