[ 
https://issues.apache.org/jira/browse/MESOS-8990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16552619#comment-16552619
 ] 

PhoebeHui commented on MESOS-8990:
----------------------------------

You can install visual studio latest release version, and follow the steps to 
verify:
 # Open x64 native command tool
 # git clone -c core.autocrlf=true https://github.com/apache/mesos D:\mesos\src
 # set _CL_=/D_HAS_AUTO_PTR_ETC=1 /D_HAS_TR1_NAMESPACE=1 
/D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING /std:c++latest
 # cd d:\Mesos\src
 # .\bootstrap.bat
 # mkdir build_x64 && pushd build_x64
 # cmake ..\src -G "Visual Studio 15 2017 Win64" 
-DCMAKE_SYSTEM_VERSION=10.0.17134.0 -DENABLE_LIBEVENT=1 -DHAS_AUTHENTICATION=0 
-DPATCHEXE_PATH="C:\gnuwin32\bin" -T host=x64
 # msbuild Mesos.sln /p:Configuration=Debug /p:Platform=x64 /maxcpucount:4 
/t:Rebuild

> Build failure of the google-test dependency on Windows using MSVC. 
> -------------------------------------------------------------------
>
>                 Key: MESOS-8990
>                 URL: https://issues.apache.org/jira/browse/MESOS-8990
>             Project: Mesos
>          Issue Type: Task
>          Components: build
>            Reporter: PhoebeHui
>            Assignee: Andrew Schwartzmeyer
>            Priority: Blocker
>              Labels: agent, build, dependency, windows
>         Attachments: googletest-release-f66ab00.patch
>
>
> Build Mesos with msvc on windows currently blocked by the following issue, 
> this issue has fixed on Goolgetest, could you help pick up it in Mesos?
> The next release msvc toolset will have this behavior.
>  See background in 
> [{color:#0066cc}https://github.com/google/googletest/issues/1616{color}], and 
> the fix 
> [{color:#0066cc}https://github.com/google/googletest/pull/1620{color}].
> The failures like:
> {noformat}
>  
> d:\mesos\build_x64\3rdparty\googletest-1.8.0\src\googletest-1.8.0\googletest\include\gtest\gtest-printers.h(249,1):
>  error C2593:  'operator <<' is ambiguous 
> [D:\Mesos\build_x64\src\tests\mesos-tests.vcxproj]
> d:\mesos\build_x64\3rdparty\googletest-1.8.0\src\googletest-1.8.0\googletest\include\gtest\gtest-printers.h(249,1):
>  error C2593:   *os << value; 
> [D:\Mesos\build_x64\src\tests\mesos-tests.vcxproj]
> d:\mesos\build_x64\3rdparty\googletest-1.8.0\src\googletest-1.8.0\googletest\include\gtest\gtest-printers.h(249,1):
>  error C2593: ^ (compiling source file 
> D:\Mesos\src\src\tests\command_executor_tests.cpp) 
> [D:\Mesos\build_x64\src\tests\mesos-tests.vcxproj]
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to