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

List:       pykde
Subject:    Re: [PyQt] PyQtDeploy: Supported development hosts for Android
From:       "Zhao Lee" <redstone-cold () 163 ! com>
Date:       2019-09-16 1:41:00
Message-ID: 658ef85a.34b1.16d37baee23.Coremail.redstone-cold () 163 ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]

[Attachment #4 (text/plain)]

You could also search with the keyword Qt, that is to google  "Qt fatal error: \
'type_traits' file not found", I found some threads said it was NDK that caused the \
problem, but I am not sure if it is true,  maybe you could give it a try!  No matter \
whether you solved the problem in the end, drop me a line, I am really interested in \
whether it is viable to develop Android APP with PyQt.





At 2019-09-15 06:07:12, "Safa Alfulaij" <safa1996alfulaij@gmail.com> wrote:

I tried googling
Most of comments are about building with c++11. I added a config setting in .pro \
files but it didn't work. I think it's thinking its gcc while its clang, somehow.


I'll keep looking and hopefully I get something working.


Thank!


On Sat, Sep 14, 2019, 4:38 AM Zhao Lee <redstone-cold@163.com> wrote:

Have you googled "fatal error: 'type_traits' file not found" to find solutions ? 






在 2019-09-12 21:44:01,"Safa Alfulaij" <safa1996alfulaij@gmail.com> 写道:

Thanks :)
Well, maybe once I gain the needed knowledge :)


Now I tried it on my ArchLinux. Using NDK r19c, SDK 22&26, Qt 5.12.2, PyQt5.12.1.
I'm getting
/home/safa/Android/Ndk/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ \
-c -D__ANDROID_API__=26 -target aarch64-none-linux-android -gcc-toolchain \
/home/safa/Android/Ndk/android-ndk-r19c/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64 \
-fno-limit-debug-info -DANDROID_HAS_WSTRING \
--sysroot=/home/safa/Android/Ndk/android-ndk-r19c/sysroot -isystem \
/home/safa/Android/Ndk/android-ndk-r19c/sysroot/usr/include/aarch64-linux-android \
-isystem /home/safa/Android/Ndk/android-ndk-r19c/sources/cxx-stl/llvm-libc++/include \
-isystem /home/safa/Android/Ndk/android-ndk-r19c/sources/android/support/include \
-isystem /home/safa/Android/Ndk/android-ndk-r19c/sources/cxx-stl/llvm-libc++abi/include \
-fstack-protector-strong -DANDROID -O2 -O2 -fPIC -fvisibility=hidden \
-fvisibility-inlines-hidden -fno-exceptions -Wall -W -D_REENTRANT \
-DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DPy_LIMITED_API=0x03040000 \
-DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I. -I../../../include/python3.7 \
-I../qpy/QtCore -I/home/safa/Qt5.12.2/5.12.2/android_arm64_v8a/include \
-I/home/safa/Qt5.12.2/5.12.2/android_arm64_v8a/include/QtCore -I. \
-I/home/safa/Qt5.12.2/5.12.2/android_arm64_v8a/mkspecs/android-clang -o \
qpycore_post_init.o qpycore_post_init.cpp In file included from \
qpycore_post_init.cpp:23: In file included from \
/home/safa/Qt5.12.2/5.12.2/android_arm64_v8a/include/QtCore/QMutex:1: In file \
included from /home/safa/Qt5.12.2/5.12.2/android_arm64_v8a/include/QtCore/qmutex.h:43:
                
/home/safa/Qt5.12.2/5.12.2/android_arm64_v8a/include/QtCore/qglobal.h:45:12: fatal \
error: 'type_traits' file not found #  include <type_traits>
           ^~~~~~~~~~~~~
1 error generated.
make[1]: *** [Makefile:1027: qpycore_post_init.o] Error 1
make[1]: Leaving directory \
'/home/safa/0000-PyQt_Andoird/pyqtdeploy-2.4/demo/sysroot-android-64/build/PyQt5_gpl-5.12.1/QtCore'
                
make: *** [Makefile:53: sub-QtCore-make_first-ordered] Error 2
pyqtdeploy-sysroot: Execution failed: returned exit code 2
[safa@archlinux demo]$

I'm pretty sure that this is about gcc/clang/c++17, but I'm using the proper \
versions, I suppose.


