Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-7157

Support the Release build configuration on Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • build
    • Windows10 + 64-bit + Visual studio 2015

    Description

      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]

      Attachments

        Issue Links

          Activity

            People

              andschwa Andrew Schwartzmeyer
              PhoebeHui PhoebeHui
              Joseph Wu Joseph Wu
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: