Do not put the i2cdev ESP-IDF component into lib/, but into components a well. Otherwise the Kconfig file of the component, which is the source of the macros that you are missing, will not be utilized.
Do not put the i2cdev ESP-IDF component into lib/, but into components a well. Otherwise the Kconfig file of the component, which is the source of the macros that you are missing, will not be utilized.