首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >谷歌云-cpp CMake一代失败

谷歌云-cpp CMake一代失败
EN

Stack Overflow用户
提问于 2018-09-07 10:37:21
回答 1查看 401关注 0票数 1

我正在尝试构建,但是我得到了一个错误(见下文)。我尝试使用VC++和g++构建它,但是在这两个过程中我都得到了相同的错误。我用的是cmake。

  • 构建环境:2017年视觉工作室 操作系统: Windows 10 Pro 64位
  • 构建环境:明威-W64 8.1.0 操作系统: Windows 10 Pro 64位

目标:64位

错误:

代码语言:javascript
复制
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)
EN

回答 1

Stack Overflow用户

发布于 2018-09-07 12:09:39

git克隆后https://github.com/GoogleCloudPlatform/google-cloud-cpp.git

输入目录

运行git子模块更新--init

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52220754

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档