<div dir="ltr">Pats,<br><br><div class="gmail_extra"><br><div class="gmail_quote">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:0 0 0 .8ex;border-left:1px #ccc solid;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/<wbr>share/cmake-3.9/Modules/<wbr>Platform/Android.cmake \<br></span></font><font color="#000000" face="Tahoma, sans-serif, Arial, Helvetica"><span style="white-space:pre-wrap">    -DQTANDROID_EXPORTED_TARGET=<wbr>kirigami2gallery -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/<wbr>android-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:0 0 0 40px;border:none;padding:0px"><pre class="m_6814862401581852215gmail-cye-lm-tag" style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">make</pre><pre class="m_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="m_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="m_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="m_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="m_6814862401581852215gmail-cye-lm-tag" style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">/opt/android-qt5/5.9.1/<wbr>armeabi-v7a/lib/libQt5Quick.<wbr>so: error adding symbols: File in wrong format</pre><pre class="m_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="m_6814862401581852215gmail-cye-lm-tag" style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">make[2]: *** [src/CMakeFiles/<wbr>kirigamiplugin.dir/build.make:<wbr>225: src/libkirigamiplugin.so] Error 1</pre><pre class="m_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="m_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:0 0 0 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/<wbr>kirigamiplugin.dir/<wbr>ECMQmLoader-<wbr>libkirigami2plugin_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="HOEnZb"><font color="#888888">-- <br><div class="m_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>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>