I am working on a migration from IDF v4.4.4 to 5.0.1. I have a sample test project to prove a concept. here is the sample directory structure:
c:\test\CMakeLists.txt
c:\test\sdkconfig
c:\main\CMakeLists.txt
c:\main\test.c
c:\main\test.h
I would like to have a header file for test (test.h)
Here are the contents of the following files:
[ c:\main\CMakeLists.txt ]
idf_component_register( SRCS "test.c"
INCLUDE_DIRS "."
REQUIRES test
)
[ c:\main\test.c ]
#include <stdio.h>
#include "test.h"
void app_main(void)
{
}
[ c:\main\test.h ]
#define TEST_VAR 1
- -
When I compile this test project, ... I am getting the following error:
CMake Error at C:/Espressif/frameworks/esp-idf-v5.0.1/tools/cmake/build.cmake:245 (message):
Failed to resolve component 'test'.
- - -- -
My question is: how do you correctly make a .h file for the main app file? (I am doing this type of thing with a v4.4.4 version of my project)
IDF migration from version 4.4.4 to version 5.0.1 - test.h
Who is online
Users browsing this forum: Baidu [Spider] and 107 guests