I managed to build successfully with latest Vs2017 version. Latest master built without problem, but 1.6.20, I had to do some manual changes in configuration. I am planning to prepare video tutorial.
Gregor,
Or you can make the following change to the zlib project for All Configurations and All Releases - C/C++ - All Options:
- Disable Specific Warnings (add to end): ;5045
- Whole Program Optimization: No
Hope that helps.
Andrew
From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> On Behalf Of bob. chen
Sent: Tuesday, 26 June 2018 1:23 PM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Subject: [Freeswitch-users] 答复: Freeswitch windows build - libpng_________________________________________________________________________
try vs2015 ;)
发件人: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org] 代表 Gregor Nanger
发送时间: 2018年6月23日 19:08
收件人: FreeSWITCH Users Help
主题: [Freeswitch-users] Freeswitch windows build - libpng
Hi!
After a year I wanted to build FS on windows and make video tutorial or for FS wiki.
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:
1>------ Build started: Project: Download zlib, Configuration: Release Win32 ------
1>Downloading zlib.
2>------ Build started: Project: libpng, Configuration: Release x64 ------
2>Generating pnglibconf.h
2> 1 file(s) copied.
2>png.c
2>pngerror.c
2>pngget.c
2>pngmem.c
2>pngpread.c
2>pngread.c
2>pngrio.c
2>pngrtran.c
2>pngrutil.c
2>pngset.c
2>pngtrans.c
2>pngwio.c
2>pngwrite.c
2>pngwtran.c
2>pngwutil.c
2>Generating Code...
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
2> Creating library D:\Git\freeswitch\x64\Release\libpng16.lib and object D:\Git\freeswitch\x64\Release\libpng16.exp
2>Generating code
2>d:\git\freeswitch\libs\zlib\deflate.c(2097): error C2220: warning treated as error - no 'executable' file generated
2>d:\git\freeswitch\libs\zlib\deflate.c(2097): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified
2>d:\git\freeswitch\libs\zlib\deflate.c(2097) : note: index 'dist' range checked by comparison on this line
2>d:\git\freeswitch\libs\zlib\deflate.c(2097) : note: feeds memory load on this line
2>d:\git\freeswitch\libs\zlib\deflate.c(1987): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified
2>d:\git\freeswitch\libs\zlib\deflate.c(1987) : note: index 'dist' range checked by comparison on this line
2>d:\git\freeswitch\libs\zlib\deflate.c(1987) : note: feeds memory load on this line
2>d:\git\freeswitch\libs\zlib\deflate.c(1862): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified
2>d:\git\freeswitch\libs\zlib\deflate.c(1862) : note: index 'dist' range checked by comparison on this line
2>d:\git\freeswitch\libs\zlib\deflate.c(1862) : note: feeds memory load on this line
2>LINK : fatal error LNK1257: code generation failed
2>Done building project "libpng.vcxproj" -- FAILED.
Best regards, Gregor
Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com
Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
| Gregor Nanger | CTO t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia • www.infomedia.si |