<html xmlns:v="urn:schemas-microsoft-com:vml" 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=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"MS Gothic";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
@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:"\@MS Gothic";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Trebuchet MS";
        panose-1:2 11 6 3 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:SimSun;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-AU" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Gregor,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Or you can make the following change to the zlib project for All Configurations and All Releases - C/C++ - All Options:</span><span style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333;background:#E0EAF3"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">- Disable Specific Warnings (add to end): ;5045<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">- Whole Program Optimization: No<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Hope that helps.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Andrew<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org>
<b>On Behalf Of </b>bob. chen<br>
<b>Sent:</b> Tuesday, 26 June 2018 1:23 PM<br>
<b>To:</b> FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org><br>
<b>Subject:</b> [Freeswitch-users] </span><span style="font-size:11.0pt;font-family:"MS Gothic"">答复</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">: Freeswitch windows build - libpng<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:ZH-CN">try vs2015 ;)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="ZH-CN" style="font-size:10.0pt;mso-fareast-language:ZH-CN">发件人</span></b><b><span lang="EN-US" style="font-size:10.0pt;mso-fareast-language:ZH-CN">:</span></b><span lang="EN-US" style="font-size:10.0pt;mso-fareast-language:ZH-CN">
 FreeSWITCH-users [<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>]
</span><b><span lang="ZH-CN" style="font-size:10.0pt;mso-fareast-language:ZH-CN">代表
</span></b><span lang="EN-US" style="font-size:10.0pt;mso-fareast-language:ZH-CN">Gregor Nanger<br>
</span><b><span lang="ZH-CN" style="font-size:10.0pt;mso-fareast-language:ZH-CN">发送时间</span></b><b><span lang="EN-US" style="font-size:10.0pt;mso-fareast-language:ZH-CN">:</span></b><span lang="EN-US" style="font-size:10.0pt;mso-fareast-language:ZH-CN"> 2018</span><span lang="ZH-CN" style="font-size:10.0pt;mso-fareast-language:ZH-CN">年</span><span lang="EN-US" style="font-size:10.0pt;mso-fareast-language:ZH-CN">6</span><span lang="ZH-CN" style="font-size:10.0pt;mso-fareast-language:ZH-CN">月</span><span lang="EN-US" style="font-size:10.0pt;mso-fareast-language:ZH-CN">23</span><span lang="ZH-CN" style="font-size:10.0pt;mso-fareast-language:ZH-CN">日</span><span lang="EN-US" style="font-size:10.0pt;mso-fareast-language:ZH-CN">
 19:08<br>
</span><b><span lang="ZH-CN" style="font-size:10.0pt;mso-fareast-language:ZH-CN">收件人</span></b><b><span lang="EN-US" style="font-size:10.0pt;mso-fareast-language:ZH-CN">:</span></b><span lang="EN-US" style="font-size:10.0pt;mso-fareast-language:ZH-CN"> FreeSWITCH
 Users Help<br>
</span><b><span lang="ZH-CN" style="font-size:10.0pt;mso-fareast-language:ZH-CN">主题</span></b><b><span lang="EN-US" style="font-size:10.0pt;mso-fareast-language:ZH-CN">:</span></b><span lang="EN-US" style="font-size:10.0pt;mso-fareast-language:ZH-CN"> [Freeswitch-users]
 Freeswitch windows build - libpng<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">Hi!<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">After a year I wanted to build FS on windows and make video tutorial or for FS wiki.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">I am using latest VS2017 and everything builds except libpng project. Below is error if someone can help me, because I don't have c++ experience:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">1>------ Build started: Project: Download zlib, Configuration: Release Win32 ------<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">1>Downloading zlib.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>------ Build started: Project: libpng, Configuration: Release x64 ------<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>Generating pnglibconf.h<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>        1 file(s) copied.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>png.c<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>pngerror.c<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>pngget.c<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>pngmem.c<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>pngpread.c<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>pngread.c<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>pngrio.c<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>pngrtran.c<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>pngrutil.c<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>pngset.c<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>pngtrans.c<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>pngwio.c<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>pngwrite.c<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>pngwtran.c<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>pngwutil.c<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>Generating Code...<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>zlib.lib(inflate.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve
 linker performance<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>   Creating library D:\Git\freeswitch\x64\Release\libpng16.lib and object D:\Git\freeswitch\x64\Release\libpng16.exp<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>Generating code<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>d:\git\freeswitch\libs\zlib\deflate.c(2097): error C2220: warning treated as error - no 'executable' file generated<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>d:\git\freeswitch\libs\zlib\deflate.c(2097): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>d:\git\freeswitch\libs\zlib\deflate.c(2097) : note: index 'dist' range checked by comparison on this line<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>d:\git\freeswitch\libs\zlib\deflate.c(2097) : note: feeds memory load on this line<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>d:\git\freeswitch\libs\zlib\deflate.c(1987): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>d:\git\freeswitch\libs\zlib\deflate.c(1987) : note: index 'dist' range checked by comparison on this line<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>d:\git\freeswitch\libs\zlib\deflate.c(1987) : note: feeds memory load on this line<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>d:\git\freeswitch\libs\zlib\deflate.c(1862): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>d:\git\freeswitch\libs\zlib\deflate.c(1862) : note: index 'dist' range checked by comparison on this line<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>d:\git\freeswitch\libs\zlib\deflate.c(1862) : note: feeds memory load on this line<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>LINK : fatal error LNK1257: code generation failed<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">2>Done building project "libpng.vcxproj" -- FAILED.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Trebuchet MS",sans-serif;mso-fareast-language:ZH-CN">Best regards, Gregor<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:ZH-CN"><img border="0" width="1" height="1" style="width:.0104in;height:.0104in" id="_x0000_i1029" src="https://mltrk.io/pixel/Tc2KJVlKyuqZzoqBLBt4?rid=Tc2KJVlKyuqZzoqBLBt4"><o:p></o:p></span></p>
</div>
</div>
</body>
</html>