Closed NovaVoidHowl closed 4 years ago
thanks to @leinir the cmake commands provided worked as expected
ref:
cmake -DCMAKE_TOOLCHAIN_FILE=/opt/kdeandroid-deps/share/ECM/toolchain/Android.cmake -DECM_ADDITIONAL_FIND_ROOT_PATH=/opt/kdeandroid-deps -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../export -DQTANDROID_EXPORTED_TARGET=digitail -DANDROID_APK_DIR=../data -DANDROID_EXTRA_LIBS=/opt/kdeandroid-deps/lib/libcrypto.so,/opt/kdeandroid-deps/lib/libssl.so ..
cmake -DCMAKE_TOOLCHAIN_FILE=/opt/kdeandroid-deps/share/ECM/toolchain/Android.cmake -DECM_ADDITIONAL_FIND_ROOT_PATH=/opt/Qt/5.13.2 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../export -DQTANDROID_EXPORTED_TARGET=digitail -DANDROID_APK_DIR=../data -DANDROID_EXTRA_LIBS=/opt/kdeandroid-deps/lib/libcrypto.so,/opt/kdeandroid-deps/lib/libssl.so ..
however the make command failed
Thanks to @leinir the issue with the make command was resolved by adding
#include <QDebug>
to the top file './3rdparty/kirigami/src/kirigamiplugin.h'
This totally resolves the Android build issue.
The problem with the Tumbleweed container persists, but the commands used in it, when used in a Tumbleweed VM work OK. So it must be an issue with how I configured the container(probably missing dependencies) so I am closing this issue
When attempting to build the android app via docker (either 32bit or 64) the build fails with the following error
the commands run to get to this state were (user home dir is test, repo base dir on host is /home/test/dev/CRUMPET)
on the host
docker run -ti --rm -v /home/test/dev/apks:/output -v /home/test/dev/CRUMPET:/CRUMPET kdeorg/android-arm-sdk bash
in the container
Note a similar error occurs when trying to do a 'normal/Linux' build in a fresh opensuse tumbleweed container created from the following docker file
on the host (note docker build result from the above was saved to tag 'crumpet_builder:0.1' )
docker run -ti --rm -v /home/test/dev/apks:/output -v /home/test/dev/CRUMPET:/CRUMPET crumpet_builder:0.1 bash
in the container
error
content of CMakeOutput.log
I hope this provides sufficient detail to try and diagnose the error I am reporting
In case it makes any difference, the host system is a VM running Ubuntu 20.04, with Docker version 18.06.3-ce, build d7080c1