/main.c:20:10: fatal error: esp_https_server.h: No such file or directory

eliott
Posts: 18
Joined: Sat Mar 28, 2020 11:57 am

/main.c:20:10: fatal error: esp_https_server.h: No such file or directory

Postby eliott » Thu Jan 14, 2021 6:33 pm

Hello,

I'm trying to switch from and http server to https server.

I'm unable to compile in my program, but its the same in the example dir: \esp-idf\examples\protocols\https_server

Also If I want to check if my esp-idf is up to date I found this command "git pull origin master". I want to be sure that is the good command to executre in the "esp-idf" dir. This part is not specified in the documentation, does the new execution of "esp-idf-tools-setup-2.3" update the sdk ?

Thank you for help.

Eliott.

eliott
Posts: 18
Joined: Sat Mar 28, 2020 11:57 am

Re: /main.c:20:10: fatal error: esp_https_server.h: No such file or directory

Postby eliott » Mon Jan 25, 2021 7:58 pm

Solved: HTTPS component was not activated in sdkconfig (use idf.py menuconfig to set this option...)

kraxor
Posts: 7
Joined: Wed Jan 13, 2021 12:08 pm

Re: /main.c:20:10: fatal error: esp_https_server.h: No such file or directory

Postby kraxor » Tue Apr 27, 2021 10:17 am

Also don't forget you need to require it in CMakeLists.txt:

Code: Select all

idf_component_register(
        SRCS
...
        REQUIRES
        "esp_https_server"
)

Who is online

Users browsing this forum: Google [Bot] and 87 guests