Skip to content

Commit 3bccd18

Browse files
Merge 0.9.0
2 parents de8b21f + 74788f0 commit 3bccd18

File tree

157 files changed

+7143
-7652
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+7143
-7652
lines changed

README.md

+29
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+
* libwebsockets' [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`

addon_config.mk

+14-5
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,24 @@ vs:
8484
# include search paths, this will be usually parsed from the file system
8585
# but if the addon or addon libraries need special search paths they can be
8686
# specified here separated by spaces or one per line using +=
87-
ADDON_INCLUDES += libs/libwebsockets/include/win32port
88-
ADDON_INCLUDES += libs/libwebsockets/include/win32port/win32helpers
89-
9087

9188
# when parsing the file system looking for include paths exclude this for all or
9289
# a specific platform
9390
ADDON_INCLUDES_EXCLUDE
94-
ADDON_LIBS = libs/libwebsockets/lib/win32/Release/websockets.lib
95-
ADDON_LIBS += libs/libwebsockets/lib/win32/Release/zlib_internal.lib
91+
92+
# Win32/Debug
93+
# ADDON_LIBS = libs/libwebsockets/lib/vs/Win32/Debug/websockets.lib
94+
# ADDON_LIBS += libs/libwebsockets/lib/vs/Win32/Debug/zlib_internal.lib
95+
# Win32/Release
96+
# ADDON_LIBS = libs/libwebsockets/lib/vs/Win32/Release/websockets.lib
97+
# ADDON_LIBS += libs/libwebsockets/lib/vs/Win32/Release/zlib_internal.lib
98+
# x64/Debug
99+
# ADDON_LIBS = libs/libwebsockets/lib/vs/x64/Debug/websockets_static.lib
100+
# ADDON_LIBS += libs/libwebsockets/lib/vs/x64/Debug/ZLIB.lib
101+
# x64/Release
102+
# ADDON_LIBS = libs/libwebsockets/lib/vs/x64/Release/websockets_static.lib
103+
# ADDON_LIBS += libs/libwebsockets/lib/vs/x64/Release/ZLIB.lib
104+
96105

97106
linuxarmv6l:
98107
ADDON_LDFLAGS = -lssl

example_client_blob/Project.xcconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ ICON_FILE_PATH = $(OF_PATH)/libs/openFrameworksCompiled/project/osx/
1313
//IF YOU WANT AN APP TO HAVE A CUSTOM ICON - PUT THEM IN YOUR DATA FOLDER AND CHANGE ICON_FILE_PATH to:
1414
//ICON_FILE_PATH = bin/data/
1515

16-
OTHER_LDFLAGS = $(OF_CORE_LIBS)
16+
OTHER_LDFLAGS = $(OF_CORE_LIBS) $(OF_CORE_FRAMEWORKS)
1717
HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS)
+35-25
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,35 @@
1-
Microsoft Visual Studio Solution File, Format Version 12.00
2-
# Visual Studio 2012
3-
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example_client_blob", "example_client_blob.vcxproj", "{7FD42DF7-442E-479A-BA76-D0022F99702A}"
4-
EndProject
5-
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "openframeworksLib", "..\..\..\libs\openFrameworksCompiled\project\vs\openframeworksLib.vcxproj", "{5837595D-ACA9-485C-8E76-729040CE4B0B}"
6-
EndProject
7-
Global
8-
GlobalSection(SolutionConfigurationPlatforms) = preSolution
9-
Debug|Win32 = Debug|Win32
10-
Release|Win32 = Release|Win32
11-
EndGlobalSection
12-
GlobalSection(ProjectConfigurationPlatforms) = postSolution
13-
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Debug|Win32.ActiveCfg = Debug|Win32
14-
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Debug|Win32.Build.0 = Debug|Win32
15-
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Release|Win32.ActiveCfg = Release|Win32
16-
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Release|Win32.Build.0 = Release|Win32
17-
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Debug|Win32.ActiveCfg = Debug|Win32
18-
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Debug|Win32.Build.0 = Debug|Win32
19-
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Release|Win32.ActiveCfg = Release|Win32
20-
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Release|Win32.Build.0 = Release|Win32
21-
EndGlobalSection
22-
GlobalSection(SolutionProperties) = preSolution
23-
HideSolutionNode = FALSE
24-
EndGlobalSection
25-
EndGlobal
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio 14
3+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example_client_blob", "example_client_blob.vcxproj", "{7FD42DF7-442E-479A-BA76-D0022F99702A}"
4+
EndProject
5+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "openframeworksLib", "..\..\..\libs\openFrameworksCompiled\project\vs\openframeworksLib.vcxproj", "{5837595D-ACA9-485C-8E76-729040CE4B0B}"
6+
EndProject
7+
Global
8+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
9+
Debug|Win32 = Debug|Win32
10+
Debug|x64 = Debug|x64
11+
Release|Win32 = Release|Win32
12+
Release|x64 = Release|x64
13+
EndGlobalSection
14+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15+
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Debug|Win32.ActiveCfg = Debug|Win32
16+
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Debug|Win32.Build.0 = Debug|Win32
17+
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Debug|x64.ActiveCfg = Debug|x64
18+
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Debug|x64.Build.0 = Debug|x64
19+
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Release|Win32.ActiveCfg = Release|Win32
20+
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Release|Win32.Build.0 = Release|Win32
21+
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Release|x64.ActiveCfg = Release|x64
22+
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Release|x64.Build.0 = Release|x64
23+
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Debug|Win32.ActiveCfg = Debug|Win32
24+
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Debug|Win32.Build.0 = Debug|Win32
25+
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Debug|x64.ActiveCfg = Debug|x64
26+
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Debug|x64.Build.0 = Debug|x64
27+
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Release|Win32.ActiveCfg = Release|Win32
28+
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Release|Win32.Build.0 = Release|Win32
29+
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Release|x64.ActiveCfg = Release|x64
30+
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Release|x64.Build.0 = Release|x64
31+
EndGlobalSection
32+
GlobalSection(SolutionProperties) = preSolution
33+
HideSolutionNode = FALSE
34+
EndGlobalSection
35+
EndGlobal

0 commit comments

Comments
 (0)