gpt4 book ai didi

android - 为 android x86 编译 CUPS

转载 作者:行者123 更新时间:2023-11-29 01:49:47 25 4
gpt4 key购买 nike

我正在为嵌入式设备编译自定义 android-x86 版本。我需要使用 USB 热敏打印机。在 Ubuntu 上,它可以在/dev/usb/lp0 上使用 cups 开箱即用。我似乎找不到任何关于将 CUPS 移植到 android-x86 build 的说明,而且我对此还不是很熟悉。有没有人有解决方案来使用 android-x86 编译 CUPS 或在 android-x86 中与/dev/usb/lp0 通信?

最佳答案

CUPS 现在已经“移植”到 Android(参见 https://github.com/pelya/android-print-plugin-cups)。它实际上不是一个端口,但它会将 Debian 安装在您应用程序的沙箱中并在那里设置 CUPS。可能是一个更易于维护的解决方案,因为 Debian CUPS 是稳定的。

显然您的打印机需要一个 CUPS 驱动程序,以及一种使其通过 USB (libusb) 进行通信的方法。我现在正在为一个项目做这件事,当它完全正常工作时我会编辑这篇文章。

关于android - 为 android x86 编译 CUPS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18900962/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com