My program depends on asio_http2_server.h
and i'm not able to get this file on my install and getting this error during run
fatal error: 'nghttp2/asio_http2_server.h' file not found
2 | #include <nghttp2/asio_http2_server.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/example-app.dir/example-app.cpp.o] Error 1
make[1]: *** [CMakeFiles/example-app.dir/all] Error 2
make: *** [all] Error 2
I have installed nghttp2 on MAC using brew
brew install nghttp2
brew install boost cmake pkg-config libev c-ares jemalloc openssl@3
However the include doesn't contain asio_http2_server.h
due to which the programs fails
ls -l /opt/homebrew/Cellar/nghttp2/1.65.0/include/nghttp2
total 480
-rw-r--r-- 1 8gwifi admin 240623 Mar 27 00:37 nghttp2.h
-rw-r--r-- 1 8gwifi admin 1605 Mar 27 00:37 nghttp2ver.h
I also tried manually compiling the Libray
git clone .git
cd nghttp2
git checkout v1.65.0
./configure --prefix=/opt/homebrew/Cellar/nghttp2/1.65.0 \
--enable-asio-lib \
--with-boost-libdir=/opt/homebrew/Cellar/boost/1.87.0_1/lib \
--with-boost-includedir=/opt/homebrew/Cellar/boost/1.87.0_1/include
make -j4
make install
it doesn't contain the asio_http2_server.h
ls -l /opt/homebrew/Cellar/nghttp2/1.65.0/include/nghttp2
total 480
-rw-r--r-- 1 8gwifi admin 240623 Mar 27 00:37 nghttp2.h
-rw-r--r-- 1 8gwifi admin 1605 Mar 27 00:37 nghttp2ver.h
Appreciated the help to resolve this Issue