同步操作将从 OpenHarmony/docs 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Problem
The compilation fails, and usr/sbin/ninja: invalid option -- w is displayed.
Cause
The Ninja version in the compilation environment is outdated and does not support the --w option.
Solution
Uninstall Ninja and GN and follow the instructions provided in Acquiring Tools to obtain the provided compilation toolchain.
Problem
The compilation fails, and /usr/bin/ld: cannot find -lncurses is displayed.
Cause
The ncurses library is not installed.
Solution
sudo apt-get install lib32ncurses5-dev
Problem
The compilation fails, and line 77: mcopy: command not found is displayed.
Cause
Mcopy is not installed.
Solution
sudo apt-get install dosfstools mtools
Problem
The compilation fails, and the following information is displayed: riscv32-unknown-elf-gcc: error trying to exec 'cc1': execvp: No such file or directory.
Cause
Permission is required to access files in the riscv compiler path.
Solution
Run the following command to query the directory where gcc_riscv32 is located:
which riscv32-unknown-elf-gcc
Run the chmod command to change the directory permission to 755.
Problem
The compilation fails, and No module named'Crypto loaded is displayed.
Cause
Crypto is not installed in Python 3.
Solution
Run the following command to query the Python version:
python3 --version
Ensure that Python 3.7 or later is installed, and then run the following command to install pycryptodome:
sudo pip3 install pycryptodome
Problem
The compilation fails, and xx.sh [: xx unexpected operator is displayed.
Cause
The compilation environment is shell instead of bash.
Solution
sudo rm -rf /bin/sh
sudo ln -s /bin/bash /bin/sh
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。