编译DLIB库Yocto(compile Dlib library with Yocto)

2019-11-04 22:57发布

我试图交叉编译yocto的应用程序。 该应用程序使用DL​​IB库,所以我必须做出对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

Answer 1:

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


文章来源: compile Dlib library with Yocto
标签: yocto dlib