|
61 | 61 | * Via OF Project Generator |
62 | 62 | 1. Add ofxLibwebsockets to your addons |
63 | 63 | 2. Open your new project |
64 | | - 3. Set a Preprocessor definition for libwebsockets |
65 | | - * right click on your project in the solution explorer, click "Properties" |
66 | | - * go to C/C++ > Preprocessor in the list on the right |
67 | | - * Make sure you're editing "All Configurations", not just Debug or Release (drop down at the top left) |
68 | | - * Click the drop down next to "Preprocessor Definitions" and select <Edit> |
69 | | - * In the text box that pops up, paste |
70 | | - ``` |
71 | | - _WIN32_WINNT=0x501 |
72 | | - ``` |
| 64 | + |
73 | 65 | * Adding to new/existing project: |
74 | 66 | 1. Add the ofxLibwebsockets source files to the C++ Linker |
75 | 67 | * right click on project in the solution explorer, click "Properties", Go down to C++ > General |
|
106 | 98 |
|
107 | 99 | 3. Now go down to Linker > Input; open the editor "Additional dependencies" the same way |
108 | 100 | * Add websockets_static.lib and ZLIB.lib |
109 | | - * If you need to use OpenSSL, add libeay32.lib and ssleay32.lib |
110 | | - 4. Finally, go to C/C++ > Preprocessor |
111 | | - * Make sure you're editing "All Configurations", not just Debug or Release (drop down at the top left) |
112 | | - * Click the drop down next to "Preprocessor Definitions" and select *Edit* |
113 | | - * In the text box that pops up, paste |
114 | | - ``` |
115 | | - _WIN32_WINNT=0x501 |
116 | | - ``` |
117 | 101 | |
118 | 102 | * Linux |
119 | 103 | * Use openFramework's projectgenerator and voilà! |
120 | 104 |
|
121 | 105 | ## Building libwebockets |
122 | 106 |
|
123 | | -ofxLibwebsockets uses [libwebsockets 1.3](http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/tag/?id=v1.3-chrome37-firefox30) |
| 107 | +ofxLibwebsockets uses [libwebsockets 1.5](https://github.com/warmcat/libwebsockets/releases/tag/v1.5-chrome47-firefox41) |
124 | 108 |
|
125 | 109 | ### OS X |
126 | 110 |
|
@@ -202,4 +186,4 @@ cp lib/Relase/libwebsockets.a /PATH/TO/OF/addons/ofxLibwebsockets/libs/libwebsoc |
202 | 186 | * Click Generate |
203 | 187 | * Open `build\libwebsockets.sln` from your source folder |
204 | 188 | * 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` |
| 189 | + * 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