Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yocto - Files/directories were installed but not shipped in any package

Tags:

yocto

I'm using Yocto to install clBLAS library (https://github.com/clMathLibraries/clBLAS) using the recipe https://github.com/CogentEmbedded/meta-opencl/blob/master/meta-ocl-common/recipes-graphics/clblas/clblas_git.bb

But I'm getting the below warning everytime & .so file is not present in the built image.

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]

How to overcome this warning & make the .so file present in the target's /usr/lib folder?

like image 477
Avis Avatar asked Apr 10 '18 08:04

Avis


2 Answers

Add below lines to your clblas_git.bb

 FILES_${PN} += "${libdir}/*"
 FILES_${PN}-dev = "${libdir}/* ${includedir}"

For good explanation you will get it here

like image 162
yoctotutor.com Avatar answered Nov 08 '22 17:11

yoctotutor.com


If you are using new version of yocto this will help:

FILES:${PN} ="name of the dirs is not shipping";

In old versions it is FILES_${PN}.

like image 2
Abdullah Noman Avatar answered Nov 08 '22 18:11

Abdullah Noman