<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Resending this as the previous mail was rejected as I had not subscribed to the mailing list.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks,</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Vasundhara</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Vasundhara Pant<br>
<b>Sent:</b> Friday, May 24, 2024 4:33 PM<br>
<b>To:</b> BRLTTY@brltty.app <BRLTTY@brltty.app><br>
<b>Cc:</b> Shivaramkrishna Ramalaxmaiah Tirumala <Shivaramkrishna.Tirumala@microsoft.com><br>
<b>Subject:</b> Issues while building BrailleTTY on Windows</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div class="x_elementToProof" style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi team.</div>
<div class="x_elementToProof" style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I am Vasundhara, a software developer at Microsoft working on Narrator team. We use the BrailleTTY Open source code in Narrator to interact with Braille devices. Currently, we are trying to migrate our build process to Onebranch (Azure DevOps build system for
 Windows components). For that, we have to build the BrailleTTY code using msys1 (as that is what it currently supports). </div>
<div class="x_elementToProof" style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I was trying out the local build of BrailleTTY to understand the entire process and faced issues in the mkwin script. The steps I followed were:</div>
<div class="x_elementToProof" style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<ol start="1" data-editing-info="{"orderedStyleType":3,"unorderedStyleType":1}" data-listchain="__List_Chain_189" style="margin-top:0px; margin-bottom:0px">
<li style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); list-style-type:"1) "">
<div class="x_elementToProof" style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
 Install <b>MINGW</b> having latest <b>GCC 9.2.0</b>.</div>
</li><li style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); list-style-type:"2) "">
<div class="x_elementToProof" style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Install <b>Python</b> version<b> 3.4</b> at the default location, (Note:It should be a version older than 3.5, problem here (<span style="background-color:rgb(255,255,255)"><a href="https://github.com/statsmodels/statsmodels/issues/2751" id="OWA526020ba-7b0d-4bbc-a03e-5eff05ad16f7" class="x_OWAAutoLink" shash="FjzplyMVTB0d9ahOiaObuWgaCg3UTfgVavyno69lBfs6X1a+ydBa4yFhGtD73psh5pFhgoJ3S+AvxLxxmyifzfjUdTkgiBKpqQ9uZfDJOv9odmkWL9ReKOcwsHj38s6Ci5bxXQJ/BWPCZbQdYIvTo/9hUqtoIM6pORWAifbj+GE=" originalsrc="https://github.com/statsmodels/statsmodels/issues/2751" data-auth="VerificationFailed" data-linkindex="1" style="margin:0px; background-color:rgb(255,255,255); text-align:left">Building
 on Windows 10 using mingw32 · Issue #2751 · statsmodels/statsmodels · GitHub</a></span>)). I have used Python 3.4.4 Windows x86 MSI installer to install python.</div>
</li><li style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); list-style-type:"3) "">
<div class="x_elementToProof" style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Checkout the brltty via git clone from here (<span style="background-color:rgb(255,255,255)"><a href="https://github.com/brltty/brltty.git" id="OWAcf57b10e-d874-def1-5ded-e21b37204a5d" class="x_OWAAutoLink" shash="xy+j6F8GjtzO6pHditTTVVayrwacFiPb3wog2ROTeFWmaS8Di6GvAFiONAIgkSdPm2WWT8QQsKp2SkGhfu8BZe8LQexWwqu+jJSNn6It155Afh+n816zqr2EcUBLVYiLoGJS4Ur4CLCsW/tb9gekmKYp42st+az8RpjQtoo/YJA=" originalsrc="https://github.com/brltty/brltty.git" data-auth="VerificationFailed" data-linkindex="2" style="margin:0px; background-color:rgb(255,255,255); text-align:left">https://github.com/brltty/brltty.git</a></span>)</div>
</li><li style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); list-style-type:"4) "">
<div class="x_elementToProof" style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Run <b>msys </b>(Windows batch file) in admin mode from the location C:\MinGW\msys\1.0.</div>
</li><li style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); list-style-type:"5) "">
<div class="x_elementToProof" style="text-align:left; text-indent:0px; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
 Go to Windows directory in brltty (./brltty/Windows)</div>
</li><li style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); list-style-type:"6) "">
<div class="x_elementToProof" style="text-align:left; text-indent:0px; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Run<b> ./winSetup </b>from Windows Directory</div>
</li><li style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); list-style-type:"7) "">
<div class="x_elementToProof" style="text-align:left; text-indent:0px; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
cd ..</div>
</li><li style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); list-style-type:"8) "">
<div class="x_elementToProof" style="text-align:left; text-indent:0px; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Run<b> ./autogen</b> in the main root directory of the checked out code (brltty)</div>
</li><li style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); list-style-type:"9) "">
<div class="x_elementToProof" style="text-align:left; text-indent:0px; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Again go back to Windows directory. (brltty/Windows)</div>
</li><li style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); list-style-type:"10) "">
<div class="x_elementToProof" style="text-align:left; text-indent:0px; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<b>mkwin<i> -u libusb-1.0 -P /C/Python34 ..</i></b></div>
</li></ol>
<div class="x_elementToProof" style="text-align:left; text-indent:0px; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<b><i><br>
</i></b></div>
<div class="x_elementToProof" style="text-align:left; text-indent:0px; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
In the last step, while running mkwin, I'm getting the following output:</div>
<div class="x_elementToProof" style="text-align:left; text-indent:0px; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span><img size="78413" style="max-width:594px" data-outlook-trace="F:2|T:2" src="cid:b39fb307-a6c4-489d-9c17-27c67d994f9d"></span></div>
<div class="x_elementToProof" style="text-align:left; text-indent:0px; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="text-align:left; text-indent:0px; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
which has the warnings:</div>
<div class="x_elementToProof" style="text-align:left; text-indent:0px; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
brlapi.auto.c: In function '__Pyx_ImportType_3_0_10':</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
brlapi.auto.c:33110:13: warning: unknown conversion type character 'z' in format [-Wformat=]</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
33110 |             "%s.%s size changed, may indicate binary incompatibility. "</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
brlapi.auto.c:33111:24: note: format string is defined here</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
33111 |             "Expected %zd from C header, got %zd from PyObject",</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
      |                        ^</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
brlapi.auto.c:33110:13: warning: unknown conversion type character 'z' in format [-Wformat=]</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
33110 |             "%s.%s size changed, may indicate binary incompatibility. "</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
brlapi.auto.c:33111:47: note: format string is defined here</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
33111 |             "Expected %zd from C header, got %zd from PyObject",</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
      |                                               ^</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
brlapi.auto.c:33110:13: warning: too many arguments for format [-Wformat-extra-args]</div>
<div class="x_elementToProof" style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
33110 |             "%s.%s size changed, may indicate binary incompatibility. "<br>
<br>
<br>
</div>
<div class="x_elementToProof" style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I checked the location <b>C:\Users\<username>\AppData\Local\Temp </b>but could not find any
<b>brltty-mkwin </b>folder generated there. Can you please help me understand these warnings and point out if I'm doing anything wrong in the process? It'll be really helpful for us.</div>
<div class="x_elementToProof" style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thanks & Regards,</div>
<div class="x_elementToProof" style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Vasundhara Pant</div>
</div>
</body>
</html>