用Yocto编译Dlib库

时间:2018-06-29 13:22:46

标签: yocto dlib

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

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

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

1 个答案:

答案 0 :(得分:0)

使用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