siara-cc / esp32-idf-sqlite3

Sqlite library for esp-idf (esp32) framework
Apache License 2.0
147 stars 57 forks source link

IDF Change from V4.1.1 --> V5.2.1 #29

Open prime571113 opened 3 months ago

prime571113 commented 3 months ago

I slightly modified sqlite3 for working with idf v5.2.1 1. DIR: components/esp32-idf-sqlite3

esp32.c

add : #include <esp_random.h>

CMakeLists.txt

  change :                        PRIV_REQUIRES console spiffs spi_flash)
         add spi_flash

2. DIR : examples/esp32-idf-sqlite3-examples/spiffs

CMakeList.txt

     change:  
        #include($ENV{IDF_PATH}/tools/cmake/idf.cmake)     
        include($ENV{IDF_PATH}/tools/cmake/project.cmake)

main/CMakeLists.txt

    change : 
          1 set(COMPONENT_SRCS "spiffs.c")
            2 set(COMPONENT_ADD_INCLUDEDIRS "")
            3 
            4 #comment it :idf_build_component(esp32-idf-sqlite3)
            5 #add spi_flash
            6 idf_component_register(SRCS "${COMPONENT_SRCS}"
            7                        REQUIRES esp32-idf-sqlite3 spiffs spi_flash esp_timer
            8                       )

I tested spiffs example at examples/esp32-idf-sqlite3-examples/spiffs under IDF V5.2.1