[Runhe Neptune Evaluation] Second Environment Construction
[Copy link]
Official reference to build environment:
I took the route of installing a virtual machine. First install VM, then install UBUNTU20.4 (it is said that version 18 or above is required. I want to avoid pitfalls and follow the official advice);
After Ubuntu is installed, start installing software, but pay attention to the network configuration. If the network is not connected, then congratulations~you can't install it, Baidu can make it available online.
Install the required software:
Install the toolchain:
After the operation is completed, the code is pulled and compiled to see if the following VS tools can be used and compiled successfully.
Let me talk about the problems I encountered during the installation:
1. The node installation failed. I found that I downloaded the source package, not the compiled binary package, so... I'm ashamed. Everyone should pay attention when downloading.
2. The hb command was not found:
Solution:
# Execute the following command in the root directory of the source code to install hb.
python3 -m pip install --user build/lite
# Set the environment variable
vim ~/.bashrc
# Copy the following command to the last line of the .bashrc file, save and exit.
export PATH=~/.local/bin:$PATH
# Execute the following command to update the environment variables.
source ~/.bashrc
# Set the compilation path and select the current path.
hb set .
# Select ipcamera_hispark_taurus@hisilicon and press Enter to compile.
hb build -f
# Uninstall
hb python3 -m pip uninstall ohos-build
# If there is a problem when installing hb, pip upgrades
python3 -m pip install -U pip
You can turn the page after reading this~
I don’t know about other environments. The experience of using a similar interface in my computer virtual machine is not user-friendly, the operation is slow, and it often freezes!
I am a lazy person, so I found an environment that a great god has installed: [Resource] Ubuntu 20.04 image with Hongmeng development environment configured-Hongmeng HarmonyOS Technology Community-Hongmeng Official Partner-51CTO.COM
Download it, the environment inside is basically set up, you only need to install a CSKY, installation method: see below
Video course:
Neptune module hardware introduction and HarmonyOS development environment configuration
https://harmonyos.51cto.com/activity/46
Neptune module HarmonyOS peripheral control
https://harmonyos.51cto.com/activity/47
Neptune module HarmonyOS network programming
https://harmonyos.51cto.com/activity/48
Or download the courseware here: "Hongmeng System Internet of Things Module-Neptune Three-Day Complete Guide》Courseware, Code - Hongmeng HarmonyOS Technology Community - Hongmeng Official Partner - 51CTO.COMAfter
installation, I went to the source code repository to download the code directly and put it in the virtual machine, compile, and compile with just one command: build.py w800. It saves
a lot of complicated operations. I use the entire virtual machine just like using KEIL in the microcontroller, just to compile the code, and then the code is shared through the network, operated under WINDOWS, and downloaded~
Download:
Download with SecureCRT software XMODEM protocol, which is good, download and debug together, download need to pay attention to press and hold the upper left corner "ESC" key, then press the reset button, so that you can enter the download mode, click transfer and select send xmode and then go to the project OUT directory, select w800.img to burn, the process is slow, wait patiently, the burning is successful as follows:
Run:
Pull the code through VS, compile and run the status:
Download the compile and run status by yourself:
Will you find that the operation is different? Don’t ask me why ~ because I don’t know! I will look at the code first and share it with you next time.
Finally, I will share the development environment I built with you. You can download it if you need it. Neptune is the source code pulled by VS, and Neptune1 is the source code downloaded by yourself. The address is as follows: (The login password is still 123456; the root password is changed to three spaces by me)
Link: https://pan.baidu.com/s/1KJzbkO2KMKtgLYiyNKJc2w
Extraction code: a6uq
If you encounter any problems, please leave a message and contact me~
|