同步操作将从 OpenHarmony/docs 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
You must complete the settings in Basic OS Environment Setup.
The following figure shows the hardware connections.
NOTICE: This section describes how to use an installation package to set up the compilation and development environment. If you are going to use Docker to set up the environment, skip this section and Installing the Linux Compilation Environment.
The following table describes the tools required for setting up the general environment for a Linux server of the Hi3516 development board and how to obtain these tools.
Table 1 Development tools and obtaining methods
Basic software package for compilation and building (required only for Ubuntu 20+) |
Provides a basic software package for compilation and building. |
|
https://repo.huaweicloud.com/harmonyos/compiler/hc-gen/0.65/linux/hc-gen-0.65-linux.tar |
||
NOTICE:
- If you acquire the source code using an HPM component or HPM CLI tool, compilation tools like LLVM and hc-gen are not required.
- (Recommended) If you obtain the source code through an image site or a code repository, install compilation tools like LLVM and hc-gen. When installing LLVM and hc-gen, ensure that the environment variable paths of the compilation tools are unique.
Check whether bash is used as the shell.
ls -l /bin/sh
If /bin/sh -> bash is not displayed, do as follows to change shell to bash.
Method 1: Run the following command on the device and then click No.
sudo dpkg-reconfigure dash
Method 2: Run the first command to delete sh and then run the second command to create a new soft link.
sudo rm -rf /bin/sh
sudo ln -s /bin/bash /bin/sh
Install the software.
sudo apt-get install build-essential && sudo apt-get install gcc && sudo apt-get install g++ && sudo apt-get install make && sudo apt-get install zlib* && sudo apt-get install libffi-dev
Start a Linux server.
Install dosfstools.
sudo apt-get install dosfstools
Install mtools.
sudo apt-get install mtools
Install mtd-utils.
sudo apt-get install mtd-utils
Start a Linux server.
Download hc-gen.
Decompress the hc-gen installation package to ~/hc-gen on the Linux server.
tar -xvf hc-gen-0.65-linux.tar -C ~/
Set an environment variable.
vim ~/.bashrc
Copy the following command to the last line of the .bashrc file, save the file, and exit.
export PATH=~/hc-gen:$PATH
Validate the environment variable.
source ~/.bashrc
Start a Linux server.
Install the Java Runtime Environment (JRE).
sudo apt-get install default-jre
Install the Java Development Kit (JDK).
sudo apt-get install default-jdk
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。