运行hb build -f出错
-
jimmy1606@ubuntu:~/xr806_openharmony$ hb build -f
[OHOS INFO] ERROR at //build/lite/config/BUILDCONFIG.gn:38:25: Undefined identifier
[OHOS INFO] compile_prefix = "${board_toolchain_prefix}"
[OHOS INFO] ^---------------------
[OHOS ERROR] you can check build log in /home/jimmy1606/xr806_openharmony/out/xr806/wifi_skylark/build.log
[OHOS ERROR] /home/jimmy1606/tools/gn gen /home/jimmy1606/xr806_openharmony/out/xr806/wifi_skylark --root=/home/jimmy1606/xr806_openharmony --dotfile=/home/jimmy1606/xr806_openharmony/build/lite/.gn --script-executable=python3 --args=ohos_build_type="debug" ohos_build_compiler_specified="clang" ohos_build_compiler_dir="/home/jimmy1606/llvm" product_path="/home/jimmy1606/xr806_openharmony/vendor/xradio/xr806" device_path="/home/jimmy1606/xr806_openharmony/device/xradio/xr806/liteos_m" ohos_kernel_type="liteos_m" enable_ohos_kernel_liteos_m_fs = false enable_ohos_kernel_liteos_m_cppsupport = false disable_huks_binary = false disable_authenticate = false ohos_full_compile=true failed, return code is 1
jimmy1606@ubuntu:~/xr806_openharmony$ -
@jimmy606 你这个问题有点奇怪,应该是gn脚本写的不对,你可以按照提示,看看out/wifi_skylark/build.log的内容提示是哪里错误了
-
-
-
@jimmy606 device\xradio\xr806\liteos_m\config.gni里面,编译工具的路径不正确,找不到编译工具的路径,请修改。
-
-
@i_a_student 果真如此。多谢指点! 原来把默认的路径注释掉了。刚开始创建tools文件夹的位置和官方的路径不一样,路径做了些修改,编译的时候中间出现过很多问题,又把tools文件夹copy到官方指定的路径。config删掉新路径的同时忘记删掉默认的路径前面#。犯了个低级错误。
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号