常见问题概述
常见问题主要用于帮助开发者解决在开发过程中经常出现的一类问题问题。当前提供了如下常见问题供开发者进行查询。
环境搭建
轻量和小型系统
- 安装hb过程中出现乱码、段错误
- 安装hb过程中,提示"cannot import 'sysconfig' from 'distutils'"
- 安装hb过程中,提示"module 'platform' has no attribute 'linux_distribution'"
- 安装hb过程中,提示"Could not find a version that satisfies the requirement ohos-build"
- 安装python3过程中,提示“configure: error: no acceptable C compiler found in $PATH”
- 安装python3过程中,提示“-bash: make: command not found”
- 安装python3过程中,提示“zlib not available”
- 安装python3过程中,提示“No module named '_ctypes'”
- 安装 kconfiglib时,遇到lsb_release错误
- Linux编译服务器终端输入不识别的命令时提示“ImportError: No module named apt_pkg”
编译构建子系统
轻量和小型系统
- 编译构建过程中,提示“usr/sbin/ninja: invalid option -- w”
- 编译构建过程中,提示“/usr/bin/ld: cannot find -lncurses”
- 编译构建过程中,提示“line 77: mcopy: command not found”
- 编译构建过程中,提示“riscv32-unknown-elf-gcc: error trying to exec 'cc1': execvp: No such file or directory”
- 编译构建过程中,提示“No module named 'Crypto'”
- 编译构建过程中,提示“Could not find a version that satisfies the requirement six>=1.9.0”
- 编译构建过程中,提示“Could not find a version that satisfies the requirement six>=1.9.0””
- 编译构建过程中,提示找不到“-lgcc”
- 编译构建过程中,提示找不到“python”
- 编译构建过程中,提示找不到“python3”
烧录
轻量和小型系统
内核
基础内核
文件系统
芯片适配
三方组件
编译链接
- Arm Linux开发的应用程序,如何在LiteOS-A上运行
- OpenHarmony在什么系统下编译,使用什么编译器
- LiteOS-M上使用单独编译成静态库的三方组件,出现三方组件中的全局变量值不正确,或调用三方组件的函数后系统卡死
- LiteOS-A生成目标可执行文件,提示 use VFP register arguments,xxx.o does not
- clock_gettime接口获取的时间打印不对
移植
启动恢复
系统服务
公共基础库
视觉应用常见问题
- 是否存在一个全局变量,所有的页面都可以访问?
- 如何获取dom中的元素
- 如何在页面间传值?
- list如何滚动到某个item?
- text支持多行吗?
- 为什么控件不显示?
- 如何实现页面滑动?
- Left、Top为什么不生效?
- 动态绑定为什么不生效?
- 如何实现相对定位和绝对定位?
- 如何控制控件的显示与隐藏?
- 使用Margin时,有什么注意事项?
- 使用事件订阅时,有什么注意事项?
- 使用动态绑定时,有什么注意事项?
- swiper loop属性如何生效?
- 使用数组时,有什么注意事项?