Skip to content

Commit 87a6bfc

Browse files
Merge branch 'theworkers-feature-raspberry-libs' into 0.8.4
2 parents 9dd723b + f53ea58 commit 87a6bfc

File tree

4 files changed

+40
-25
lines changed

4 files changed

+40
-25
lines changed

README.md

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,28 @@
117117
## Building libwebockets
118118
### OS X
119119
* Clone libwebsockets
120-
``` Cd /path/to/libwebsockets
121-
mkdir build
122-
cd build
123-
cmake "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" ..
124-
make
125-
cmake -DCMAKE_INSTALL_PREFIX:PATH=./install . && make install```
126-
120+
```
121+
cd /path/to/libwebsockets
122+
mkdir build
123+
cd build
124+
cmake "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" ..
125+
make
126+
cmake -DCMAKE_INSTALL_PREFIX:PATH=./install . && make install
127+
```
128+
### Raspberry Pi
129+
* Clone libwebsockets
130+
```
131+
cd /path/to/libwebsockets
132+
mkdir build
133+
cd build
134+
cmake .. -DLWS_IPV6=OFF
135+
make
136+
```
127137

128138
#STATUS
129-
* Version 0.8.1 (current)
139+
* Version 0.8.4 (current)
140+
* Added PRi libraries
141+
* Version 0.8.1
130142
* Overhauled all messaging, supporting senging/receiving string and binary messages of indefinite size via continuation frames
131143
* Added examples from @zebradog of sending Blob data over websockets: way faster, way cleaner!
132144
* Lots of cleanup of excessive logging, possible crashes on sending

addon_config.mk

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,20 @@ common:
4141
# in the src folders in libs and the root of the addon. if your addon needs
4242
# to include files in different places or a different set of files per platform
4343
# they can be specified here
44-
ADDON_SOURCES = libs/jsoncpp/jsoncpp.cpp
45-
ADDON_SOURCES += libs/ofxLibwebsockets/src/ofxLibwebsockets.h
46-
ADDON_SOURCES += libs/ofxLibwebsockets/include/ofxLibwebsockets/Server.h
47-
ADDON_SOURCES += libs/ofxLibwebsockets/src/Server.cpp
48-
ADDON_SOURCES += libs/ofxLibwebsockets/include/ofxLibwebsockets/Reactor.h
49-
ADDON_SOURCES += libs/ofxLibwebsockets/src/Reactor.cpp
50-
ADDON_SOURCES += libs/ofxLibwebsockets/include/ofxLibwebsockets/Protocol.h
51-
ADDON_SOURCES += libs/ofxLibwebsockets/src/Protocol.cpp
52-
ADDON_SOURCES += libs/ofxLibwebsockets/include/ofxLibwebsockets/Events.h
53-
ADDON_SOURCES += libs/ofxLibwebsockets/src/Events.cpp
54-
ADDON_SOURCES += libs/ofxLibwebsockets/include/ofxLibwebsockets/Connection.h
55-
ADDON_SOURCES += libs/ofxLibwebsockets/src/Connection.cpp
56-
ADDON_SOURCES += libs/ofxLibwebsockets/include/ofxLibwebsockets/Client.h
57-
ADDON_SOURCES += libs/ofxLibwebsockets/src/Client.cpp
44+
# ADDON_SOURCES = libs/jsoncpp/jsoncpp.cpp
45+
# ADDON_SOURCES += libs/ofxLibwebsockets/src/ofxLibwebsockets.h
46+
# ADDON_SOURCES += libs/ofxLibwebsockets/include/ofxLibwebsockets/Server.h
47+
# ADDON_SOURCES += libs/ofxLibwebsockets/src/Server.cpp
48+
# ADDON_SOURCES += libs/ofxLibwebsockets/include/ofxLibwebsockets/Reactor.h
49+
# ADDON_SOURCES += libs/ofxLibwebsockets/src/Reactor.cpp
50+
# ADDON_SOURCES += libs/ofxLibwebsockets/include/ofxLibwebsockets/Protocol.h
51+
# ADDON_SOURCES += libs/ofxLibwebsockets/src/Protocol.cpp
52+
# ADDON_SOURCES += libs/ofxLibwebsockets/include/ofxLibwebsockets/Events.h
53+
# ADDON_SOURCES += libs/ofxLibwebsockets/src/Events.cpp
54+
# ADDON_SOURCES += libs/ofxLibwebsockets/include/ofxLibwebsockets/Connection.h
55+
# ADDON_SOURCES += libs/ofxLibwebsockets/src/Connection.cpp
56+
# ADDON_SOURCES += libs/ofxLibwebsockets/include/ofxLibwebsockets/Client.h
57+
# ADDON_SOURCES += libs/ofxLibwebsockets/src/Client.cpp
5858

5959
# some addons need resources to be copied to the bin/data folder of the project
6060
# specify here any files that need to be copied, you can use wildcards like * and ?
@@ -97,7 +97,7 @@ vs:
9797

9898
linuxarmv6l:
9999
ADDON_LDFLAGS = -lssl
100-
100+
ADDON_SOURCES_EXCLUDE = libs/libwebsockets/include/win32port/%
101101
ADDON_LIBS = libs/libwebsockets/lib/linuxarmv6l/libwebsockets.a
102102
linuxarmv7l:
103103
#nothing yet

example_client_hello_world/src/main.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44

55
//========================================================================
66
int main( ){
7-
7+
#ifndef TARGET_LINUX_ARM
88
ofAppGlutWindow window;
99
ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context
10-
10+
#else
11+
ofSetupOpenGL(1024,768, OF_WINDOW);
12+
#endif
13+
1114
// this kicks off the running of my app
1215
// can be OF_WINDOW or OF_FULLSCREEN
1316
// pass in width and height too:
113 KB
Binary file not shown.

0 commit comments

Comments
 (0)