Yocto-已安装文件/目录,但未以任何软件包提供

Avi*_*vis 6 yocto

我正在使用Yocto 使用食谱https://github.com/CogentEmbedded/meta-opencl/blob/master/meta-ocl-common/recipes安装clBLAS库(https://github.com/clMathLibraries/clBLAS-graphics / clblas / clblas_git.bb

但是我每次都会收到以下警告,并且.so文件不在生成的映像中。

WARNING: QA Issue: clblas: Files/directories were installed but not shipped in any package:
  /usr/lib
  /usr/lib/libclBLAS.so.2.12.0
  /usr/lib/libclBLAS.so.2
  /usr/lib/libclBLAS.so
  /usr/lib/.debug
  /usr/lib/pkgconfig
  /usr/lib/cmake
  /usr/lib/.debug/libclBLAS.so.2.12.0
  /usr/lib/pkgconfig/clBLAS.pc
  /usr/lib/cmake/clBLAS
  /usr/lib/cmake/clBLAS/clBLASTargets-debug.cmake
  /usr/lib/cmake/clBLAS/clBLASConfigVersion.cmake
  /usr/lib/cmake/clBLAS/clBLASTargets.cmake
  /usr/lib/cmake/clBLAS/clBLASConfig.cmake
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
clblas: 14 installed and not shipped files. [installed-vs-shipped]
Run Code Online (Sandbox Code Playgroud)

如何克服此警告并使目标/usr/lib文件夹中存在.so文件?

小智 20

如果您使用新版本的 yocto 这将有所帮助:

FILES:${PN} ="name of the dirs is not shipping";
Run Code Online (Sandbox Code Playgroud)

在旧版本中是这样的FILES_${PN}


yoc*_*com 12

将以下几行添加到您的 clblas_git.bb

 FILES_${PN} += "${libdir}/*"
 FILES_${PN}-dev = "${libdir}/* ${includedir}"
Run Code Online (Sandbox Code Playgroud)

为了得到很好的解释,你会在这里得到它

  • 如果有人可以解释该解决方案的工作原理,将会很有帮助 (4认同)
  • 谢谢@ Siva.v ,你能告诉我为什么我们需要添加包含目录吗 (2认同)