I can't compile my project correctly [ESP8266-RTOS-SDK]

PsyKozZ09
Posts: 1
Joined: Fri Jan 24, 2025 10:53 am

I can't compile my project correctly [ESP8266-RTOS-SDK]

Postby PsyKozZ09 » 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:
.
  1. ├── build_bash.sh
  2. ├── CMakeLists.txt
  3. ├── main
  4. │   ├── CMakeLists.txt
  5. │   ├── component.mk
  6. │   ├── debug.c
  7. │   ├── http_connection.c
  8. │   ├── https_connection.c
  9. │   ├── include
  10. │   │   ├── debug.h
  11. │   │   ├── http_connection.h
  12. │   │   ├── https_connection.h
  13. │   │   ├── sdkconfig.h
  14. │   │   └── wifi.h
  15. │   ├── main.c
  16. │   └── wifi.c
  17. ├── Makefile
  18. └── README.md
The build_bash is a command to enter the python environment and run the Makefile with the argument.

My problem is when I do
  1. make menuconfig
then
  1. make flash
I have the following error:
  1. /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'?
  2.  #define LOG_LOCAL_LEVEL  CONFIG_LOG_DEFAULT_LEVEL
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

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
And here the command inside the CMakeLists.txt in the main folder:

Code: Select all

idf_component_register(SRCS "debug.c" "http_connection.c" "https_connection.c" "main.c" "wifi.c"
                    INCLUDE_DIRS "include")
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!

Who is online

Users browsing this forum: Google [Bot], klaatu2, ShreyAcharya and 69 guests