You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Joseph Wu (JIRA)" <ji...@apache.org> on 2017/06/12 23:18:00 UTC

[jira] [Updated] (MESOS-7157) Support the Release build configuration on Windows

     [ https://issues.apache.org/jira/browse/MESOS-7157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joseph Wu updated MESOS-7157:
-----------------------------
     Labels: mesosphere windows  (was: )
    Summary: Support the Release build configuration on Windows  (was: LINK : fatal error LNK1181: cannot open input file 'glog.lib' when build mesos on Release configuration on Windows)

> Support the Release build 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
>            Assignee: Andrew Schwartzmeyer
>            Priority: Minor
>              Labels: mesosphere, windows
>
> 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.4.14#64029)