[Libwebsockets] protocol_example_standalone / Win32

Joel Winarske joel.winarske at gmail.com
Sat Jan 28 20:09:34 CET 2017


I am attempting to have lwsws load plugin protocol_example_standalone.dll.

I'm seeing:
[2017/01/28 10:43:10:2640] ERR: Failed to get init on
protocol_example_standalone.dll: The specified procedure could not be found.

It loads all the other plugins built with libwebsocket without error.

Any ideas?


Thanks,
Joel


Building this plugin on Windows required some fiddling:


*libwebsockets plugin-standalone*
1. Open VS2015 x86 Native Tools window
2. cd C:\Users\joel\Documents\GitHub\libwebsockets\plugin-standalone
3. mkdir build
4. cd build
5.
C:\Users\joel\Documents\GitHub\libwebsockets\plugin-standalone\build>cmake
.. -DLWS_WITH_LWSWS=1 -DLWS_OPENSSL_INCLUDE_DIRS=C:\OpenSSL-Win32\include
-DLWS_LIBUV_LIBRARIES=C:\Users\joel\Documents\GitHub\libuv\Debug\lib\libuv.lib
-DLWS_LIBUV_INCLUDE_DIRS=C:\Users\joel\Documents\GitHub\libuv\include

6. Open the protocol_example_standalone sln file, and update as follows:

VC++ Directories->Include Directories <append>
C:\Users\joel\Documents\GitHub\libuv\include;C:\OpenSSL-Win32\include
VC++ Directories->Library Directories <append>
C:\Users\joel\Documents\GitHub\libwebsockets\build\lib\Debug;C:\Users\joel\Documents\GitHub\libuv\Debug\lib
Linker->Input <append>
websockets.lib;libuv.lib;ws2_32.lib;;userenv.lib;psapi.lib;iphlpapi.lib

7. Build.  you get protocol_example_standalone.dll.  Drop this into your
lwsws plugin directory.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libwebsockets.org/pipermail/libwebsockets/attachments/20170128/8df92358/attachment.html>


More information about the Libwebsockets mailing list