In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Hongmeng HarmonyOS environment to build the pit and solutions, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.
1) build Linux environment
Currently, the source code of harmony does not support building under Windows, so we need to build a Linux environment. With the tools and components that need to be prepared for building, you can refer to the introduction of Hongmeng OS open source website: https://gitee.com/openharmony/docs/blob/master/quick-start/%E6%90%AD%E5%BB%BA%E7%8E%AF%E5%A2%83-0.md.
This document lists the problems encountered in the construction process for your reference:
Question 1:
Problem: after installing python3.8.5, enter python3, and the interface is as follows:
The cause of the problem: the preset version of python in the Linux environment is 3.6.9, and the result queried by the python command is Python 3.8.5. This phenomenon seems to meet the description in the harmony OS environment build documentation, but it is recommended that you uninstall python3.6.9 so that there are no more than two python versions in the Linux environment.
Solution to the problem:
Uninstall redundant python versions
Link the python3 command to python3.8.5
Cd / usr/bin & & sudo rm python3 & & sudo ln-s python3.8-path python3 & & python3-- version
Reference method for uninstalling the python version
1. Uninstall python3.6.9
Sudo apt-get remove python3
two。 Uninstall python3.6.9 and its dependencies
Sudo apt-get remove-auto-remove python3
3. Clear some configuration files for python3.6.9
Sudo apt-get purge python3.6.9
Sudo apt-get purge-auto-remove python3
Question 2:
Problem phenomenon:
When the Linux environment is Ubuntu16, after scons is installed in the Hi3861 build environment, the python version is added in the environment, and the source code construction fails.
Sudo apt-get install scons-y
The cause of the problem:
The reason for this problem is that under Ubuntu16, the default download version of Scons is 3.0.2, while scons relies on python2.7.17.
Solution to the problem:
Delete Python version
Download scons version 3.0.4 (via offline installation), or download the corresponding scons version through pip3
2) build Windows environment
The IDE environment is mainly built under Windows, which is convenient for compiling, burning, debugging and other work through IDE. For more information, please see https://device.harmonyos.com/cn/docs/ide/user-guides/tool_install-0000001050164976
Key issues:
During the node.js installation process, select the necessary tools to install automatically (such as Python, Visual Studio build tool chain). After the Node.js installation is complete, click Finish, and the system automatically opens the PowerShell tool and begins to install the necessary tools.
When burning, report error "unable to load file C:\ Users\ xx\ AppData\ Roaming\ npm\ cnpm.ps1 because running script * * is prohibited on this system"
Solution:
1. Enter Windos PowerShell in the search box in the system.
2. Click "run as administrator"
3. Enter "set-ExecutionPolicy RemoteSigned" and enter enter
4. Enter An according to the prompt and enter enter
Errors reported during burning: comx open fail, please check com is busy or exist.
Solution: the current serial port terminal is dedicated, close the serial port terminal and restart the recording.
3) Software burning
In the Windows environment, through the cooperation of VS+harmony IDE, connect to the Linux server to complete the code writing, compilation, burning and debugging.
If you only want to complete the software burning, you can decompress it through DevEco Device Tool, and then run HiBurn.exe directly to complete the burning.
The specific steps are as follows:
1. Get DevEcoDeviceTool-1.0.0.vsix (plug-in through VSIXProject, which actually packages the files that the application depends on and publishes in the form of plug-ins)
two。 Extract the plug-in through 7-zip, enter extension\ deveco\ tools, and start HiBurn.exe
3. Configure the port number and select the target file to burn
4. Click setting to set the serial baud rate (you can also use the default setting, the actual test 3000000 is OK, but 4000000 is not available)
5. Check Auto burn, click Connect, connect the serial port device, and start writing. You need to make sure that no other programs occupy the serial port device (before burning, you may be using a hyperterminal or serial port assistant to check the serial port log, and you need to make sure that other software has closed the serial port currently used); reset the device, press the RESET button on the development board, and wait for the output box to appear three "=" and successful above, which means the burning is successful.
The actual test found that Auto burn must be selected, otherwise conntecting will fail.
Note: hisi provides a special burning tool HiTool.exe, which provides serial port, network port, USB and other burning methods. At present, there is no version of the tool that supports Hi3861.
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.