交叉编译时如何在x86机器上安装ARM64机器的ncurses包?

问题描述 投票:0回答:1

错误:找不到-lncurses

如何修复这个错误?

我已经执行了这组命令。

sudo dpkg --add-architecture arm64
sudo apt update
sudo apt install libncurses5:arm64 libncursesw5:arm64
sudo apt install libncurses5-dev:arm64 libncursesw5-dev:arm64

执行后,我收到此错误。

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libncurses-dev:arm64 : Depends: libncurses6:arm64 (= 6.2-0ubuntu2.1) but it is not going to be installed
                        Depends: libncursesw6:arm64 (= 6.2-0ubuntu2.1) but it is not going to be installed
                        Depends: libc6-dev:arm64 but it is not going to be installed or
                                 libc-dev:arm64
 libtinfo6:arm64 : Depends: libc6:arm64 (>= 2.17) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
c++ linux ubuntu clang ncurses
1个回答
0
投票

Debian(及其派生的东西)不提供除了交叉编译所需的工具之外的软件包。 如果你想在Ubuntu的跨环境中使用ncurses,你必须自己配置和编译它。

© www.soinside.com 2019 - 2024. All rights reserved.