与bitbake食谱的Cmake [英] Cmake with bitbake recipe

查看:1356
本文介绍了与bitbake食谱的Cmake的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用自己的包建立一个yocto镜像。我在github上使用cmake的OpenCV代码。

I am trying to build an yocto image with my own package. I have OpenCV code on github which uses cmake.

我试图为它写一个食谱,面对许多错误。任何人都可以提供一些提示,包括在我的食谱中的功能或参数。我的食谱如下

I trying to write a recipe for it and facing lot of errors. Can any one give some hints on what functions or parameters to include in my recipe. My recipe looks as following

DESCRIPTION = "cameracapture application" 
SECTION = "examples" 
LICENSE = "CLOSED" 
PR = "r0" 

DEPENDS += "opencv"

SRC_URI = "git://https://github.com/zafrullahsyed/cameracapture.git;protocol=https;tag=v0.1"

EXTRA_OECMAKE=""

do_configure() { 
 cmake ../ 
} 

inherit pkgconfig cmake

我按照这些教程来写我的食谱with cmake but in vanth:
Bitbake Player食谱

I followed these tutorials to write my recipe with cmake but in vain: Bitbake Player recipe

Cmake-Bitbake-QT p>

Cmake-Bitbake-QT

推荐答案

使用cmake编写自己的食谱的正确方法如下:

The correct way of writing own recipes with cmake as follows:

DESCRIPTION = "cameracapture application" 
SECTION = "examples" 
LICENSE = "CLOSED" 
PR = "r0" 

DEPENDS = "opencv"

SRC_URI = "git://github.com/zafrullahsyed/cameracapture.git;protocol=https;tag=v0.1"

S = "${WORKDIR}/git"

inherit pkgconfig cmake

do_install() {
    install -d ${D}${bindir}
    install -m 0755 cameracapture ${D}${bindir}
}

't add do_install 这是哟下载配方但无法包含它的原因Image。

Previously I didn't add do_install that's the reason yocto downloads the recipe but unable to include it Image.

这篇关于与bitbake食谱的Cmake的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