Barrier: gmock 和 gtest 丢失

创建于 2020-07-19  ·  4评论  ·  资料来源: debauchee/barrier

操作系统

拉斯宾

屏障版

2.3.3

重现错误的步骤

我正在尝试在我的 RaspberryPi 上编译您的程序,而cmake .给了我两条错误消息。

Cannot Find Source File:
../../ext/gmock/src/gmock-all.cc

Cannot Find Source File:
../../ext/gtest/src/gtest-all.cc

事实上,文件夹 gmock 和 gtest 在源代码中是空的。

其他信息

我正在关注此信息以编译https://github.com/debauchee/barrier/issues/41#issuecomment -392900982 ,但 git clone 的命令给了我一条错误消息。

Permission denied (public key).
fatal: Could not read from remote repository.

Please make sure you have correct access rights and the repository exists.

所以我只是简单地克隆了源代码,因为到目前为止我每次都使用git clone 'web adress of repository' 。 也许这可能是这个问题的原因?

最有用的评论

我有同样的错误。
该解决方案无效,因为我正在尝试编译发布 tarball,并且没有 git 文件夹。

所有4条评论

您需要在编译之前运行git submodule initgit submodule update

感谢您的快速帮助。 我明天会试一试,然后再报告。

顺便说一句,不同的版本是否相互兼容? 然后我会在我的 RaspberryPi 上安装 2.3.3,但我的台式机和笔记本电脑从包管理器获得 2.3.2。

我已经成功了! 非常感谢您的帮助和这个很棒的工具。

并从之前的帖子中回答我自己的问题:
两个不同的版本一起工作得很好。

我有同样的错误。
该解决方案无效,因为我正在尝试编译发布 tarball,并且没有 git 文件夹。

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

HereInPlainSight picture HereInPlainSight  ·  4评论

agilbertson1977 picture agilbertson1977  ·  4评论

raffimohammed picture raffimohammed  ·  3评论

PlatinumDragon picture PlatinumDragon  ·  5评论

elig0n picture elig0n  ·  3评论