nghttp2-asio icon indicating copy to clipboard operation
nghttp2-asio copied to clipboard

Cannot open include file: 'getopt.h' with CMake

Open achour-oussama opened this issue 3 years ago • 0 comments

Hello everyone, here is my issue:

I am trying to build the library with cmake --build on Windows but I get this error: “Cannot open include file: ‘getopt.h’”. So my first question is whether it is possible to install the library on Windows and if so, what am I doing wrong? I tried to add the .h file myself (a variant at least) but it didn’t solve the issue.

The second question is when I looked at the nghttp documentation, I saw that previously the library was directly included but it was removed and deposited here with an older version. Could I make it work directly from nghttp?

Also, I installed nghttp with vcpkg. The asio_client.h and other files are included in the buildtrees/src directory while nghttp.h and nghttpser.h are in the buildtrees/lib/include directory. So these files do exist when I install vcpkg. How could I use them?

Thank you for your help and support.

achour-oussama avatar Apr 19 '23 08:04 achour-oussama