因此,在官方 micropython 存储库发生更改后,由于旧 esp-idf 版本不兼容,我无法再构建外部 C 模块。我遵循了这个官方文档中的确切步骤: https ://docs.micropython.org/en/latest/develop/cmodules.html
我在 /ports/unix 文件夹中运行此命令:
USER_C_MODULES=../../../modules CFLAGS_EXTRA=-DMODULE_EXAMPLE_ENABLED=1 all
我得到的错误是:
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
Including User C Module from ../../../modules/example
make: *** No rule to make target 'example/python/micropython/my_project/modules/example/example.c', needed by 'build-standard/genhdr/qstr.i.last'. Stop.
有什么想法有什么问题吗?