Yocto 配置:错误:需要pkg配置才能启用libusb支持

Yocto 配置:错误:需要pkg配置才能启用libusb支持,yocto,imx6,network-printers,Yocto,Imx6,Network Printers,我是yocto的新手,我的目标是在imx6的yocto映像中添加一个打印机驱动程序,这样我们就可以从电路板上访问priter。我正在尝试一个构建,按照IMXLXYOCTOUG.PDF上的说明进行 $ DISTRO=fsl-imx-xwayland MACHINE=imx6qsabresd source fsl-setup-release.sh -b build_dir $ source setup-environment build_dir $ bitbake fsl-image-qt5-val

我是yocto的新手,我的目标是在imx6的yocto映像中添加一个打印机驱动程序,这样我们就可以从电路板上访问priter。我正在尝试一个构建,按照IMXLXYOCTOUG.PDF上的说明进行

$ DISTRO=fsl-imx-xwayland MACHINE=imx6qsabresd source fsl-setup-release.sh -b build_dir
$ source setup-environment build_dir
$ bitbake fsl-image-qt5-validation-imx
基本的构建是成功的,我用gui开发了板,一切都很好。 我想为图像添加打印机支持,所以我添加了meta printing()层。我已经更新了bblayer.conf

BBFILES ?= ""
BBLAYERS = " \
  ${BSPDIR}/sources/poky/meta \
  ${BSPDIR}/sources/poky/meta-poky \
  \
  ${BSPDIR}/sources/meta-openembedded/meta-oe \
  ${BSPDIR}/sources/meta-openembedded/meta-multimedia \
  \
  ${BSPDIR}/sources/meta-freescale \
  ${BSPDIR}/sources/meta-freescale-3rdparty \
  ${BSPDIR}/sources/meta-freescale-distro \
  **${BSPDIR}/sources/meta-printing \**
根据github自述文件中的说明

在引导之后,我无法访问lp命令来用打印机打印一些示例文件。所以我补充说

IMAGE_INSTALL_append = " cups"
在local.conf文件中,该文件给出以下错误

| checking for posix_spawn... yes
| checking for tm_gmtoff member in tm structure... yes
| checking for st_gen member in stat structure... no
| checking for removefile... no
| configure: error: Need pkg-config to enable libusb support.
| NOTE: The following config.log files may provide further information.
| NOTE: /home/jifri/on_board/yocto/imx-yocto-bsp/build_dir/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/cups/2.1.4-r0/cups-2.1.4/config.log
| ERROR: configure failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /home/jifri/on_board/yocto/imx-yocto-bsp/build_dir/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/cups/2.1.4-r0/temp/log.do_configure.8342)
ERROR: Task (/home/jifri/on_board/yocto/imx-yocto-bsp/sources/meta-printing/recipes-printing/cups/cups_2.1.4.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5414 tasks of which 5399 didn't need to be rerun and 2 failed.

Summary: 2 tasks failed:
  /home/jifri/on_board/yocto/imx-yocto-bsp/sources/meta-epson/recipes-epson/bbepson/bbepson_0.1.bb:do_compile
  /home/jifri/on_board/yocto/imx-yocto-bsp/sources/meta-printing/recipes-printing/cups/cups_2.1.4.bb:do_configure
Summary: There were 4 ERROR messages shown, returning a non-zero exit code.

我已在主机PC上安装了pkg配置

$ pkg-config --version
0.29.1

$ sudo apt-get install libusb-0.1-4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libusb-0.1-4 is already the newest version (2:0.1.12-28).
The following packages were automatically installed and are no longer required:
  snap-confine snapd-login-service
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 45 not upgraded.

$ sudo apt-get install libusb-1.0-0-dev
[sudo] password for eldaas: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libusb-1.0-0-dev is already the newest version (2:1.0.20-1).
The following packages were automatically installed and are no longer required:
  snap-confine snapd-login-service
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 45 not upgraded.
知道为什么吗 配置:错误:需要pkg config才能启用libusb支持。 正在发生

或 有没有更好的方法通过yocto在imx6上运行lp命令。这样我就可以使用打印机了

任何输入都是无效的。。
谢谢。

我已经解决了同样的问题。事实上,我已经添加了元打印层,以获得对杯子的访问。但是在poky中,cups已经与meta层一起存在(imx-yoctobsp/sources/poky/meta/recipes-extended/cups)。所以我删除了元打印层&然后用

IMAGE\u INSTALL\u append=“cups”


这对我来说很有效,启动后我可以使用lp、lpadmin等。。imx6板上的命令。

我已经解决了同样的问题。事实上,我已经添加了元打印层,以获得对杯子的访问。但是在poky中,cups已经与meta层一起存在(imx-yoctobsp/sources/poky/meta/recipes-extended/cups)。所以我删除了元打印层&然后用

IMAGE\u INSTALL\u append=“cups”


这对我来说很有效,启动后我可以使用lp、lpadmin等。。imx6板上的命令。

缺少的pkg配置可能不是主机系统的pkg配置,而是yocto本机配置。您添加的元层是否与其他yocto层属于同一版本?这个元打印层的最后一个版本是相扑版,它相当古老。但是在openembedded core()中,大多数方法都很好,缺少的pkg配置可能不是主机系统中的pkg配置,而是yocto本机配置。您添加的元层是否与其他yocto层属于同一版本?这个元打印层的最后一个版本是相扑版,它相当古老。但是大多数的食谱在开放式的核心()