编译esp-at源码时出错

Moderator: ESP_XCGuang

Jarml0x0F
Posts: 3
Joined: Wed Nov 13, 2019 1:24 am

编译esp-at源码时出错

Postby Jarml0x0F » Wed Nov 13, 2019 1:58 am

在编译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 <module>
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

ESP_XCGuang
Posts: 25
Joined: Fri Aug 31, 2018 7:34 am

Re: 编译esp-at源码时出错

Postby ESP_XCGuang » Wed Nov 13, 2019 2:10 am

这个需要手动修改几行 esp-idf 代码; 参见 https://github.com/espressif/esp-at/issues/232

Jarml0x0F
Posts: 3
Joined: Wed Nov 13, 2019 1:24 am

Re: 编译esp-at源码时出错

Postby Jarml0x0F » Wed Nov 13, 2019 6:29 am

xcguang wrote:
Wed Nov 13, 2019 2:10 am
这个需要手动修改几行 esp-idf 代码; 参见 https://github.com/espressif/esp-at/issues/232
按照指导经过修改后可以编译通过,非常感谢!

Who is online

Users browsing this forum: No registered users and 35 guests