编译错误介绍
编译 esp-idf 或其他 ESP-SDK 下 examples, 在某些场景下会出现如下错误 LOG:
-
warning: Kconfiglib expands environment variables in strings directly, meaning you do not need 'option env=...' "bounce" symbols. For compatibility with the C tools, rename IDF_TARGET_ENV to IDF_TARGET (so that the symbol name matches the environment variable name).
-
error: couldn't parse 'source "$COMPONENT_KCONFIGS_PROJBUILD"': expected string
解决办法
python -m pip uninstall kconfiglib
简要解释
此错误由于系统中早已经有 kconfig 组件,而此组件和 esp-idf 等 ESP-SDK 需要的 kconfig 组件版本不兼容。
所以这里卸载系统中默认的 kconfig 组件。