ubuntu12.04 64bit 编译android源码时遇到的问题"make: *** [out/host/linux-x86/obj/EXECUTABLES/adb_intermediates"

ubuntu12.04 64bit 编译android源码时出现如下错误:

        host Executable: cmu2nuance (out/host/linux-x86/obj/EXECUTABLES/cmu2nuance_intermediates/cmu2nuance)
        /usr/bin/ld: cannot find -lncurses
        collect2: ld returned 1 exit status 
        make: *** [out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb] Error 1
        make: *** Waiting for unfinished jobs....
        host Executable: coverage (out/host/linux-x86/obj/EXECUTABLES/coverage_intermediates/coverage)

        安装libncurses5-dev:i386可以解决

        sudo apt-get install libncurses5-dev:i386

 

ubuntu12.04 64bit 编译kernel源码时出现如下错误:

        HOSTLD  scripts/kconfig/mconf
        scripts/kconfig/mconf.o: In function `show_help':
        mconf.c:(.text+0x811): undefined reference to `stdscr'
        scripts/kconfig/mconf.o: In function `main':
        mconf.c:(.text+0x1286): undefined reference to `initscr'
        mconf.c:(.text+0x128d): undefined reference to `stdscr'
        scripts/kconfig/lxdialog/checklist.o: In function `print_arrows':
        checklist.c:(.text+0x41): undefined reference to `wmove'
        checklist.c:(.text+0x61): undefined reference to `acs_map'

        安装libncurses5-dev可以解决

        sudo apt-get install libncurses5-dev

==>这两个程序任意时刻只能装一个,不能共存,所以编译时需注意。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
这个错误是由于无法下载指定的软件包导致的。根据引用\[1\]中的错误信息,可以看到在访问 http://172.6.0.2/ubuntu/dists/jammy/main/binary-i386/Packages 出现了 404 Not Found 的错误。同样的错误也出现在其他两个链接上。这意味着所请求的软件包在指定的地址上不存在。 根据引用\[2\]中的命令输出,可以看到在尝试安装 tree 软件包,出现了类似的错误。错误信息中提到了 http://hk.archive.ubuntu.com/ubuntu/ 的链接无法访问,导致无法下载软件包。这可能是由于网络连接问题或者指定的镜像源不可用所致。 引用\[3\]中的错误信息也提到了无法加载共享库文件 libxapian.so.22,这可能是由于缺少该文件或者文件路径不正确导致的。 综上所述,无法下载 http://mirrors.aliyun.com/ubuntu/pool/main/d/dpkg/dpkg-dev_1.19.0.5ubuntu2.3_all.deb 的错误可能是由于网络连接问题、镜像源不可用或者文件路径错误导致的。建议您检查网络连接是否正常,尝试使用其他镜像源或者更新软件包列表后再次尝试下载。 #### 引用[.reference_title] - *1* [解决 Failed to fetch http://172.6.0.2/ubuntu/dists/jammy/main/binary-i386/Packages 404 Not Found问题](https://blog.csdn.net/qq_37497543/article/details/125680894)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [ubuntu12.04安装tree出现无法下载 ...i386](https://blog.csdn.net/wgl307293845/article/details/115367584)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [【BUG解决】sudo apt-get update 报错 E: The repository ‘http://xxx Release‘ does not have a Release...](https://blog.csdn.net/suiqianjushi/article/details/123357558)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值