首页 > 解决方案 > 无法将 lapack.so 文件放入 rootfs

问题描述

我正在尝试使用yocto在我的 64 位 ARMV8 板上安装 lapack。我有 lapack-3.9 bitbake 配方,它已经成功构建。它已在 image/usr/lib64 文件夹中成功创建了 libblas.so 和 liblapack.so。

我将 lapack 添加到我的local.conf中。问题是当我这样做时

bitbake core-image-weston

我的 rootfs 中没有这些.so 。也就是说,在 /usr/lib64 里面。我在这里想念什么???下面是我的 lapack_3.9.0.bb 食谱-

SUMMARY = "Linear Algebra PACKage"
URL = "http://www.netlib.org/lapack"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=930f8aa500a47c7dab0f8efb5a1c9a40"

# Recipe needs FORTRAN support (copied from conf/local.conf.sample.extended)
# Enabling FORTRAN
# Note this is not officially supported and is just illustrated here to
# show an example of how it can be done
# You'll also need your fortran recipe to depend on libgfortran
#FORTRAN_forcevariable = ",fortran"
#RUNTIMETARGET_append_pn-gcc-runtime = " libquadmath"

DEPENDS = "libgfortran"

SRC_URI = "https://github.com/Reference-LAPACK/lapack/archive/v${PV}.tar.gz"
SRC_URI[md5sum] = "0b251e2a8d5f949f99b50dd5e2200ee2"
SRC_URI[sha256sum] = "106087f1bb5f46afdfba7f569d0cbe23dacb9a07cd24733765a0e89dbe1ad573"

EXTRA_OECMAKE = " -DBUILD_SHARED_LIBS=ON "
OECMAKE_GENERATOR = "Unix Makefiles"

inherit cmake pkgconfig
EXCLUDE_FROM_WORLD = "1"

Collected errors:
 * Solver encountered 1 problem(s):
 * Problem 1/1:
 *   - nothing provides lapack = 3.9.0-r0 needed by lapack-dev-3.9.0-r0.aarch64
 * 
 * Solution 1:
 *   - do not ask to install a package providing lapack-dev

标签: yoctobitbakelapackreciperootfs

解决方案


推荐阅读