Thanks.


‫في الخميس، 12 سبتمبر 2019 في 10:35 ص تمت كتابة ما \
يلي بواسطة ‪Phil Thompson‬‏ <‪phil@riverbankcomputing.com‬‏>:‬

On 12/09/2019 09:25, Safa Alfulaij wrote:
> Hi all,
> I'm trying to follow the documentation of pyqtdeploy to build the demo
> on
> my Android device.
> I'm now stuch where I get:
> 
> D:\0000-pyQt_Android\pyqtdeploy-2.4\demo>python build-demo.py
> --target=android-64 --source-dir="D:\0000-pyQt_Android\libraries"
> --installed-qt-dir="C:\QtOld\5.12.3"
> pyqtdeploy-sysroot: win-64 is not a supported android-64 development
> host
> Is it that I have to use my Linux distro to build for Android? Or am I
> doing something wrong?
> Using Windows 10-64bit

You have to use Linux or macOS as the host. Using Windows as a host
shouldn't require too many changes, so patches welcome...

Phil






 


[Attachment #5 (text/html)]

<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>You \
could also search with the keyword <b>Qt</b>, that is to google&nbsp; "<b>Qt</b> \
fatal error: 'type_traits' file not found", I found some threads said it was NDK that \
caused the problem, but I am not sure if it is true,&nbsp; maybe you could give it a \
try!&nbsp;</div><div>No matter whether you solved the problem in the end, drop me a \
line, I am really interested in whether it is viable to develop Android APP with \
PyQt.</div><br><br><br><div style="position:relative;zoom:1"></div><div \
id="divNeteaseMailCard"></div><br>At 2019-09-15 06:07:12, "Safa Alfulaij" \
&lt;safa1996alfulaij@gmail.com&gt; wrote:<br> <blockquote id="isReplyContent" \
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px \
solid"><div dir="auto">I tried googling<div dir="auto">Most of comments are about \
building with c++11. I added a config setting in .pro files but it didn't work. I \
think it's thinking its gcc while its clang, somehow.</div><div \
dir="auto"><br></div><div dir="auto">I'll keep&nbsp;looking and hopefully I get \
something working.</div><div dir="auto"><br></div><div \
dir="auto">Thank!</div></div><br><div class="gmail_quote"><div dir="ltr" \
class="gmail_attr">On Sat, Sep 14, 2019, 4:38 AM Zhao Lee &lt;<a \
href="mailto:redstone-cold@163.com">redstone-cold@163.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div \
style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">Have you \
googled "<span style="font-family:arial;white-space:pre-wrap">fatal error: \
'type_traits' file not found</span>" to find solutions \
?&nbsp;<br><br><br><br><br><div style="zoom:1"></div><div \
id="m_-4339474633907573200divNeteaseMailCard"></div><br>在 2019-09-12 \
21:44:01,"Safa Alfulaij" &lt;<a href="mailto:safa1996alfulaij@gmail.com" \
target="_blank" rel="noreferrer">safa1996alfulaij@gmail.com</a>&gt; 写道:<br> \
<blockquote id="m_-4339474633907573200isReplyContent" \
style="PADDING-LEFT:1ex;MARGIN:0px 0px 0px 0.8ex;BORDER-LEFT:#ccc 1px solid"><div \
dir="rtl"><div dir="rtl"><div dir="ltr"><font face="arial, sans-serif">Thanks \
:)<br>Well, maybe once I gain the needed knowledge :)</font></div><div \
dir="ltr"><font face="arial, sans-serif"><br></font></div><div dir="ltr"><font \
face="arial, sans-serif">Now I tried it on my ArchLinux. Using NDK&nbsp;r19c, SDK \
22&amp;26, Qt 5.12.2, PyQt5.12.1.<br>I'm getting</font></div><div dir="ltr"><font \
face="monospace">/home/safa/Android/Ndk/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ \
-c -D__ANDROID_API__=26 -target aarch64-none-linux-android -gcc-toolchain \
/home/safa/Android/Ndk/android-ndk-r19c/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64 \
-fno-limit-debug-info -DANDROID_HAS_WSTRING \
--sysroot=/home/safa/Android/Ndk/android-ndk-r19c/sysroot -isystem \
/home/safa/Android/Ndk/android-ndk-r19c/sysroot/usr/include/aarch64-linux-android \
-isystem /home/safa/Android/Ndk/android-ndk-r19c/sources/cxx-stl/llvm-libc++/include \
-isystem /home/safa/Android/Ndk/android-ndk-r19c/sources/android/support/include \
-isystem /home/safa/Android/Ndk/android-ndk-r19c/sources/cxx-stl/llvm-libc++abi/include \
-fstack-protector-strong -DANDROID -O2 -O2 -fPIC -fvisibility=hidden \
-fvisibility-inlines-hidden -fno-exceptions -Wall -W -D_REENTRANT \
-DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DPy_LIMITED_API=0x03040000 \
-DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I. -I../../../include/python3.7 \
-I../qpy/QtCore -I/home/safa/Qt5.12.2/5.12.2/android_arm64_v8a/include \
-I/home/safa/Qt5.12.2/5.12.2/android_arm64_v8a/include/QtCore -I. \
-I/home/safa/Qt5.12.2/5.12.2/android_arm64_v8a/mkspecs/android-clang -o \
qpycore_post_init.o qpycore_post_init.cpp<br>In file included from \
qpycore_post_init.cpp:23:<br>In file included from \
/home/safa/Qt5.12.2/5.12.2/android_arm64_v8a/include/QtCore/QMutex:1:<br>In file \
included from /home/safa/Qt5.12.2/5.12.2/android_arm64_v8a/include/QtCore/qmutex.h:43:<br>/home/safa/Qt5.12.2/5.12.2/android_arm64_v8a/include/QtCore/qglobal.h:45:12: \
fatal error: 'type_traits' file not found<br># &nbsp;include \
&lt;type_traits&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~~~~~~~<br>1 \
error generated.<br>make[1]: *** [Makefile:1027: qpycore_post_init.o] Error \
1<br>make[1]: Leaving directory \
'/home/safa/0000-PyQt_Andoird/pyqtdeploy-2.4/demo/sysroot-android-64/build/PyQt5_gpl-5.12.1/QtCore'<br>make: \
*** [Makefile:53: sub-QtCore-make_first-ordered] Error 2<br>pyqtdeploy-sysroot: \
Execution failed: returned exit code 2<br>[safa@archlinux demo]$<br></font></div><div \
dir="ltr"><div>I'm pretty sure that this is about gcc/clang/c++17, but I'm using the \
proper versions, I suppose.</div><div><br></div><div>Thanks.</div><div \
dir="ltr"></div></div></div><br><div class="gmail_quote"><div dir="rtl" \
class="gmail_attr">‫في الخميس، 12 سبتمبر 2019 في 10:35 ص تمت \
كتابة ما يلي بواسطة ‪Phil Thompson‬‏ &lt;‪<a \
href="mailto:phil@riverbankcomputing.com" target="_blank" \
rel="noreferrer">phil@riverbankcomputing.com</a>‬‏&gt;:‬<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">On 12/09/2019 09:25, Safa Alfulaij wrote:<br> &gt; \
Hi all,<br> &gt; I'm trying to follow the documentation of pyqtdeploy to build the \
demo <br> &gt; on<br>
&gt; my Android device.<br>
&gt; I'm now stuch where I get:<br>
&gt; <br>
&gt; D:\0000-pyQt_Android\pyqtdeploy-2.4\demo&gt;python build-demo.py<br>
&gt; --target=android-64 --source-dir="D:\0000-pyQt_Android\libraries"<br>
&gt; --installed-qt-dir="C:\QtOld\5.12.3"<br>
&gt; pyqtdeploy-sysroot: win-64 is not a supported android-64 development <br>
&gt; host<br>
&gt; Is it that I have to use my Linux distro to build for Android? Or am I<br>
&gt; doing something wrong?<br>
&gt; Using Windows 10-64bit<br>
<br>
You have to use Linux or macOS as the host. Using Windows as a host <br>
shouldn't require too many changes, so patches welcome...<br>
<br>
Phil<br>
<br>
</blockquote></div></div>
</blockquote></div><br><br><span \
title="neteasefooter"><p>&nbsp;</p></span></blockquote></div> \
</blockquote></div><br><br><span title="neteasefooter"><p>&nbsp;</p></span>


[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