Problem building Kirigami example.

patrick JP patrickelectric at gmail.com
Mon Aug 28 16:27:07 UTC 2017


I am trying to compile kirigami apk. This is my command line to use cmake:

cmake ..
-DCMAKE_TOOLCHAIN_FILE=/usr/share/cmake-3.9/Modules/Platform/Android.cmake \
-DQTANDROID_EXPORTED_TARGET=kirigami2gallery
-DANDROID_APK_DIR=../examples/galleryapp/ \
-DCMAKE_PREFIX_PATH=/opt/android-qt5/5.9.1/armeabi-v7a \
-DCMAKE_INSTALL_PREFIX=potato \
-DECM_DIR=/usr/share/ECM/cmake \
-DBUILD_EXAMPLES=ON

When running make, an error message appears saying that the binaries are
incompatible.

make

[  4%] Automatic MOC for target kirigamiplugin

Generating MOC predefs moc_predefs.h

[  4%] Built target kirigamiplugin_autogen

[  9%] Linking CXX shared library libkirigamiplugin.so

/opt/android-qt5/5.9.1/armeabi-v7a/lib/libQt5Quick.so: error adding
symbols: File in wrong format

collect2: error: ld returned 1 exit status

make[2]: *** [src/CMakeFiles/kirigamiplugin.dir/build.make:225:
src/libkirigamiplugin.so] Error 1

make[1]: *** [CMakeFiles/Makefile2:361:
src/CMakeFiles/kirigamiplugin.dir/all] Error 2

make: *** [Makefile:163: all] Error 2

The .obj that is generated from kirigami is x86-64 and not arm v7:

./src/CMakeFiles/kirigamiplugin.dir/ECMQmLoader-libkirigami2plugin_qt.cpp.obj:
ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped


I don't know what is the problem, I was just following the README.md.

My best regards,
-- 
Patrick José Pereira
Electronics Engineer
Skype: patrickelectric434
IRC: patrickelectric
+55 (048) 99917-4777 <(48)%2099917-4777>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170828/46dea4ac/attachment-0001.html>


More information about the Plasma-devel mailing list