mcamarotto wrote: ↑Mon Mar 01, 2021 11:21 am
I try compile the code at ESP_IDF v4.2 framework, but the command 'make' didn't work because this framework use the scripts idf.py to compile. is there update for this example?
Best regards
Hi,
It has been a while so I don't know whether you have figured it out, I just post here for future reference.
You may just create a CMakeLists.txt under the top level folder along with lib and include folders, with following content:
Code: Select all
set (srcs "lib/amigaos.c"
... other.c files in lib folder
"lib/x509asn1.c")
idf_component_register(SRCS "${srcs}"
INCLUDE_DIRS "include" "lib"
REQUIRES mbedtls libssh2 zlib)
add_definitions(-DHAVE_CONFIG_H -DBUILDING_LIBCURL)
This is how I integrated ESP32 libcurl to ESP-IDF v4.2.1. There are several compilation warning but the compilation is completed.
Hope this helps.