I can't compile my project correctly [ESP8266-RTOS-SDK]
Posted: Fri Jan 24, 2025 1:20 pm
Hi everyone.
I'm trying to make the ESP8266 RTOS SDK work with my current project. It works well with the hello_world example, so the problem is probably me.
I have a project structure like this:
.
The build_bash is a command to enter the python environment and run the Makefile with the argument.
My problem is when I do then I have the following error:
In the ESP8266 RTOS SDK library, the files esp_log.h contains the #include "sdkconfig.h". In my new build folder, the sdkconfig.h is here too with the .
Here is the command in the Makefile in the root directory:
And here the command inside the CMakeLists.txt in the main folder:
I read several times the getting_started documentation and the build_system documentation but I don't understand my mistake.
If someone can help me to solve this issue. Thank you!
I'm trying to make the ESP8266 RTOS SDK work with my current project. It works well with the hello_world example, so the problem is probably me.
I have a project structure like this:
.
- ├── build_bash.sh
- ├── CMakeLists.txt
- ├── main
- │ ├── CMakeLists.txt
- │ ├── component.mk
- │ ├── debug.c
- │ ├── http_connection.c
- │ ├── https_connection.c
- │ ├── include
- │ │ ├── debug.h
- │ │ ├── http_connection.h
- │ │ ├── https_connection.h
- │ │ ├── sdkconfig.h
- │ │ └── wifi.h
- │ ├── main.c
- │ └── wifi.c
- ├── Makefile
- └── README.md
My problem is when I do
- make menuconfig
- make flash
- /home/psykozz09/Libraries/ESP8266_RTOS_SDK/ESP8266_RTOS_SDK/components/log/include/esp_log.h:131:26: error: 'CONFIG_LOG_DEFAULT_LEVEL' undeclared (first use in this function); did you mean 'LOG_LOCAL_LEVEL'?
- #define LOG_LOCAL_LEVEL CONFIG_LOG_DEFAULT_LEVEL
Code: Select all
#define CONFIG_LOG_DEFAULT_LEVEL 3
Here is the command in the Makefile in the root directory:
Code: Select all
#
# This is a project Makefile. It is assumed the directory this Makefile resides in is a
# project subdirectory.
#
PROJECT_NAME := alimentaire
include $(IDF_PATH)/make/project.mk
Code: Select all
idf_component_register(SRCS "debug.c" "http_connection.c" "https_connection.c" "main.c" "wifi.c"
INCLUDE_DIRS "include")
If someone can help me to solve this issue. Thank you!