admin管理员组文章数量:1394740
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
本文标签: cWhat is the right way to get nghttp2 asiohttp2serverh on MACStack Overflow
版权声明:本文标题:c++ - What is the right way to get nghttp2 asio_http2_server.h on MAC - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744105097a2591028.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论