1

我正在尝试构建 google-cloud-cpp,但出现错误(见下文)。我曾尝试使用 VC++ 和 来构建它g++,但是在使用两者时我都遇到了同样的错误。我使用 cmake-gui。

  • 构建环境:Visual Studios 2017
    操作系统:Windows 10 Pro 64-bit

  • 构建环境:Mingw-w64 8.1.0
    操作系统:Windows 10 Pro 64-bit

目标:64位

错误:

CMake Error at cmake/IncludeGMock.cmake:38 (add_library):
  Cannot find source file:

    D:/google-cloud-cpp/third_party/googletest/googletest/src/gtest-all.cc

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx
Call Stack (most recent call first):
  cmake/GoogleCloudCppCommon.cmake:48 (include)
  google/cloud/CMakeLists.txt:42 (include)


CMake Error at cmake/IncludeGMock.cmake:38 (add_library):
  No SOURCES given to target: gmock
Call Stack (most recent call first):
  cmake/GoogleCloudCppCommon.cmake:48 (include)
  google/cloud/CMakeLists.txt:42 (include)
4

1 回答 1

0

git clone 之后https://github.com/GoogleCloudPlatform/google-cloud-cpp.git

进入目录

运行 git submodule update --init

于 2018-09-07T12:09:39.577 回答