小编hme*_*hme的帖子

使用 cmake 的 Yocto 食谱找不到 git

我正在尝试为 mongo-cxx-driver ( https://github.com/mongodb/mongo-cxx-driver )构建一个配方。我有 libbson 和 mongo-c-driver 的工作配方,这是要求,但是当我尝试构建 mongo-cxx-driver 时,它在尝试克隆 git repo 时失败。

$ bitbake mongo-cxx-driver

| CMake Error at 
/home/hme/projects/platform/yocto/poky/build/tmp/work/core2-64-poky-linux/mongo-cxx-driver/3.1.3-r0/recipe-sysroot-native/usr/share/cmake-3.8/Modules/ExternalProject.cmake:1805 (message):
|   error: could not find git for clone of EP_mnmlstc_core
| Call Stack (most recent call first):
|   /home/hme/projects/platform/yocto/poky/build/tmp/work/core2-64-poky-linux/mongo-cxx-driver/3.1.3-r0/recipe-sysroot-native/usr/share/cmake-3.8/Modules/ExternalProject.cmake:2560 (_ep_add_download_command)
|   src/bsoncxx/third_party/CMakeLists.txt:19 (ExternalProject_Add)
| 
| 
| -- Configuring incomplete, errors occurred!
Run Code Online (Sandbox Code Playgroud)

食谱:

DESCRIPTION = "MongoDB C++ driver"
SECTION = "libs"
HOMEPAGE = "https://github.com/mongodb/mongo-cxx-driver"
LICENSE = "Apache-2.0"
DEPENDS = "libbson mongo-c-driver git-native"

inherit cmake pkgconfig

SRC_URI = "https://github.com/mongodb/mongo-cxx-driver/archive/r${PV}.tar.gz" …
Run Code Online (Sandbox Code Playgroud)

recipe cmake mongodb openembedded yocto

2
推荐指数
1
解决办法
1981
查看次数

标签 统计

cmake ×1

mongodb ×1

openembedded ×1

recipe ×1

yocto ×1