[
https://issues.apache.org/jira/browse/MESOS-7157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15878685#comment-15878685
]
Joseph Wu commented on MESOS-7157:
----------------------------------
Looks like this is due to how we pass along the CMake flags:
https://github.com/apache/mesos/blob/807b2343fac186d4fe5f42362c07a729fcaad80f/3rdparty/CMakeLists.txt#L176
^ Notice how only the DEBUG flags are passed along :|
> LINK : fatal error LNK1181: cannot open input file 'glog.lib' when build
> mesos on Release configuration on Windows
> ------------------------------------------------------------------------------------------------------------------
>
> Key: MESOS-7157
> URL: https://issues.apache.org/jira/browse/MESOS-7157
> Project: Mesos
> Issue Type: Bug
> Components: build
> Environment: Windows10 + 64-bit + Visual studio 2015
> Reporter: PhoebeHui
>
> I try to build Mesos with vs2015 on Release configuration on Windows, but it
> failed with link error LNK1181. It seems that it hard code the glog.lib path:
> if I set Configuration=Debug, it will find glog.lib on
> D:/mesos/build_x64/3rdparty/glog-0.3.4/src/glog-0.3.4-build/Debug or
> D:/mesos/build_x64/3rdparty/glog-0.3.4/src/glog-0.3.4-build/Debug/Debug
> it works.
> if I set Configuration=Release, it will find glog.lib on
> D:/mesos/build_x64/3rdparty/glog-0.3.4/src/glog-0.3.4-build/Debug or
> D:/mesos/build_x64/3rdparty/glog-0.3.4/src/glog-0.3.4-build/Debug/Release
> it doesn't work, since
> D:/mesos/build_x64/3rdparty/glog-0.3.4/src/glog-0.3.4-build/Debug doesn't
> exsit. the glog.lib located on
> D:/mesos/build_x64/3rdparty/glog-0.3.4/src/glog-0.3.4-build/Release
> Repro steps:
> Get source:
> git clone -c core.autocrlf=true https://github.com/apache/mesos D:\mesos\src
> Build the project:
> cd d:\mesos\src
> .\bootstrap.bat
> cd..
> mkdir build_x64 && pushd build_x64
> cmake ..\src -G "Visual Studio 14 2015 Win64" -DENABLE_LIBEVENT=1
> -DHAS_AUTHENTICATION=0 -DPATCHEXE_PATH="C:\Program Files (x86)\GnuWin32\bin"
> msbuild Mesos.sln /p:Configuration=Release /p:PreferredToolArchitecture=x64
> /m
> It will build failed with Link error:
> "F:\mesos\build_x64\Mesos.sln" (Rebuild target) (1) ->
> "D:\mesos\build_x64\3rdparty\stout\tests\stout-tests.vcxproj.metaproj"
> (Rebuild target) (37) ->
> "D:\mesos\build_x64\3rdparty\stout\tests\stout-tests.vcxproj" (Rebuild
> target) (52) ->
> (Link target) ->
> LINK : fatal error LNK1181: cannot open input file 'glog.lib'
> [D:\mesos\build_x64\3rdparty\stout\tests\stout-tests.vcxproj]
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)