<div dir="ltr"><br><div class="gmail_quote"><div dir="ltr"><div>Thanks that info helped.<br><br>It didn't seem clear to me while reading the PyQt5 docs whether or not you had to build the android and iOS version like you do with the desktop versions.<br><br></div><div>I think I might write an Android/iOS specific recipe later on for PyQt5/mobile newbies :-)<br></div><div><br></div><div>/ Jakob<br></div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Tue, Mar 1, 2016 at 10:21 AM, Phil Thompson <span dir="ltr"><<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>On 1 Mar 2016, at 9:04 am, Jakob Simon-Gaarde <<a href="mailto:jakobsg@gmail.com" target="_blank">jakobsg@gmail.com</a>> wrote:<br>
><br>
> Hi.<br>
><br>
> I am can see in the ducumentation for PyQt5 that mobile devices using Android or iOS operating systems are supported. I wanted to give this a try, but I am stuck cause I can't find a guide on how to get started.<br>
><br>
> I am using Kubuntu (latest version as I write: 15.10)<br>
> Here is what I have done until now:<br>
><br>
> Preparations:<br>
> ------------<br>
> * Installed Qt 5.5.1 (with Android libraries)<br>
> * Installed Android SDK and NDK<br>
> * Installed python-dev and python3-dev<br>
> * Downloaded, unpacked, build and installed sip-4.17.tar.gz for both python2.7 and python3.4<br>
> * Downloaded and unpacked PyQt-gpl-5.5.1.tar.gz<br>
><br>
> Host system build:<br>
> -----------------<br>
> First I tried to build the host system version of PyQt5:<br>
><br>
> python configure.py -q <PATH_TO_GCC_QMAKE><br>
><br>
> This worked fine.<br>
><br>
> Android build:<br>
> -------------<br>
> ANDROID_NDK_ROOT=<MY_NDK_INSTALLATION> python configure.py -q <PATH_TO_ANDROID_QMAKE><br>
><br>
> Querying qmake about your Qt installation...<br>
> Determining the details of your Qt installation...<br>
> /home/jakob/Qt/5.5/android_armv7/bin/qmake -o <a href="http://qtdetail.mk" rel="noreferrer" target="_blank">qtdetail.mk</a> <a href="http://qtdetail.pro" rel="noreferrer" target="_blank">qtdetail.pro</a><br>
> make -f <a href="http://qtdetail.mk" rel="noreferrer" target="_blank">qtdetail.mk</a><br>
> /home/jakob/dev/android/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -c -Wno-psabi -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -DANDROID -Wa,--noexecstack -fno-builtin-memmove -std=c++11 -O2 -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -mthumb -Wall -Wno-psabi -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I../../../Qt/5.5/android_armv7/include -I../../../Qt/5.5/android_armv7/include/QtCore -I. -I../../android/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.8/include -I../../android/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a/include -I../../android/android-ndk-r10e/platforms/android-9/arch-arm/usr/include -I../../../Qt/5.5/android_armv7/mkspecs/android-g++ -o qtdetail.o qtdetail.cpp<br>
> /home/jakob/dev/android/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ --sysroot=/home/jakob/dev/android/android-ndk-r10e/platforms/android-9/arch-arm/ -Wl,-soname,libqtdetail.so -Wl,-rpath=/home/jakob/Qt/5.5/android_armv7/lib -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libqtdetail.so qtdetail.o -L/home/jakob/dev/android/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a -L/home/jakob/dev/android/android-ndk-r10e/platforms/android-9/arch-arm//usr/lib -L/home/jakob/Qt/5.5/android_armv7/lib -lQt5Core -L/opt/android/ndk/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a -L/opt/android/ndk/platforms/android-9/arch-arm//usr/lib -lgnustl_shared -llog -lz -lm -ldl -lc -lgcc<br>
> Error: Failed to determine the detail of your Qt installation. Try again using<br>
> the --verbose flag to see more detail about the problem.<br>
><br>
> So this is where I am stuck...<br>
><br>
> What am I doing wrong?<br>
><br>
> It would be really nice if someone could write a guide on how to get started with PyQt5 on Android and iOS.<br>
<br>
</div></div>Mobile support is only in the context of pyqtdeploy'ed applications. See the pyqtdeploy documentation for cross-compiling for those platforms.<br>
<span><font color="#888888"><br>
Phil</font></span></blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br><div>Med venlig hilsen / Best regards<br>Jakob Simon-Gaarde</div>
</font></span></div>
</div><br><br clear="all"><br>-- <br><div class="gmail_signature">Med venlig hilsen / Best regards<br>Jakob Simon-Gaarde</div>
</div>