<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Menlo;
panose-1:2 11 6 9 3 8 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
p.p1, li.p1, div.p1
{mso-style-name:p1;
margin:0in;
font-size:8.5pt;
font-family:Menlo;
color:black;}
span.s1
{mso-style-name:s1;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi, <o:p></o:p></p>
<p class="MsoNormal">I was able to make a build for mac OS. But struggling to make one for Android.
<o:p></o:p></p>
<p class="MsoNormal">This the bash script:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">export ANDROID_NDK_ROOT=/Users/XXX/testPyQt/Android/sdk/android-ndk-r21e<o:p></o:p></p>
<p class="MsoNormal">export ANDROID_NDK_PLATFORM=android-28<o:p></o:p></p>
<p class="MsoNormal">export ANDROID_SDK_ROOT=/Users/XXX/testPyQt/Android/sdk<o:p></o:p></p>
<p class="MsoNormal">python build-demo.py --target android-64 --qmake /Users/XXXX/Qt5_15/5.15.1/android/bin<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="p1"><span class="s1">(env) xxx2:demo XXX$</span><span class="apple-converted-space">
</span><span class="s1">sh bash_build.sh</span><o:p></o:p></p>
<p class="p1"><span class="s1">Verifying host architecture 'macos-64'...</span><o:p></o:p></p>
<p class="p1"><span class="s1">Verifying target architecture 'android-64'...</span><o:p></o:p></p>
<p class="p1"><span class="s1">Verifying OpenSSL v1.1.1g...</span><o:p></o:p></p>
<p class="p1"><span class="s1">Verifying Python v3.7.8...</span><o:p></o:p></p>
<p class="p1"><span class="s1">Verifying PyQt v5.15.0...</span><o:p></o:p></p>
<p class="p1"><span class="s1">Verifying PyQt3D v5.15.0...</span><o:p></o:p></p>
<p class="p1"><span class="s1">Verifying PyQtChart v5.15.0...</span><o:p></o:p></p>
<p class="p1"><span class="s1">Verifying PyQtDataVisualization v5.15.0...</span><o:p></o:p></p>
<p class="p1"><span class="s1">Verifying PyQtPurchasing v5.15.0...</span><o:p></o:p></p>
<p class="p1"><span class="s1">Verifying QScintilla v2.11.5...</span><o:p></o:p></p>
<p class="p1"><span class="s1">Verifying Qt v5.15.0...</span><o:p></o:p></p>
<p class="p1"><span class="s1">pyqtdeploy-sysroot: execution of '/Users/XXX/Qt5_15/5.15.1/android/bin' failed: [Errno 13] Permission denied: '/Users/xxx/Qt5_15/5.15.1/android/bin</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The folders all have the permission. It is not working even with sudo<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Let me know how I can resolve the issue??<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Suman Chatterjee <sumanchatterjee@esri.com><br>
<b>Date: </b>Friday, March 19, 2021 at 3:15 PM<br>
<b>To: </b>pyqt@riverbankcomputing.com <pyqt@riverbankcomputing.com><br>
<b>Subject: </b>FW: cannot make the python build-demo.py work<o:p></o:p></span></p>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Suman Chatterjee <sumanchatterjee@esri.com> <br>
<b>Sent:</b> Friday, March 19, 2021 3:14 PM<br>
<b>To:</b> Phil Thompson <phil@riverbankcomputing.com><br>
<b>Subject:</b> Re: cannot make the python build-demo.py work<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Thank You so much for the info!! I was able to progress a little from that point after installing python outside the environment.<o:p></o:p></p>
<p class="MsoNormal">But now I am stuck at <o:p></o:p></p>
<p class="MsoNormal">(pyqtenv) C:\Users\xxx\Documents\pyqtdemo\pyqtdeploy-3.1.1\demo>python build-demo.py<o:p></o:p></p>
<p class="MsoNormal">Verifying host architecture 'win-64'...<o:p></o:p></p>
<p class="MsoNormal">Verifying target architecture 'win-64'...<o:p></o:p></p>
<p class="MsoNormal">Verifying OpenSSL v1.1.1g...<o:p></o:p></p>
<p class="MsoNormal">Verifying Python v3.7.8...<o:p></o:p></p>
<p class="MsoNormal">Verifying PyQt v5.15.0...<o:p></o:p></p>
<p class="MsoNormal">Verifying PyQt3D v5.15.0...<o:p></o:p></p>
<p class="MsoNormal">Verifying PyQtChart v5.15.0...<o:p></o:p></p>
<p class="MsoNormal">Verifying PyQtDataVisualization v5.15.0...<o:p></o:p></p>
<p class="MsoNormal">Verifying PyQtPurchasing v5.15.0...<o:p></o:p></p>
<p class="MsoNormal">Verifying QScintilla v2.11.5...<o:p></o:p></p>
<p class="MsoNormal">Verifying Qt v5.15.0...<o:p></o:p></p>
<p class="MsoNormal">Verifying SIP v12.8.1...<o:p></o:p></p>
<p class="MsoNormal">Verifying zlib v1.2.11...<o:p></o:p></p>
<p class="MsoNormal">OpenSSL: installing component...<o:p></o:p></p>
<p class="MsoNormal">zlib: installing component...<o:p></o:p></p>
<p class="MsoNormal">Qt: installing component...<o:p></o:p></p>
<p class="MsoNormal">pyqtdeploy-sysroot: Qt: unable to unpack qt-everywhere-src-5.15.0.tar.xz.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I am able to unpack it manually though. Is there any configuration that I can change to point to the unpacked folder<o:p></o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Phil Thompson <<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>><br>
<b>Date: </b>Friday, March 19, 2021 at 3:08 PM<br>
<b>To: </b>Suman Chatterjee <<a href="mailto:sumanchatterjee@esri.com">sumanchatterjee@esri.com</a>><br>
<b>Cc: </b><a href="mailto:pyqt@riverbankcomputing.com">pyqt@riverbankcomputing.com</a> <<a href="mailto:pyqt@riverbankcomputing.com">pyqt@riverbankcomputing.com</a>><br>
<b>Subject: </b>Re: cannot make the python build-demo.py work</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">On 19/03/2021 18:58, Suman Chatterjee wrote:<br>
> I am trying to explore if I can at all make an Android build using<br>
> PyQtDeploy for a PyQt project. But I do not seem to get it working.<br>
> Here are the steps I did in my Windows machine :<br>
> <br>
> <br>
> 1. Installed Qt 5.15.0<br>
> 2. Create a new Python environment using Conda and activated the <br>
> environment<br>
> 3. Installed python version 3.7.2<br>
> 4. Installed PyQtDeploy 3.1.1<br>
> 5. Installed Perl and added to path<br>
> 6. Installed Visual Studio 2019<br>
> 7. Downloaded and extracted the demo files for PyQtDeploy<br>
> <br>
> Then when I run<br>
> <br>
> Python build-demo.py I get the following<br>
> <br>
> (pyqtenv)<br>
> C:\Users\sumXXX\Documents\pyqtdemo\pyqtdeploy-3.1.1\demo>python<br>
> build-demo.py<br>
> Verifying host architecture 'win-32'...<br>
> Verifying target architecture 'win-32'...<br>
> Verifying OpenSSL v1.1.1g...<br>
> Verifying Python v3.7.8...<br>
> pyqtdeploy-sysroot: Python: unable to find an installation of Python <br>
> v3.7-32.<br>
> <br>
> What I am missing. I tried installing different Python versions but<br>
> nothing works....<br>
> <br>
> Can anyone guide me in what to do to resolve the error<br>
<br>
The demo will default to building 32 bits if your MSVC is not configured <br>
(vcvars.bat).<br>
<br>
I should also warn you that I've never used Windows as an Android build <br>
host.<br>
<br>
Phil<o:p></o:p></p>
</div>
</div>
</body>
</html>