[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Static iOS builds for x86_64
From:       David Morris <othalan () othalan ! net>
Date:       2016-05-20 15:52:08
Message-ID: CAHk-ryCfxDQHfa0kJKzmgtBBKmzbvh+PVD6e=awrr6FNd7x-rA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Rob,

This was a change in Qt version 5.6 which I find REALLY annoying.  qmake
used to put the iOS target first, however they deliberately changed this in
v5.6 to put the iPhone Simulator first, no option for choosing yourself
what order you want.  The reasoning was because the "proper development
cycle" as dictated by Qt is to test in the simulator before testing on the
target.  (Yes, I'm annoyed ... my app can't compile on the simulator
without a lot of extra work we have no need for).

If you don't mind compiling for the simulator, you can just use "make
all".  There also is iOS specific install target generated so any
subdirectories must be installed separately, one by one.

End result, for Qt v5.6 I had add the below lines for the PyQt5 install.

+       make -C $(DIR_PYQT5) -j4 iphoneos
+       # Work around QT Bug where iphoneos install targets do not exist
+       #make -C $(DIR_PYQT5) iphoneos-install
+       make -C $(DIR_PYQT5)/Qt                  iphoneos-install
+       make -C $(DIR_PYQT5)/QtCore              iphoneos-install
+       make -C $(DIR_PYQT5)/QtGui               iphoneos-install
+       make -C $(DIR_PYQT5)/QtLocation          iphoneos-install
+       make -C $(DIR_PYQT5)/QtMultimedia        iphoneos-install
+       make -C $(DIR_PYQT5)/QtMultimediaWidgets iphoneos-install
+       make -C $(DIR_PYQT5)/QtNetwork           iphoneos-install
+       make -C $(DIR_PYQT5)/QtSensors           iphoneos-install
+       make -C $(DIR_PYQT5)/QtSql               iphoneos-install
+       make -C $(DIR_PYQT5)/QtSvg               iphoneos-install
+       make -C $(DIR_PYQT5)/QtWidgets           iphoneos-install
+       make -C $(DIR_PYQT5)/QtXml               iphoneos-install
+       make -C $(DIR_PYQT5)/QtXmlPatterns       iphoneos-install
+       make -C $(DIR_PYQT5) install_init_py install_uic_package

And for SIP:

+       make -C $(DIR_SIP) -j4 iphoneos
+       make -C $(DIR_SIP)/siplib iphoneos-install

I'm going to be in traveling from Thailand to Japan tomorrow so I may be
out of touch for a bit, but if you encounter any more problems I'll comment
when I can.

Good Luck!

David

On Fri, May 20, 2016 at 6:10 PM, Robert Kent <rob@gulon.co.uk> wrote:

> For some reason, when I've used pyqtdeploy (1.2.1 and the repo version) to
> build the requisite static packages for iOS, its building them for the
> iPhone simulator (x86_64), rather than for the target (armv7/arm64).
>
> Is this something wrong with my Qt configuration, is so: how do I change
> it?
>
> Thanks, Rob
>
>
> _______________________________________________
> PyQt mailing list    PyQt@riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
>

[Attachment #5 (text/html)]

<div dir="ltr">Rob,<div><br></div><div>This was a change in Qt version 5.6 which I \
find REALLY annoying.   qmake used to put the iOS target first, however they \
deliberately changed this in v5.6 to put the iPhone Simulator first, no option for \
choosing yourself what order you want.   The reasoning was because the &quot;proper \
development cycle&quot; as dictated by Qt is to test in the simulator before testing \
on the target.   (Yes, I&#39;m annoyed ... my app can&#39;t compile on the simulator \
without a lot of extra work we have no need for).</div><div><br></div><div>If you \
don&#39;t mind compiling for the simulator, you can just use &quot;make all&quot;.   \
There also is iOS specific install target generated so any subdirectories must be \
installed separately, one by one.</div><div><br></div><div>End result, for Qt v5.6 I \
had add the below lines for the PyQt5 install.</div><div><br></div><div><div><font \
face="monospace, monospace">+          make -C $(DIR_PYQT5) -j4 \
iphoneos</font></div><div><font face="monospace, monospace">+          # Work around \
QT Bug where iphoneos install targets do not exist</font></div><div><font \
face="monospace, monospace">+          #make -C $(DIR_PYQT5) \
iphoneos-install</font></div><div><font face="monospace, monospace">+          make \
-C $(DIR_PYQT5)/Qt                           iphoneos-install</font></div><div><font \
face="monospace, monospace">+          make -C $(DIR_PYQT5)/QtCore                    \
iphoneos-install</font></div><div><font face="monospace, monospace">+          make \
-C $(DIR_PYQT5)/QtGui                      iphoneos-install</font></div><div><font \
face="monospace, monospace">+          make -C $(DIR_PYQT5)/QtLocation               \
iphoneos-install</font></div><div><font face="monospace, monospace">+          make \
-C $(DIR_PYQT5)/QtMultimedia            iphoneos-install</font></div><div><font \
face="monospace, monospace">+          make -C $(DIR_PYQT5)/QtMultimediaWidgets \
iphoneos-install</font></div><div><font face="monospace, monospace">+          make \
-C $(DIR_PYQT5)/QtNetwork                iphoneos-install</font></div><div><font \
face="monospace, monospace">+          make -C $(DIR_PYQT5)/QtSensors                \
iphoneos-install</font></div><div><font face="monospace, monospace">+          make \
-C $(DIR_PYQT5)/QtSql                      iphoneos-install</font></div><div><font \
face="monospace, monospace">+          make -C $(DIR_PYQT5)/QtSvg                     \
iphoneos-install</font></div><div><font face="monospace, monospace">+          make \
-C $(DIR_PYQT5)/QtWidgets                iphoneos-install</font></div><div><font \
face="monospace, monospace">+          make -C $(DIR_PYQT5)/QtXml                     \
iphoneos-install</font></div><div><font face="monospace, monospace">+          make \
-C $(DIR_PYQT5)/QtXmlPatterns          iphoneos-install</font></div><div><font \
face="monospace, monospace">+          make -C $(DIR_PYQT5) install_init_py \
install_uic_package</font></div></div><div><font face="monospace, \
monospace"><br></font></div><div><font face="monospace, monospace">And for \
SIP:</font></div><div><font face="monospace, \
monospace"><br></font></div><div><div><font face="monospace, monospace">+          \
make -C $(DIR_SIP) -j4 iphoneos</font></div><div><font face="monospace, monospace">+  \
make -C $(DIR_SIP)/siplib \
iphoneos-install</font></div></div><div><br></div><div>I&#39;m going to be in \
traveling from Thailand to Japan tomorrow so I may be out of touch for a bit, but if \
you encounter any more problems I&#39;ll comment when I \
can.</div><div><br></div><div>Good \
Luck!</div><div><br></div><div>David</div><div><br></div><div \
class="gmail_extra"><div class="gmail_quote">On Fri, May 20, 2016 at 6:10 PM, Robert \
Kent <span dir="ltr">&lt;<a href="mailto:rob@gulon.co.uk" \
target="_blank">rob@gulon.co.uk</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div \
style="word-wrap:break-word"><div \
style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">For \
some reason, when I've used pyqtdeploy (1.2.1 and the repo version) to build the \
requisite static packages for iOS, its building them for the iPhone simulator \
(x86_64), rather than for the target (armv7/arm64).</div><div \
style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px"><br></div><div \
style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">Is \
this something wrong with my Qt configuration, is so: how do I change it?</div><div \
style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px"><br></div><div \
style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">Thanks, \
Rob</div><div><div style="font-family:helvetica,arial;font-size:13px"><br></div></div></div><br>_______________________________________________<br>
 PyQt mailing list      <a \
href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br> <a \
href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer" \
target="_blank">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></blockquote></div><br></div></div>



[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic