How to get nghttp2 working on ESP32 Arduino.

harishjp
Posts: 7
Joined: Mon Aug 28, 2017 1:42 am

How to get nghttp2 working on ESP32 Arduino.

Postby harishjp » Mon Aug 28, 2017 2:19 am

nghttp2 does not seem to work out of the box on ESP32-Arduino. I tried compiling the nghttp2-ssl example and got the following error.

Code: Select all

In file included from /Users/user1/Documents/Arduino/hardware/espressif/esp32/tools/sdk/include/nghttp/nghttp2/asio_http2_server.h:28:0,
                 from sketch/web_server.h:4,
                 from /Users/user1/projects/home-automation/test_start/test_start.ino:8:
/Users/user1/Documents/Arduino/hardware/espressif/esp32/tools/sdk/include/nghttp/nghttp2/asio_http2.h:35:39: fatal error: boost/system/error_code.hpp: No such file or directory
compilation terminated.
I noticed that it does not come with boost headers or libraries. I tried looking for them, but could not find it. Where do I find the boost headers and libraries for ESP32? And how do I instruct Arduino to pick it.

--
Thanks,
Harish

pfrench42
Posts: 2
Joined: Thu Aug 02, 2018 8:05 pm

Re: How to get nghttp2 working on ESP32 Arduino.

Postby pfrench42 » Thu Aug 02, 2018 8:08 pm

I'm getting the exact same issue since my latest git pull of esp-idf

pfrench42
Posts: 2
Joined: Thu Aug 02, 2018 8:05 pm

Re: How to get nghttp2 working on ESP32 Arduino.

Postby pfrench42 » Thu Aug 02, 2018 8:28 pm

ok, I went into my esp-idf directory and:

git submodule update

And it fixed the issue.

Who is online

Users browsing this forum: No registered users and 13 guests