Skip to content

Commit f2983ce

Browse files
committed
Update readme with vs2015/x64 libwebsockets build instructions
1 parent 0a2591f commit f2983ce

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
ofxLibwebsockets uses [libwebsockets 1.3](http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/tag/?id=v1.3-chrome37-firefox30)
124124

125125
### OS X
126+
126127
* Clone libwebsockets
127128
```
128129
cd /path/to/libwebsockets
@@ -132,7 +133,9 @@ cmake "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" ..
132133
make
133134
cmake -DCMAKE_INSTALL_PREFIX:PATH=./install . && make install
134135
```
136+
135137
### Raspberry Pi
138+
136139
* Clone libwebsockets
137140
```
138141
cd /path/to/libwebsockets
@@ -141,7 +144,9 @@ cd build
141144
cmake .. -DLWS_IPV6=OFF
142145
make
143146
```
147+
144148
### Linux
149+
145150
* Clone libwebsockets
146151
```
147152
cd /path/to/libwebsockets
@@ -151,7 +156,9 @@ cmake ..
151156
make
152157
cp lib/libwebsockets.a /path/to/ofxLibwebsocket/libs/libwebsockets/lib/linux64/
153158
```
159+
154160
### iOS
161+
155162
* Clone libwebsockets
156163
* Clone this repo; it contains compiling resources in ofxLibwebsockets/extras/ios_libwebsockets
157164
* The toolchain in this folder will allow you to create an iOS XCode project
@@ -174,3 +181,25 @@ cmake -DCMAKE_TOOLCHAIN_FILE=/path/to/ofxLibwebsockets/extras/ios_libwebsockets/
174181
cd /path/to/your/build/folder
175182
cp lib/Relase/libwebsockets.a /PATH/TO/OF/addons/ofxLibwebsockets/libs/libwebsockets/lib/iosarmv7/libwebsockets.a
176183
```
184+
185+
### Windows (Visual Studio, x64)
186+
187+
* Install OpenSSL
188+
* Binaries are available from [Shining Light Productions] (https://slproweb.com/products/Win32OpenSSL.html)
189+
* If that site is no longer around, try the [OpenSSL Community page](https://www.openssl.org/community/binaries.html)
190+
* Install [Win64 OpenSSL v1.0.2d](https://slproweb.com/download/Win64OpenSSL-1_0_2d.exe) (Full version, not Light)
191+
* Use the default location so CMake can find it easily: `C:\OpenSSL-Win64`
192+
193+
* Build libwebsockets
194+
* libwesockets' [Build Instructions](https://github.com/warmcat/libwebsockets/blob/master/README.build.md), for reference
195+
* Download [libwebsockets v1.3](https://github.com/warmcat/libwebsockets/releases/tag/v1.3-chrome37-firefox30)
196+
* Open the CMake GUI, `cmake-gui.exe`
197+
* Create a `build` folder inside the libwebsockets source folder
198+
* Set paths in CMake GUI to your source & build folders
199+
* Click Configure
200+
* Select `Visual Studio 14 2015 Win64` from dropdown, and leave default setting of `Use default native compilers`
201+
* Click Finish
202+
* Click Generate
203+
* Open `build\libwebsockets.sln` from your source folder
204+
* Compile the `ALL_BUILD` project in Debug and Release modes
205+
* Copy `websockets_static.lib` and `ZLIB.lib` from `build\lib\[Debug|Release\]` into the proper locations in ofxLibwebsockets. You don't need `websockets.lib` or `websockets.exp`

0 commit comments

Comments
 (0)