glow icon indicating copy to clipboard operation
glow copied to clipboard

Can I build Glow on windows_10 ?

Open Fighting-JJ opened this issue 5 years ago • 5 comments

Due to the read.me , Glow can only be build on MacOs and Linuxs.

Fighting-JJ avatar Jul 18 '19 01:07 Fighting-JJ

Supposedly it works to build on Windows; we’ve received PRs to make Glow build with MSVC. But none of the “core” team uses Windows (or even has Windows boxes readily available) so it’s kind of a self-supported thing.

bertmaher avatar Jul 18 '19 13:07 bertmaher

cc: @ayermolo, who is the expert in this domain.

nickgg avatar Jul 18 '19 16:07 nickgg

Right now Windows master branch is broken. Seems to be related to one of the checkins on 16th. Was going to take a look at it today, but yes in general it can be built. :) Keep meaning to add a doc for it. Just need to find time.

ayermolo avatar Jul 18 '19 17:07 ayermolo

Short version if you are using VS 2017 you can clone: https://github.com/ayermolo/glowWindowsSupportLibraries.git

Example of cmake command: cmake ../glow -DCMAKE_GENERATOR_PLATFORM=x64 -DGLOW_WITH_OPENCL=0 -DCMAKE_PREFIX_PATH="C:\projects\llvm\llvmbuilddir64;C:\projects\glowWindowsSupportLibraries\tools\glogInstall;C:\projects\glowWindowsSupportLibraries\tools\libpngInstall;C:\projects\glowWindowsSupportLibraries\tools\protobufInstall" -Dgtest_force_shared_crt=TRUE -Dgtest_force_shared_crt=TRUE -DLINK_PROTOBUF_AS_DLL=ON

ayermolo avatar Jul 18 '19 22:07 ayermolo

are there any updates on support for VS 2019???? there have been reported issues about a missing pthread.h file, which i'm encountering as well....

biosbob avatar Jul 31 '22 16:07 biosbob