【问题标题】:Buildroot: Ncurses includes tput?Buildroot:Ncurses 包括 tput?
【发布时间】:2017-12-15 13:14:43
【问题描述】:

我有一个启动 sh 脚本,它播放文本的“动画”,使用 tput 来操作/删除终端上的行。不幸的是,我的系统上似乎没有 tput,我已经包含了 ncurses 库,它显然也包含 tput。

我正在寻找获得 tput 的方法或替代方法。

谢谢

【问题讨论】:

  • ncurses 库可以在没有任何命令行实用程序的情况下存在。但解决这个问题不是编程问题,而是打包等问题。

标签: ncurses buildroot tput


【解决方案1】:

您忘记启用BR2_PACKAGE_NCURSES_TARGET_PROGS

【讨论】:

  • 不幸的是我确实启用了它!
【解决方案2】:

您必须在设置 buildroot 配置时检查 ncurses 程序

  1. 制作菜单配置
  2. 目标包 -> 库 -> 文本和终端处理 -> ncurses -> ncurses 程序
  3. 保存
  4. make clean(或 rm -rf output/build/ncurses-6.1/)
  5. 制作

编译完成后,可以在 output/target/usr/bin/tput

找到 tput

我的 buildroot 版本:buildroot-2021.02.3

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2010-10-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多