Copy the openFrameworks empty example (or an example of your choosing)
add the ofxLibwebsockets folder to your addons group in XCode
go through the ofxLibwebsockets and delete platform dependent files
add the following lines to your Project.xcconfig file
LWS_PATH = "../../../addons"
LIB_SSL = "$(LWS_PATH)/ofxLibwebsockets/libs/openssl/lib/osx/libssl.a"
LIB_CRYPTO = "$(LWS_PATH)/ofxLibwebsockets/libs/openssl/lib/osx/libcrypto.a"
SSL_INC = "$(LWS_PATH)/ofxLibwebsockets/libs/openssl/"
LWS = "$(LWS_PATH)/ofxLibwebsockets/libs/libwebsockets/lib/osx/libwebsockets.a"
OFX_LWS_INCLUDE = "$(LWS_PATH)/ofxLibwebsockets/libs/ofxLibwebsockets/include"
LWS_LIBS = $(LIB_CRYPTO) $(LIB_SSL) $(LWS)
LWS_INCLUDES= $(SSL_INC) $(OFX_LWS_INCLUDE)
NOTE: if you don't have ofxLibwebsockets in your addons folder, change LWS_PATH to where it lives
in Project.xcconfig file edit your HEADER_SEARCH_PATHS and OTHER_LDFLAGS to match:
HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) $(LWS_INCLUDES)
OTHER_LDFLAGS = $(OF_CORE_LIBS) $(LWS_LIBS)
There was an error while loading. Please reload this page.