Page 1 of 1

How to get nghttp2 working on ESP32 Arduino.

Posted: Mon Aug 28, 2017 2:19 am
by harishjp
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

Re: How to get nghttp2 working on ESP32 Arduino.

Posted: Thu Aug 02, 2018 8:08 pm
by pfrench42
I'm getting the exact same issue since my latest git pull of esp-idf

Re: How to get nghttp2 working on ESP32 Arduino.

Posted: Thu Aug 02, 2018 8:28 pm
by pfrench42
ok, I went into my esp-idf directory and:

git submodule update

And it fixed the issue.