Hi,
I’ve just updated to Espressif 32 development platform 1.12.0 from 1.11.0 and when building my project PlatformIO can’t find header files from the “lib” directory. This was working fine in the previous version. I’m doing exactly what the lib/README
says.
Plarform: ESP-IDF
Error: src\main.c:3:10: fatal error: Foo.h: No such file or directory
My file structure:
|--lib
| |--Foo
| | |- Foo.c
| | |- Foo.h
|--src
|- main.c
Content of main.c
#include <Foo.h>
void app_main() {
foo();
}
Content of Foo.h
void foo();
Content of Foo.c
#include <stdio.h>
void foo() {
printf("hello");
}
My small test project the can be used to reproduce the issue.
https://github.com/guwerdo/pio-test
I suspect the issue is related to this description in the Espressif 32 dev-platform 1.12.0 release notes. But I can’t figure out where to put my library source codes in this new structure.
Starting with this release the build script for
ESP-IDF
framework usesCMake
code model as the source of build configuration (old configuration methods usingsdkconfig.h
or build flags inplatformio.ini
are deprecated).