Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added linuxarmv6(raspberrypi) binary library and example

  • Loading branch information...
commit 78ca1f7597aefc10bada4e841e7f0e6e70b842c7 1 parent c6de891
@fishkingsin fishkingsin authored
View
80 addon_config.mk
@@ -0,0 +1,80 @@
+meta:
+ ADDON_NAME = ofxLibwebsockets
+ ADDON_DESCRIPTION = Addon for websocket library
+ ADDON_AUTHOR = James Kong
+ ADDON_TAGS = "websocket" "libwebsocket" "networking"
+ ADDON_URL =
+
+common:
+ # dependencies with other addons, a list of them separated by spaces
+ # or use += in several lines
+ ADDON_DEPENDENCIES =
+
+ # include search paths, this will be usually parsed from the file system
+ # but if the addon or addon libraries need special search paths they can be
+ # specified here separated by spaces or one per line using +=
+ ADDON_INCLUDES = libs/openssl/openssl
+ ADDON_INCLUDES += src
+ ADDON_INCLUDES += libs/ofxLibwebsockets/include
+ ADDON_INCLUDES += libs/libwebsockets/include/
+ ADDON_INCLUDES += libs/jsoncpp/json
+
+ ADDON_INCLUDES += libs/ofxLibwebsockets/src
+ ADDON_INCLUDES += libs/ofxLibwebsockets/include/ofxLibwebsockets
+ # any special flag that should be passed to the compiler when using this
+ # addon
+ ADDON_CFLAGS =
+
+ # any special flag that should be passed to the linker when using this
+ # addon, also used for system libraries with -lname
+ ADDON_LDFLAGS =
+
+ # linux only, any library that should be included in the project using
+ # pkg-config
+ ADDON_PKG_CONFIG_LIBRARIES =
+
+ # osx/iOS only, any framework that should be included in the project
+ ADDON_FRAMEWORKS =
+
+ # source files, these will be usually parsed from the file system looking
+ # in the src folders in libs and the root of the addon. if your addon needs
+ # to include files in different places or a different set of files per platform
+ # they can be specified here
+ ADDON_SOURCES = libs/jsoncpp/jsoncpp.cpp
+ ADDON_SOURCES += libs/ofxLibwebsockets/src/Server.cpp
+ ADDON_SOURCES += libs/ofxLibwebsockets/src/Reactor.cpp
+ ADDON_SOURCES += libs/ofxLibwebsockets/src/Protocol.cpp
+ ADDON_SOURCES += libs/ofxLibwebsockets/src/Events.cpp
+ ADDON_SOURCES += libs/ofxLibwebsockets/src/Connection.cpp
+ ADDON_SOURCES += libs/ofxLibwebsockets/src/Client.cpp
+
+ # some addons need resources to be copied to the bin/data folder of the project
+ # specify here any files that need to be copied, you can use wildcards like * and ?
+ ADDON_DATA =
+
+ # when parsing the file system looking for libraries exclude this for all or
+ # a specific platform
+ ADDON_LIBS_EXCLUDE =
+
+linux64:
+ # binary libraries, these will be usually parsed from the file system but some
+ # libraries need to passed to the linker in a specific order
+ #nothing yet
+
+linux:
+ #nothing yet
+
+win_cb:
+ #nothing yet
+linuxarmv6l:
+ ADDON_LDFLAGS = -lssl
+
+ ADDON_LIBS = libs/libwebsockets/lib/linuxarmv6l/libwebsockets.a
+linuxarmv7l:
+ #nothing yet
+
+android/armeabi:
+ #nothing yet
+
+android/armeabi-v7a:
+ #nothing yet
View
13 example-server-binary/Makefile
@@ -0,0 +1,13 @@
+# Attempt to load a config.make file.
+# If none is found, project defaults in config.project.make will be used.
+ifneq ($(wildcard config.make),)
+ include config.make
+endif
+
+# make sure the the OF_ROOT location is defined
+ifndef OF_ROOT
+ OF_ROOT=../../..
+endif
+
+# call the project makefile!
+include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk
View
0  example-server-binary/bin/libs/.gitkeep
No changes.
View
17 example-server-binary/bin/readMe.txt
@@ -0,0 +1,17 @@
+
+OF linux:
+
+this folder contains necessary components that need to be exported with the application:
+
+libs
+------ contains .so (shared objects) that the app needs to run against
+------ this allows OF linux apps to be released in a very portable way
+------ users of the apps shouldn't need to install anything besides glut
+------ (which should be installed in most cases)
+
+clickToLaunchApp.sh
+------ a shell script which runs the exe and set this variable:
+------ LD_LIBRARY_PATH, so that the app looks locally for the .so
+------ (shared objects) to run
+
+
View
9 example-server-binary/src/main.cpp
@@ -1,13 +1,16 @@
#include "ofMain.h"
#include "testApp.h"
+#ifndef TARGET_LINUX_ARM
#include "ofAppGlutWindow.h"
-
+#endif
//========================================================================
int main( ){
-
+#ifndef TARGET_LINUX_ARM
ofAppGlutWindow window;
ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context
-
+#else
+ ofSetupOpenGL(1024,768, OF_WINDOW); // <-------- setup the GL context
+#endif
// this kicks off the running of my app
// can be OF_WINDOW or OF_FULLSCREEN
// pass in width and height too:
View
BIN  libs/libwebsockets/lib/linuxarmv6l/libwebsockets.a
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.