当前位置:   article > 正文

rk3568 OpenHarmony 3.1.1 Release 编译(踩坑记)-缺少头文件FlexLexer.h

flexlexer.h

使用LinuxMint-20.3系统编译OpenHarmony 3.1.1 Release时遇到如下错误:

[OHOS INFO] product_name : , rk3568
[OHOS INFO] ERROR at //base/update/updater/services/script/BUILD.gn:23:1: Script returned non-zero exit code.
[OHOS INFO] exec_script("//base/update/packaging_tools/code_yacc.py", args)
[OHOS INFO] ^----------
[OHOS INFO] Current dir: /home/ufo/Openharmony/rk3568/code-v3.1.1-Release/OpenHarmony/out/rk3568/
[OHOS INFO] Command: /usr/bin/env /home/ufo/Openharmony/rk3568/code-v3.1.1-Release/OpenHarmony/base/update/packaging_tools/code_yacc.py --scriptname ./bison.sh --output /home/ufo/Openharmony/rk3568/code-v3.1.1-Release/OpenHarmony/base/update/updater/services/script
[OHOS INFO] Returned 1 and printed out:
[OHOS INFO] 
[OHOS INFO] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[OHOS INFO] 
[OHOS INFO] stderr:
[OHOS INFO] 
[OHOS INFO] cp: cannot stat '/usr/include/FlexLexer.h': No such file or directory
[OHOS INFO] Traceback (most recent call last):
[OHOS INFO]   File "/home/ufo/Openharmony/rk3568/code-v3.1.1-Release/OpenHarmony/base/update/packaging_tools/code_yacc.py", line 36, in <module>
[OHOS INFO]     PARSE_SCRIPTS = subprocess.check_call(
[OHOS INFO]   File "/home/ufo/Openharmony/rk3568/code-v3.1.1-Release/OpenHarmony/prebuilts/python/linux-x86/3.9.2/lib/python3.9/subprocess.py", line 373, in check_call
[OHOS INFO]     raise CalledProcessError(retcode, cmd)
[OHOS INFO] subprocess.CalledProcessError: Command '['./bison.sh']' returned non-zero exit status 1.
[OHOS INFO] 
[OHOS INFO] See //build/ohos/ohos_part.gni:25:16: which caused the file to be included.
[OHOS INFO]     _deps += [ get_label_info(module_label, "label_with_toolchain") ]
[OHOS INFO]                ^--------------------------------------------------
[OHOS INFO] is_mmi_have_libinput = true
[OHOS INFO] is_mmi_have_hdf = false
[OHOS INFO] is_mmi_have_debug = false
[OHOS INFO] mmi_enable_combinationkey = true
[OHOS INFO] mmi_enable_pointer_drawing = true
[OHOS INFO] ---------------------------------------------
[OHOS INFO] ccache summary:
[OHOS INFO] cache hit (direct)  : 0
[OHOS INFO] cache hit (preprocessed)  : 0
[OHOS INFO] cache miss  : 0
[OHOS INFO] hit rate:  0.00% 
[OHOS INFO] mis rate: 0.00% 
[OHOS INFO] ---------------------------------------------
[OHOS INFO] file: /home/ufo/Openharmony/rk3568/code-v3.1.1-Release/OpenHarmony/out/rk3568/.ninja_log not exists
[OHOS INFO] parse file fail
[OHOS ERROR] Please check build log in /home/ufo/Openharmony/rk3568/code-v3.1.1-Release/OpenHarmony/out/rk3568/build.log
=====build  error=====
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40

根据错误提示:cp: cannot stat ‘/usr/include/FlexLexer.h’: No such file or directory
大概意思是缺少头文件FlexLexer.h

需要安装相关的依赖包:
sudo apt-get install libfl-dev

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/300450
推荐阅读
相关标签
  

闽ICP备14008679号