[yocto] error: Can't install libxl-dev-1.0-r0 at cortexa9hf_neon: no package provides libxl = 1.0-r0

Khem Raj raj.khem at gmail.com
Wed Feb 15 13:26:19 PST 2017



On 2/15/17 12:45 PM, Warren Harper wrote:
> I am having trouble writing a recipe and including libxl-dev it in an image.
> 
> The recipe is libxl_1.0.bb:
> ```
>      SUMMARY = "A C++ Excel Library to read/write xls/xlxs files"
>      DESCRIPTION = "A C++ Excel Library to read/write xls/xlxs files"
>      LICENSE = "MIT"
>      LIC_FILES_CHKSUM =
> "file://COPYING;md5=2aee0be2678ee90fd327cc186826438e"
>     
>      SRC_URI = "\
>          file://COPYING \
>          file://libxl.so \
>          "
>        
>      S = "${WORKDIR}"
>     
>      do_install() {
>         install -d "${D}${libdir}"
>         install "${WORKDIR}/libxl.so" "${D}${libdir}" -m 0644

this is the problem. .so here is probably a real .so and not a symlink
so it goes into -dev package by default rules. So you also need to add
something like

FILES_${PN} += "${libdir}/*.so"
FILES_SOLIBSDEV = ""
INSANE_SKIP_${PN} += "dev-so"



>      }
> ```
> 
> When I run the command to the build the image I get the following error
> during the do_rootfs task:
>      Computing transaction...error: Can't install
> libxl-dev-1.0-r0 at cortexa9hf_neon: no package provides libxl = 1.0-r0
> 
> What is causing the above issue?
> 
> Thanks,
> 
> Warren Harper
> Software Engineer
> warren at wjh.io <mailto:warren at wjh.io>
> 
> 



More information about the yocto mailing list