using myapp eclipse esp-idf configuration as template - adding project folder
Posted: Sun Mar 19, 2017 2:47 pm
Hi there,
I followed the instructions to install esp-idf, eclipse and myapp as a template for creating new projects.
The build process works correctly. No error.
So, in order to create a new project, I just copy "myapp" and paste it with a new name in eclipse.
Again the build process works without any complain in the new app.
Now, I want to alter this new project and add some subfolders in eclipse under its folder called main.
I created additional source and header files in main folder and added two subfolder underneath main folder.
I edited the "makefile" by adding two lines:
COMPONENT_ADD_INCLUDEDIRS := components/include
include $(IDF_PATH)/make/project.mk
Underneath main folder I edited component.mk by adding two lines:
COMPONENT_ADD_INCLUDEDIRS := . subfolder1_of_main subfolder2_of_main
COMPONENT_SRCDIRS := $(COMPONENT_ADD_INCLUDEDIRS)
Now, when I start build process again I don't get any errors from CDT Build Console
but all subfolders and all newly added header and source files in the main folder are marked with a blue question mark.
How can I get eclipse/esp-idf to find the new files and subdirectories?
Thanks for any hint in advance.
Best regards
DL88AI88
I followed the instructions to install esp-idf, eclipse and myapp as a template for creating new projects.
The build process works correctly. No error.
So, in order to create a new project, I just copy "myapp" and paste it with a new name in eclipse.
Again the build process works without any complain in the new app.
Now, I want to alter this new project and add some subfolders in eclipse under its folder called main.
I created additional source and header files in main folder and added two subfolder underneath main folder.
I edited the "makefile" by adding two lines:
COMPONENT_ADD_INCLUDEDIRS := components/include
include $(IDF_PATH)/make/project.mk
Underneath main folder I edited component.mk by adding two lines:
COMPONENT_ADD_INCLUDEDIRS := . subfolder1_of_main subfolder2_of_main
COMPONENT_SRCDIRS := $(COMPONENT_ADD_INCLUDEDIRS)
Now, when I start build process again I don't get any errors from CDT Build Console
but all subfolders and all newly added header and source files in the main folder are marked with a blue question mark.
How can I get eclipse/esp-idf to find the new files and subdirectories?
Thanks for any hint in advance.
Best regards
DL88AI88