用Yocto编译Dlib库 [英] compile Dlib library with Yocto

查看:119
本文介绍了用Yocto编译Dlib库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用yocto交叉编译应用程序。该应用程序使用Dlib库,因此我必须为Dlib做一个配方。食谱看起来如何? @ R.Gopi

I'm trying to cross-compile an application with yocto. The application uses Dlib library, so I have to make a recipe for Dlib. How should the recipe look like? @R.Gopi

当我尝试从@ astor555构建dlib配方时,出现以下错误:

When I try to build dlib recipe from @astor555 , I get the following error:

ERROR: dlib-1.0+gitAUTOINC+3b794540ba-r0 do_package: QA Issue: dlib: Files/directories were installed but not shipped in any package:
  /usr/lib/cmake
  /usr/lib/cmake/dlib
  /usr/lib/cmake/dlib/dlib.cmake
  /usr/lib/cmake/dlib/dlib-release.cmake
  /usr/lib/cmake/dlib/dlibConfig.cmake
  /usr/lib/cmake/dlib/dlibConfigVersion.cmake
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
dlib: 6 installed and not shipped files. [installed-vs-shipped]
ERROR: dlib-1.0+gitAUTOINC+3b794540ba-r0 do_package: Fatal QA errors found, failing task.
ERROR: dlib-1.0+gitAUTOINC+3b794540ba-r0 do_package: Function failed: do_package


推荐答案

使用 devtool 我能够快速生成 dlib.bb 配方:

SUMMARY = "A toolkit for making real world machine learning and data analysis applications"
HOMEPAGE = "https://github.com/davisking/dlib"

LICENSE = "Boost-Software"
LIC_FILES_CHKSUM = "file://dlib/LICENSE.txt;md5=2c7a3fa82e66676005cd4ee2608fd7d2 \
                    file://dlib/external/pybind11/LICENSE;md5=beb87117af69fd10fbf9fb14c22a2e62 \
                    file://dlib/external/libpng/LICENSE;md5=243135ddedf702158f9170807cbcfb66 \
                    file://docs/docs/license.xml;md5=2e6ff4080dcb217d4d300b90e9aabb5b \
                    file://examples/LICENSE_FOR_EXAMPLE_PROGRAMS.txt;md5=57eee82829ed297e23d84de5f905afee \
                    file://examples/video_frames/license.txt;md5=127ee508b60a6be9dea8af3b441993dc \
                    file://python_examples/LICENSE_FOR_EXAMPLE_PROGRAMS.txt;md5=064f53ab40ea2b6a4bba1324149e4fde"

SRC_URI = "git://github.com/davisking/dlib.git;protocol=https"

PV = "1.0+git${SRCPV}"
SRCREV = "3b794540baeabbcd033b544230401967106d5483"

S = "${WORKDIR}/git"

inherit cmake

这篇关于用Yocto编译Dlib库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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