Skip to content

How to build curl with websocket on windows #11075

Answered by jay
JAMUKI asked this question in Q&A
Discussion options

You must be logged in to vote

WebSocket support is experimental, please read about it in the curl everything book https://everything.curl.dev/libcurl/ws

curl's cmake build supports enabling websockets by using bool option ENABLE_WEBSOCKETS=ON.

For example you could open a Visual Studio developer command prompt, make a separate directory to store the generated cmake build files, build curl and install:

  • curl source dir C:\stuff\curl\curl-8.0.1
  • curl cmake build dir C:\stuff\curl\cmake-build
  • curl install dir C:\stuff\curl\cmake-install

and you open 'x64 Native Tools Command Prompt for VS 2019' shortcut and run

mkdir C:\stuff\curl\cmake-build
cd /d C:\stuff\curl\cmake-build
cmake C:\stuff\curl-8.0.1 -DCURL_USE_SCHANNEL=O…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@JAMUKI
Comment options

Answer selected by bagder
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants