Closed jvo203 closed 3 months ago
microhttpd_ws
is experimental and not supported directly.
The proper solution would be creation of libmicrohttpd_ws.pc
.
Patches are welcome.
Sorry I am unable to submit a patch due to being unfamiliar with the autoconfig process like the "configure.ac", "Makefile.am" files etc.
I've forked the libmicrohttpd repository and opened the "configure.ac, Makefile.am" but learning the auto-configuration process completely from scratch would i) take up too much time away from the daily job duties and ii) likely result in mistakes / broken libmicrohttpd.
The latest libmicrohttpd v1.0.1 can be compiled with the experimental WebSocket upgrade mechanism by issuing
./configure --enable-experimental
. When using WebSockets one needs to link with the extra WebSockets functions by adding the extra library-lmicrohttpd_ws
.Unfortunately, the "pkg-config" files does not include this extra library when compiled with the "--enable--experimental":
even though the extra library is correctly compiled and placed in the destination lib directory:
The solution: add
-lmicrohttpd_ws
to thelibmicrohttpd.pc
file thatmake install
places in the/usr/local/lib/pkgconfig
folder.