Spacebrew openFrameworks examples (including ofxSpacebrew addon)
- download openframeworks: http://openframeworks.cc/download
- clone ofxLibwebsockets (https://github.com/labatrockwell/ofxLibwebsockets) in openframeworks/addons
- clone this repo into openframeworks/addons
- follow the steps below to setup ofxSpacebrew + ofxLibwebsockets
-
OS X
-
Via OF Project Generator:
- Delete ofxLibwebsockets/libs/libwebsockets/include/win32port
- Add ofxLibwebsockets to your addons via the projectGenerator
- Add ofxSpacebrew to your addons via the projectGenerator
- That's it!
-
Adding to a new/existing project:
-
Delete ofxLibwebsockets/libs/libwebsockets/include/win32port
-
Add ofxSpacebrew and ofxLibwebsockets code to your project
-
Include ofxLibwebsockets' xcconfig file via your project's Project.xcconfig file:
- Define where it lives:
OFX_LWS_PATH = "$(OF_PATH)/addons/ofxLibwebsockets"
- Include ofxLibwebsockets xcconfig
#include "../../../addons/ofxLibwebsockets/ofxLibwebsockets.xcconfig"
- Add to existing vars in Project.xcconfig:
OTHER_LDFLAGS = $(OF_CORE_LIBS) $(OFX_LWS_LIBS) HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) $(OFX_LWS_INCLUDES) LIBRARY_SEARCH_PATHS = $(inherited) $(OFX_LWS_SEARCH)
- Define where it lives:
-
-
-
Windows
- Adding to new/existing project:
-
Add the ofxLibwebsockets source files to the C++ Linker
- right click on project in the solution explorer, click "Properties", Go down to C++ > General
- click the arrow at the right of "Additional include directories" and select "edit"
- add the ofxLibwebsockets source files:
..\..\..\addons\ofxLibwebsockets\libs\jsonpp ..\..\..\addons\ofxLibwebsockets\libs\jsonpp\json ..\..\..\addons\ofxLibwebsockets\libs\libwebsockets\include ..\..\..\addons\ofxLibwebsockets\libs\libwebsockets\include\win32port ..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\include ..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src ..\..\..\addons\ofxLibwebsockets\libs\openssl\openssl ..\..\..\addons\ofxLibwebsockets\src
-
- Adding to new/existing project:
2. Add ofxSpacebrew source files to the C++ Linker
* right click on project in the solution explorer, click "Properties", Go down to C++ > General
* click the arrow at the right of "Additional include directories" and select "edit"
* add the ofxSpacebrew source files:
```
..\..\..\addons\ofxSpacebrew\src