乐鑫技术交流
直播中

任凭风吹

9年用户 987经验值
擅长:可编程逻辑 电源/新能源 MEMS/传感技术 制造/封装 模拟技术
私信 关注
[问答]

编译esp-at源码时出错的原因?

在编译esp-at源码时,出现如下的错误提示;

# make

fatal: 不是一个 git 仓库(或者任何父目录):.git

Makefile:36: There is no module_config/module_wroom-32,Using module_config/module_esp32_default

/home/jizhe/esp/esp-at-2.0.0.0_esp32/tools/mkfatfs/Makefile.projbuild:13: 警告:覆盖关于目标“clean”的配方

/home/jizhe/esp/esp-at-2.0.0.0_esp32/esp-idf/components/app_update/Makefile.projbuild:48: 警告:忽略关于目标“clean”的旧配方

Toolchain path: /opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc

Toolchain version: crosstool-ng-1.22.0-80-g6c4433a5

Compiler version: 5.2.0

Python requirements from E:/msys32_at_idf_3.3_test/home/jizhe/esp/esp-at-2.0.0.0_esp32/esp-idf/requirements.txt are satisfied.



App "esp-at" version: ESP-AT

Generating esp32.project.ld

Traceback (most recent call last):

  File "E:/msys32_at_idf_3.3_test/home/jizhe/esp/esp-at-2.0.0.0_esp32/esp-idf/tools/ldgen/ldgen.py", line 113, in

    main()

  File "E:/msys32_at_idf_3.3_test/home/jizhe/esp/esp-at-2.0.0.0_esp32/esp-idf/tools/ldgen/ldgen.py", line 96, in main

    sdkconfig = SDKConfig(kconfig_file, config_file, args.env)

  File "E:/msys32_at_idf_3.3_test/home/jizhe/esp/esp-at-2.0.0.0_esp32/esp-idf/tools/ldgen/sdkconfig.py", line 56, in __init__

    self.config = kconfiglib.Kconfig(kconfig_file.name)

  File "E:/msys32_at_idf_3.3_test/home/jizhe/esp/esp-at-2.0.0.0_esp32/esp-idf/tools/kconfig_new/kconfiglib.py", line 656, in __init__

    self.top_node)  # prev_node

  File "E:/msys32_at_idf_3.3_test/home/jizhe/esp/esp-at-2.0.0.0_esp32/esp-idf/tools/kconfig_new/kconfiglib.py", line 1583, in _parse_block

    self._enter_file(sourced_file)

  File "E:/msys32_at_idf_3.3_test/home/jizhe/esp/esp-at-2.0.0.0_esp32/esp-idf/tools/kconfig_new/kconfiglib.py", line 1167, in _enter_file

    .format(self._filename, self._linenr, e.message))

IOError: E:/msys32_at_idf_3.3_test/home/jizhe/esp/esp-at-2.0.0.0_esp32/esp-idf/Kconfig:59: Could not open 'E:msys32_at_idf_3.3_testhomejizheespesp-at-2.0.0.0_esp32esp-idfcomponentsapp_updateKconfig.projbuild' (ENOENT: No such file or directory). Perhaps the $srctree environment variable (which was unset) is set incorrectly. Note that the current value of $srctree is saved when the Kconfig instance is created (for consistency and to cleanly separate instances). Also note that e.g. $FOO in a 'source' statement does not refer to the environment variable FOO, but rather to the Kconfig Symbol FOO (which would commonly have 'option env="FOO"' in its definition).

make: *** [/home/jizhe/esp/esp-at-2.0.0.0_esp32/esp-idf/components/esp32/Makefile.projbuild:51:/home/jizhe/esp/esp-at-2.0.0.0_esp32/build/esp32/esp32.project.ld] 错误 1



提示未能找到该文件,看输出的日志,个人认为是文件路径中斜杠符号丢失所致,请问这个该如何解决呢。

编译环境:WIN7 64bit, MSYS2

Toolchain path: /opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc

Toolchain version: crosstool-ng-1.22.0-80-g6c4433a5

Compiler version: 5.2.0

ESP-IDF: V3.3

AT源码:esp-at-2.0.0.0_esp32

更多回帖

发帖
×
20
完善资料,
赚取积分