<div dir="ltr"><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">Hi!</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">After a year I wanted to build FS on windows and make video tutorial or for FS wiki.</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">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:</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><div class="gmail_default">1>------ Build started: Project: Download zlib, Configuration: Release Win32 ------</div><div class="gmail_default">1>Downloading zlib.</div><div class="gmail_default">2>------ Build started: Project: libpng, Configuration: Release x64 ------</div><div class="gmail_default">2>Generating pnglibconf.h</div><div class="gmail_default">2> 1 file(s) copied.</div><div class="gmail_default">2>png.c</div><div class="gmail_default">2>pngerror.c</div><div class="gmail_default">2>pngget.c</div><div class="gmail_default">2>pngmem.c</div><div class="gmail_default">2>pngpread.c</div><div class="gmail_default">2>pngread.c</div><div class="gmail_default">2>pngrio.c</div><div class="gmail_default">2>pngrtran.c</div><div class="gmail_default">2>pngrutil.c</div><div class="gmail_default">2>pngset.c</div><div class="gmail_default">2>pngtrans.c</div><div class="gmail_default">2>pngwio.c</div><div class="gmail_default">2>pngwrite.c</div><div class="gmail_default">2>pngwtran.c</div><div class="gmail_default">2>pngwutil.c</div><div class="gmail_default">2>Generating Code...</div><div class="gmail_default">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</div><div class="gmail_default">2> Creating library D:\Git\freeswitch\x64\Release\libpng16.lib and object D:\Git\freeswitch\x64\Release\libpng16.exp</div><div class="gmail_default">2>Generating code</div><div class="gmail_default">2>d:\git\freeswitch\libs\zlib\deflate.c(2097): error C2220: warning treated as error - no 'executable' file generated</div><div class="gmail_default">2>d:\git\freeswitch\libs\zlib\deflate.c(2097): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified</div><div class="gmail_default">2>d:\git\freeswitch\libs\zlib\deflate.c(2097) : note: index 'dist' range checked by comparison on this line</div><div class="gmail_default">2>d:\git\freeswitch\libs\zlib\deflate.c(2097) : note: feeds memory load on this line</div><div class="gmail_default">2>d:\git\freeswitch\libs\zlib\deflate.c(1987): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified</div><div class="gmail_default">2>d:\git\freeswitch\libs\zlib\deflate.c(1987) : note: index 'dist' range checked by comparison on this line</div><div class="gmail_default">2>d:\git\freeswitch\libs\zlib\deflate.c(1987) : note: feeds memory load on this line</div><div class="gmail_default">2>d:\git\freeswitch\libs\zlib\deflate.c(1862): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified</div><div class="gmail_default">2>d:\git\freeswitch\libs\zlib\deflate.c(1862) : note: index 'dist' range checked by comparison on this line</div><div class="gmail_default">2>d:\git\freeswitch\libs\zlib\deflate.c(1862) : note: feeds memory load on this line</div><div class="gmail_default">2>LINK : fatal error LNK1257: code generation failed</div><div class="gmail_default">2>Done building project "libpng.vcxproj" -- FAILED.</div><div class="gmail_default"><br></div><div class="gmail_default">Best regards, Gregor<br></div></div><div class="gmail_signature"></div>
<img src="https://mltrk.io/pixel/Tc2KJVlKyuqZzoqBLBt4?rid=Tc2KJVlKyuqZzoqBLBt4" width="1" height="1" border="0"></div>