[Freeswitch-users] 答复: Freeswitch windows build - libpng

Gregor Nanger gregor at infomedia.si
Thu Jul 12 06:21:13 UTC 2018


For latest 1.9 I used last SDK that is installed with latest version of VS.
For 1.6 I had to change for project libx264 to 8.1 SDK, otherwise there
were build errors.

If you get a lot of errors upon build like file not found, there is a
chance that vbs script, responsible for downloading files project files,
has errors because MSXML object doesn't have permisions to access internet
and you need enable it in Internet Options of Internet Explorer. Guess this
came with latest Win 10 updates and MS strenghting security and disabling
outdated functionalities.

Good luck.

2018-07-09 21:36 GMT+02:00 Bipin Patel <bipin at xbipin.com>:

> I'll try it tomorrow, thanks for the info. What platform sdk version did
> you use, was it the old one mentioned in the wiki or a newer platform sdk?
>
>
>
> On July 9, 2018 8:57:31 PM Gregor Nanger <gregor at infomedia.si> wrote:
>
>> Guess that with 1.8 branch will be ok, since latest master I can build
>> without problems with 2017.
>>
>> 2018-07-02 21:28 GMT+02:00 Bipin Patel <bipin at xbipin.com>:
>>
>>> That's great news, would it be possible to change the vs project and
>>> config file and merge it to master so can help others as well built in
>>> vs2017 as I also currently built using vs2015 only.
>>>
>>>
>>>
>>> On July 2, 2018 11:12:17 PM Gregor Nanger <gregor at infomedia.si> wrote:
>>>
>>>> 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.
>>>>
>>>> Best regards, Gregor
>>>>
>>>> On Sun, Jul 1, 2018, 14:21 Andrew Keil <andrew.keil at visytel.com> wrote:
>>>>
>>>>> 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 at list
>>>>> s.freeswitch.org> *On Behalf Of *bob. chen
>>>>> *Sent:* Tuesday, 26 June 2018 1:23 PM
>>>>> *To:* FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
>>>>> *Subject:* [Freeswitch-users] 答复: Freeswitch windows build - libpng
>>>>>
>>>>>
>>>>>
>>>>> try vs2015 ;)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> *发件人**:* FreeSWITCH-users [mailto:freeswitch-users-bounc
>>>>> es at lists.freeswitch.org
>>>>> <freeswitch-users-bounces at 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 at 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 at 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
>>>> ____________________________________________________________
>>>> _____________
>>>> Professional FreeSWITCH Services
>>>> sales at 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 at lists.freeswitch.org
>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/
>>>> freeswitch-users
>>>> https://freeswitch.com
>>>
>>>
>>>
>>> ____________________________________________________________
>>> _____________
>>> Professional FreeSWITCH Services
>>> sales at 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 at 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
>> _________________________________________________________________________
>> Professional FreeSWITCH Services
>> sales at 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 at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> https://freeswitch.com
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Services
> sales at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20180712/a1a759ec/attachment-0001.html>


More information about the FreeSWITCH-users mailing list