同步操作将从 OpenHarmony/docs 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Figure 1 shows the hardware connections.
Table 1 Platforms required for the Hi3516DV300 development board
Ubuntu 16.04 64-bit or later is used for the Linux OS, and Bash is used for the shell. |
You can develop programs on the Windows workstation or on the Linux server through remote login. |
||
The following table describes the common tools required for Linux and how to obtain them.
Table 2 Development tools and obtaining methods
Table 3 Development tools for the Windows workstation
Functions as the integrated development environment (IDE) to provide code compilation, burning, and debugging. C and C++ languages are supported. |
Using PuTTY to log in to a Linux server from a PC running Windows
Open PuTTY, enter the IP address of the Linux server, and click Open.
Click Yes in the PuTTY Security Alert dialog box.
Enter the account and password.
The login is successful.
Run the following command to check whether bash is used as the shell:
ls -l /bin/sh
If /bin/sh -> bash is not displayed, do as follows to change the shell to bash.
Method 1: Run the following command on the device and then click No.
sudo dpkg-reconfigure dash
Method 2: Run the rm -rf /bin/sh command to delete sh and then run the sudo ln -s /bin/bash /bin/sh command to create a new soft link.
rm -rf /bin/sh
sudo ln -s /bin/bash /bin/sh
Start a Linux server.
Run the python3 --version command to check the Python version. If the Python version is not 3.7 or later, do as follows to install an appropriate Python version, for example, Python 3.8:
If the Ubuntu version is 18, run the sudo apt-get install python3.8 command.
If the Ubuntu version is 16, download the installation package and install Python.
"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 "
"tar -xvzf Python-3.8.5.tgz && cd Python-3.8.5 && sudo ./configure && make && sudo make install"
"cd /usr/bin && rm python && ln -s /usr/local/bin/python3.8 python && python --version"
Run the sudo apt-get install python3-setuptools python3-pip -y command to install the Python package management tool. (The root/sudo permission is required.) Run the sudo pip3 install --upgrade pip command to upgrade pip3.
Alternatively, install the Python package management tool as instructed by the official website. Specifically, run the curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py command to download the script get-pip.py and run the python get-pip.py command to install this script.
Run the pip3 install setuptools command to install setuptools module of Python.
Run the sudo pip3 install kconfiglib command to install GUI menuconfig. The Kconfiglib 13.2.0 or later is recommended. (The root/sudo permission is required.)
Alternatively, you can do as follows to install Kconfiglib 13.2.0 or later:
Download the .whl file, for example, kconfiglib-13.2.0-py2.py3-none-any.whl, from https://pypi.org/project/kconfiglib#files.
Run the sudo pip3 install kconfiglib-xxx.whl command to install the .whl file, for example, sudo pip3 install kconfiglib-13.2.0-py2.py3-none-any.whl). (The root/sudo permission is required.)
If you encounter the error subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1., run the find / -name lsb_release command, for example, rm -rf /usr/bin/lsb_release to locate and delete it sb_release.
NOTICE:
- If you obtain the source code using an HPM component or HPM CLI tool, compilation tools like gn, ninja, LLVM, and hc-gen are not required.
- (Recommended) If you obtain the source code through an image site or a code repository, compilation tools like gn, ninja, LLVM, and hc-gen need to be installed. When installing gn, ninja, LLVM, and hc-gen, ensure that the environment variable paths of the compilation tools are unique.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。