astellato / ofxSyphon

An OF add-on for using the Syphon framework.
Other
193 stars 57 forks source link

OF - Transition to ARC #50

Closed dimitre closed 2 years ago

dimitre commented 2 years ago

Opening this issue here to notify a transition to ARC in the next OF Release Some more info here https://github.com/openframeworks/openFrameworks/issues/6848 https://github.com/openframeworks/openFrameworks/issues/6848#issuecomment-1064459744 Thanks

sloev commented 2 years ago

this is a trace of trying to build ofxsyphon using ofx2220908 nightly and vscode:

      use __bridge to convert directly (no change in ownership)
                [(SyphonOpenGLServer *)mSyphon setName:title];
                  ^
                  __bridge 
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:42:26: note: 
      use CFBridgingRelease call to transfer ownership of a +1 'void *' into ARC
                [(SyphonOpenGLServer *)mSyphon setName:title];
                                       ^
                                       CFBridgingRelease( )
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:53:3: error: 
      'NSAutoreleasePool' is unavailable: not available in automatic reference counting
      mode
                NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:10:12: note: 
      'NSAutoreleasePool' has been explicitly marked unavailable here
@interface NSAutoreleasePool : NSObject {
           ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:53:31: error: 
      'NSAutoreleasePool' is unavailable: not available in automatic reference counting
      mode
                NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
                                            ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:10:12: note: 
      'NSAutoreleasePool' has been explicitly marked unavailable here
@interface NSAutoreleasePool : NSObject {
           ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:55:12: error: 
      cast of C pointer type 'void *' to Objective-C pointer type 'SyphonOpenGLServer *'
      requires a bridged cast
                name = [[(SyphonOpenGLServer *)mSyphon name] cStringUsingEncoding...
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:55:13: note: 
      use __bridge to convert directly (no change in ownership)
                name = [[(SyphonOpenGLServer *)mSyphon name] cStringUsingEncoding...
                          ^
                          __bridge 
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:55:34: note: 
      use CFBridgingRelease call to transfer ownership of a +1 'void *' into ARC
                name = [[(SyphonOpenGLServer *)mSyphon name] cStringUsingEncoding...
                                               ^
                                               CFBridgingRelease( )
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:87:9: error: 
      'NSAutoreleasePool' is unavailable: not available in automatic reference counting
      mode
        NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:10:12: note: 
      'NSAutoreleasePool' has been explicitly marked unavailable here
@interface NSAutoreleasePool : NSObject {
           ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:87:37: error: 
      'NSAutoreleasePool' is unavailable: not available in automatic reference counting
      mode
        NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
                                    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:10:12: note: 
      'NSAutoreleasePool' has been explicitly marked unavailable here
@interface NSAutoreleasePool : NSObject {
           ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:93:14: error: 
      assigning to 'void *' from incompatible type 'SyphonOpenGLServer *'
  ...[[SyphonOpenGLServer alloc] initWithName:@"Untitled" context:CGLGetCurrentContext() options:nil];
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:96:4: error: 
      cast of C pointer type 'void *' to Objective-C pointer type 'SyphonOpenGLServer *'
      requires a bridged cast
                [(SyphonOpenGLServer *)mSyphon publishFrameTexture:texData.textur...
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:96:5: note: 
      use __bridge to convert directly (no change in ownership)
                [(SyphonOpenGLServer *)mSyphon publishFrameTexture:texData.textur...
                  ^
                  __bridge 
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:96:26: note: 
      use CFBridgingRelease call to transfer ownership of a +1 'void *' into ARC
                [(SyphonOpenGLServer *)mSyphon publishFrameTexture:texData.textur...
                                       ^
                                       CFBridgingRelease( )
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:107:5: error: 
      'NSAutoreleasePool' is unavailable: not available in automatic reference counting
      mode
    NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:10:12: note: 
      'NSAutoreleasePool' has been explicitly marked unavailable here
@interface NSAutoreleasePool : NSObject {
           ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:107:33: error: 
      'NSAutoreleasePool' is unavailable: not available in automatic reference counting
      mode
    NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
                                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:10:12: note: 
      'NSAutoreleasePool' has been explicitly marked unavailable here
@interface NSAutoreleasePool : NSObject {
           ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [/Users/sloev/Documents/of_nightly/addons/obj/osx/Debug/ofxSyphon/src/ofxSyphonServer.o] Error 1
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:64:19: warning: 
      unused variable 'title' [-Wunused-variable]
        NSString *title = [NSString stringWithString:appName];
                  ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:62:18: warning: 
      unused variable 'appImage' [-Wunused-variable]
        NSImage* appImage = [serverDescription objectForKey:SyphonServerDescripti...
                 ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:61:19: warning: 
      unused variable 'uuid' [-Wunused-variable]
        NSString *uuid = [serverDescription objectForKey:SyphonServerDescriptionUUIDKey];
                  ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:129:8: error: 
      cast of C pointer type 'CFStringRef' (aka 'const __CFString *') to Objective-C
      pointer type 'NSString *' requires a bridged cast
    if((NSString*)name == SyphonServerAnnounceNotification){
       ^~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:129:9: note: 
      use __bridge to convert directly (no change in ownership)
    if((NSString*)name == SyphonServerAnnounceNotification){
        ^
        __bridge 
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:129:19: note: 
      use CFBridgingRelease call to transfer ownership of a +1 'CFStringRef'
      (aka 'const __CFString *') into ARC
    if((NSString*)name == SyphonServerAnnounceNotification){
                  ^
                  CFBridgingRelease( )
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:131:15: error: 
      cast of C pointer type 'CFStringRef' (aka 'const __CFString *') to Objective-C
      pointer type 'NSString *' requires a bridged cast
    } else if((NSString*)name == SyphonServerUpdateNotification){
              ^~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:131:16: note: 
      use __bridge to convert directly (no change in ownership)
    } else if((NSString*)name == SyphonServerUpdateNotification){
               ^
               __bridge 
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:131:26: note: 
      use CFBridgingRelease call to transfer ownership of a +1 'CFStringRef'
      (aka 'const __CFString *') into ARC
    } else if((NSString*)name == SyphonServerUpdateNotification){
                         ^
                         CFBridgingRelease( )
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:133:15: error: 
      cast of C pointer type 'CFStringRef' (aka 'const __CFString *') to Objective-C
      pointer type 'NSString *' requires a bridged cast
    } else if((NSString*)name == SyphonServerRetireNotification){
              ^~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:133:16: note: 
      use __bridge to convert directly (no change in ownership)
    } else if((NSString*)name == SyphonServerRetireNotification){
               ^
               __bridge 
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:133:26: note: 
      use CFBridgingRelease call to transfer ownership of a +1 'CFStringRef'
      (aka 'const __CFString *') into ARC
    } else if((NSString*)name == SyphonServerRetireNotification){
                         ^
                         CFBridgingRelease( )
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:127:15: warning: 
      unused variable 'serverName' [-Wunused-variable]
    NSString *serverName, *appName;
              ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:127:28: warning: 
      unused variable 'appName' [-Wunused-variable]
    NSString *serverName, *appName;
                           ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:22:5: error: 
      'NSAutoreleasePool' is unavailable: not available in automatic reference counting
      mode
    NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:10:12: note: 
      'NSAutoreleasePool' has been explicitly marked unavailable here
@interface NSAutoreleasePool : NSObject {
           ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:22:33: error: 
      'NSAutoreleasePool' is unavailable: not available in automatic reference counting
      mode
    NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
                                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:10:12: note: 
      'NSAutoreleasePool' has been explicitly marked unavailable here
@interface NSAutoreleasePool : NSObject {
           ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:24:6: error: 
      cast of C pointer type 'void *' to Objective-C pointer type
      'SyphonNameboundClient *' requires a bridged cast
    [(SyphonNameboundClient*)mClient release];
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:24:7: note: 
      use __bridge to convert directly (no change in ownership)
    [(SyphonNameboundClient*)mClient release];
      ^
      __bridge 
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:24:30: note: 
      use CFBridgingRelease call to transfer ownership of a +1 'void *' into ARC
    [(SyphonNameboundClient*)mClient release];
                             ^
                             CFBridgingRelease( )
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:24:38: error: 
      'release' is unavailable: not available in automatic reference counting mode
    [(SyphonNameboundClient*)mClient release];
                                     ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/objc/NSObject.h:37:1: note: 
      'release' has been explicitly marked unavailable here
- (oneway void)release OBJC_ARC_UNAVAILABLE;
^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:24:38: error: 
      ARC forbids explicit message send of 'release'
    [(SyphonNameboundClient*)mClient release];
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:31:10: error: 
      cast of C pointer type 'void *' to Objective-C pointer type
      'SyphonNameboundClient *' requires a bridged cast
mClient([(SyphonNameboundClient*)s.mClient retain]),
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:31:11: note: 
      use __bridge to convert directly (no change in ownership)
mClient([(SyphonNameboundClient*)s.mClient retain]),
          ^
          __bridge 
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:31:34: note: 
      use CFBridgingRelease call to transfer ownership of a +1 'void *' into ARC
mClient([(SyphonNameboundClient*)s.mClient retain]),
                                 ^
                                 CFBridgingRelease( )
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:31:44: error: 
      'retain' is unavailable: not available in automatic reference counting mode
mClient([(SyphonNameboundClient*)s.mClient retain]),
                                           ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/objc/NSObject.h:36:1: note: 
      'retain' has been explicitly marked unavailable here
- (instancetype)retain OBJC_ARC_UNAVAILABLE;
^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:31:44: error: 
      ARC forbids explicit message send of 'retain'
mClient([(SyphonNameboundClient*)s.mClient retain]),
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:31:1: error: 
      cannot initialize a member subobject of type 'void *' with an rvalue of type
      'SyphonNameboundClient *'
mClient([(SyphonNameboundClient*)s.mClient retain]),
^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:32:14: error: 
      cast of C pointer type 'void *' to Objective-C pointer type 'SyphonOpenGLImage *'
      requires a bridged cast
latestImage([(SyphonOpenGLImage*)s.latestImage retain]),
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:32:15: note: 
      use __bridge to convert directly (no change in ownership)
latestImage([(SyphonOpenGLImage*)s.latestImage retain]),
              ^
              __bridge 
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:32:34: note: 
      use CFBridgingRelease call to transfer ownership of a +1 'void *' into ARC
latestImage([(SyphonOpenGLImage*)s.latestImage retain]),
                                 ^
                                 CFBridgingRelease( )
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:32:48: error: 
      'retain' is unavailable: not available in automatic reference counting mode
latestImage([(SyphonOpenGLImage*)s.latestImage retain]),
                                               ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/objc/NSObject.h:36:1: note: 
      'retain' has been explicitly marked unavailable here
- (instancetype)retain OBJC_ARC_UNAVAILABLE;
^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:32:48: error: 
      ARC forbids explicit message send of 'retain'
latestImage([(SyphonOpenGLImage*)s.latestImage retain]),
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:32:1: error: 
      cannot initialize a member subobject of type 'void *' with an rvalue of type
      'SyphonOpenGLImage *'
latestImage([(SyphonOpenGLImage*)s.latestImage retain]),
^           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:49:5: error: 
      'NSAutoreleasePool' is unavailable: not available in automatic reference counting
      mode
    NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:10:12: note: 
      'NSAutoreleasePool' has been explicitly marked unavailable here
@interface NSAutoreleasePool : NSObject {
           ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:49:33: error: 
      'NSAutoreleasePool' is unavailable: not available in automatic reference counting
      mode
    NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
                                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:10:12: note: 
      'NSAutoreleasePool' has been explicitly marked unavailable here
@interface NSAutoreleasePool : NSObject {
           ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:51:6: error: 
      cast of C pointer type 'void *' to Objective-C pointer type
      'SyphonNameboundClient *' requires a bridged cast
    [(SyphonNameboundClient*)mClient release];
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:51:7: note: 
      use __bridge to convert directly (no change in ownership)
    [(SyphonNameboundClient*)mClient release];
      ^
      __bridge 
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:51:30: note: 
      use CFBridgingRelease call to transfer ownership of a +1 'void *' into ARC
    [(SyphonNameboundClient*)mClient release];
                             ^
                             CFBridgingRelease( )
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:51:38: error: 
      'release' is unavailable: not available in automatic reference counting mode
    [(SyphonNameboundClient*)mClient release];
                                     ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/objc/NSObject.h:37:1: note: 
      'release' has been explicitly marked unavailable here
- (oneway void)release OBJC_ARC_UNAVAILABLE;
^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:51:38: error: 
      ARC forbids explicit message send of 'release'
    [(SyphonNameboundClient*)mClient release];
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:52:16: error: 
      cast of C pointer type 'void *' to Objective-C pointer type
      'SyphonNameboundClient *' requires a bridged cast
    mClient = [(SyphonNameboundClient*)s.mClient retain];
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:52:17: note: 
      use __bridge to convert directly (no change in ownership)
    mClient = [(SyphonNameboundClient*)s.mClient retain];
                ^
                __bridge 
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:52:40: note: 
      use CFBridgingRelease call to transfer ownership of a +1 'void *' into ARC
    mClient = [(SyphonNameboundClient*)s.mClient retain];
                                       ^
                                       CFBridgingRelease( )
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [/Users/sloev/Documents/of_nightly/addons/obj/osx/Debug/ofxSyphon/src/ofxSyphonClient.o] Error 1
5 warnings and 3 errors generated.
make[1]: *** [/Users/sloev/Documents/of_nightly/addons/obj/osx/Debug/ofxSyphon/src/ofxSyphonServerDirectory.o] Error 1
make: *** [Debug] Error 2

 *  The terminal process "/bin/zsh '-c', 'make Debug -j -s 2>&1 || exit 1'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

Compiling OF library for Debug
Done!

Compiling video for Debug
Compiling /Users/sloev/Documents/of_nightly/apps/video/src/ofApp.cpp
Compiling /Users/sloev/Documents/of_nightly/apps/video/src/main.cpp
Compiling /Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm
Compiling /Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm
Compiling /Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm
Compiling /Users/sloev/Documents/of_nightly/addons/ofxSyphon/libs/Syphon/src/SyphonNameboundClient.m
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/libs/Syphon/src/SyphonNameboundClient.m:54:9: error: 
      'release' is unavailable: not available in automatic reference counting mode
        [_name release];
               ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/objc/NSObject.h:37:1: note: 
      'release' has been explicitly marked unavailable here
- (oneway void)release OBJC_ARC_UNAVAILABLE;
^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/libs/Syphon/src/SyphonNameboundClient.m:54:9: error: 
      ARC forbids explicit message send of 'release'
        [_name release];
         ~~~~~ ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/libs/Syphon/src/SyphonNameboundClient.m:55:12: error: 
      'release' is unavailable: not available in automatic reference counting mode
        [_appname release];
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/objc/NSObject.h:37:1: note: 
      'release' has been explicitly marked unavailable here
- (oneway void)release OBJC_ARC_UNAVAILABLE;
^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/libs/Syphon/src/SyphonNameboundClient.m:55:12: error: 
      ARC forbids explicit message send of 'release'
        [_appname release];
         ~~~~~~~~ ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/libs/Syphon/src/SyphonNameboundClient.m:56:11: error: 
      'release' is unavailable: not available in automatic reference counting mode
        [_client release];
                 ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/objc/NSObject.h:37:1: note: 
      'release' has been explicitly marked unavailable here
- (oneway void)release OBJC_ARC_UNAVAILABLE;
^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/libs/Syphon/src/SyphonNameboundClient.m:56:11: error: 
      ARC forbids explicit message send of 'release'
        [_client release];
         ~~~~~~~ ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/libs/Syphon/src/SyphonNameboundClient.m:57:17: error: 
      'release' is unavailable: not available in automatic reference counting mode
        [_lockedClient release];
                       ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/objc/NSObject.h:37:1: note: 
      'release' has been explicitly marked unavailable here
- (oneway void)release OBJC_ARC_UNAVAILABLE;
^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/libs/Syphon/src/SyphonNameboundClient.m:57:17: error: 
      ARC forbids explicit message send of 'release'
        [_lockedClient release];
         ~~~~~~~~~~~~~ ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/libs/Syphon/src/SyphonNameboundClient.m:62:9: error: 
      ARC forbids explicit message send of 'dealloc'
        [super dealloc];
         ~~~~~ ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/libs/Syphon/src/SyphonNameboundClient.m:69:19: error: 
      'retain' is unavailable: not available in automatic reference counting mode
        result = [[_name retain] autorelease];
                         ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/objc/NSObject.h:36:1: note: 
      'retain' has been explicitly marked unavailable here
- (instancetype)retain OBJC_ARC_UNAVAILABLE;
^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/libs/Syphon/src/SyphonNameboundClient.m:69:19: error: 
      ARC forbids explicit message send of 'retain'
        result = [[_name retain] autorelease];
                   ~~~~~ ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/libs/Syphon/src/SyphonNameboundClient.m:69:27: error: 
      'autorelease' is unavailable: not available in automatic reference counting mode
        result = [[_name retain] autorelease];
                                 ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/objc/NSObject.h:38:1: note: 
      'autorelease' has been explicitly marked unavailable here
- (instancetype)autorelease OBJC_ARC_UNAVAILABLE;
^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/libs/Syphon/src/SyphonNameboundClient.m:69:27: error: 
      ARC forbids explicit message send of 'autorelease'
        result = [[_name retain] autorelease];
                  ~~~~~~~~~~~~~~ ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/libs/Syphon/src/SyphonNameboundClient.m:77:8: error: 
      'retain' is unavailable: not available in automatic reference counting mode
        [name retain];
              ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/objc/NSObject.h:36:1: note: 
      'retain' has been explicitly marked unavailable here
- (instancetype)retain OBJC_ARC_UNAVAILABLE;
^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/libs/Syphon/src/SyphonNameboundClient.m:77:8: error: 
      ARC forbids explicit message send of 'retain'
        [name retain];
         ~~~~ ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/libs/Syphon/src/SyphonNameboundClient.m:78:9: error: 
      'release' is unavailable: not available in automatic reference counting mode
        [_name release];
               ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/objc/NSObject.h:37:1: note: 
      'release' has been explicitly marked unavailable here
- (oneway void)release OBJC_ARC_UNAVAILABLE;
^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/libs/Syphon/src/SyphonNameboundClient.m:78:9: error: 
      ARC forbids explicit message send of 'release'
        [_name release];
         ~~~~~ ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/libs/Syphon/src/SyphonNameboundClient.m:88:22: error: 
      'retain' is unavailable: not available in automatic reference counting mode
        result = [[_appname retain] autorelease];
                            ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/objc/NSObject.h:36:1: note: 
      'retain' has been explicitly marked unavailable here
- (instancetype)retain OBJC_ARC_UNAVAILABLE;
^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/libs/Syphon/src/SyphonNameboundClient.m:88:22: error: 
      ARC forbids explicit message send of 'retain'
        result = [[_appname retain] autorelease];
                   ~~~~~~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [/Users/sloev/Documents/of_nightly/addons/obj/osx/Debug/ofxSyphon/libs/Syphon/src/SyphonNameboundClient.o] Error 1
make[1]: *** Waiting for unfinished jobs....
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:64:19: warning: 
      unused variable 'title' [-Wunused-variable]
        NSString *title = [NSString stringWithString:appName];
                  ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:62:18: warning: 
      unused variable 'appImage' [-Wunused-variable]
        NSImage* appImage = [serverDescription objectForKey:SyphonServerDescripti...
                 ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:61:19: warning: 
      unused variable 'uuid' [-Wunused-variable]
        NSString *uuid = [serverDescription objectForKey:SyphonServerDescriptionUUIDKey];
                  ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:129:8: error: 
      cast of C pointer type 'CFStringRef' (aka 'const __CFString *') to Objective-C
      pointer type 'NSString *' requires a bridged cast
    if((NSString*)name == SyphonServerAnnounceNotification){
       ^~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:129:9: note: 
      use __bridge to convert directly (no change in ownership)
    if((NSString*)name == SyphonServerAnnounceNotification){
        ^
        __bridge 
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:129:19: note: 
      use CFBridgingRelease call to transfer ownership of a +1 'CFStringRef'
      (aka 'const __CFString *') into ARC
    if((NSString*)name == SyphonServerAnnounceNotification){
                  ^
                  CFBridgingRelease( )
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:131:15: error: 
      cast of C pointer type 'CFStringRef' (aka 'const __CFString *') to Objective-C
      pointer type 'NSString *' requires a bridged cast
    } else if((NSString*)name == SyphonServerUpdateNotification){
              ^~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:131:16: note: 
      use __bridge to convert directly (no change in ownership)
    } else if((NSString*)name == SyphonServerUpdateNotification){
               ^
               __bridge 
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:131:26: note: 
      use CFBridgingRelease call to transfer ownership of a +1 'CFStringRef'
      (aka 'const __CFString *') into ARC
    } else if((NSString*)name == SyphonServerUpdateNotification){
                         ^
                         CFBridgingRelease( )
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:133:15: error: 
      cast of C pointer type 'CFStringRef' (aka 'const __CFString *') to Objective-C
      pointer type 'NSString *' requires a bridged cast
    } else if((NSString*)name == SyphonServerRetireNotification){
              ^~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:133:16: note: 
      use __bridge to convert directly (no change in ownership)
    } else if((NSString*)name == SyphonServerRetireNotification){
               ^
               __bridge 
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:133:26: note: 
      use CFBridgingRelease call to transfer ownership of a +1 'CFStringRef'
      (aka 'const __CFString *') into ARC
    } else if((NSString*)name == SyphonServerRetireNotification){
                         ^
                         CFBridgingRelease( )
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:127:15: warning: 
      unused variable 'serverName' [-Wunused-variable]
    NSString *serverName, *appName;
              ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServerDirectory.mm:127:28: warning: 
      unused variable 'appName' [-Wunused-variable]
    NSString *serverName, *appName;
                           ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:20:5: error: 
      'NSAutoreleasePool' is unavailable: not available in automatic reference counting
      mode
    NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:10:12: note: 
      'NSAutoreleasePool' has been explicitly marked unavailable here
@interface NSAutoreleasePool : NSObject {
           ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:20:33: error: 
      'NSAutoreleasePool' is unavailable: not available in automatic reference counting
      mode
    NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
                                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:10:12: note: 
      'NSAutoreleasePool' has been explicitly marked unavailable here
@interface NSAutoreleasePool : NSObject {
           ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:22:6: error: 
      cast of C pointer type 'void *' to Objective-C pointer type 'SyphonOpenGLServer *'
      requires a bridged cast
    [(SyphonOpenGLServer *)mSyphon stop];
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:22:7: note: 
      use __bridge to convert directly (no change in ownership)
    [(SyphonOpenGLServer *)mSyphon stop];
      ^
      __bridge 
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:22:28: note: 
      use CFBridgingRelease call to transfer ownership of a +1 'void *' into ARC
    [(SyphonOpenGLServer *)mSyphon stop];
                           ^
                           CFBridgingRelease( )
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:23:6: error: 
      cast of C pointer type 'void *' to Objective-C pointer type 'SyphonOpenGLServer *'
      requires a bridged cast
    [(SyphonOpenGLServer *)mSyphon release];
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:23:7: note: 
      use __bridge to convert directly (no change in ownership)
    [(SyphonOpenGLServer *)mSyphon release];
      ^
      __bridge 
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:23:28: note: 
      use CFBridgingRelease call to transfer ownership of a +1 'void *' into ARC
    [(SyphonOpenGLServer *)mSyphon release];
                           ^
                           CFBridgingRelease( )
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:23:36: error: 
      'release' is unavailable: not available in automatic reference counting mode
    [(SyphonOpenGLServer *)mSyphon release];
                                   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/objc/NSObject.h:37:1: note: 
      'release' has been explicitly marked unavailable here
- (oneway void)release OBJC_ARC_UNAVAILABLE;
^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:23:36: error: 
      ARC forbids explicit message send of 'release'
    [(SyphonOpenGLServer *)mSyphon release];
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:31:5: error: 
      'NSAutoreleasePool' is unavailable: not available in automatic reference counting
      mode
    NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:10:12: note: 
      'NSAutoreleasePool' has been explicitly marked unavailable here
@interface NSAutoreleasePool : NSObject {
           ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:31:33: error: 
      'NSAutoreleasePool' is unavailable: not available in automatic reference counting
      mode
    NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
                                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:10:12: note: 
      'NSAutoreleasePool' has been explicitly marked unavailable here
@interface NSAutoreleasePool : NSObject {
           ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:38:13: error: 
      assigning to 'void *' from incompatible type 'SyphonOpenGLServer *'
  ...[[SyphonOpenGLServer alloc] initWithName:title context:CGLGetCurrentContext() options:nil];
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:42:4: error: 
      cast of C pointer type 'void *' to Objective-C pointer type 'SyphonOpenGLServer *'
      requires a bridged cast
                [(SyphonOpenGLServer *)mSyphon setName:title];
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:42:5: note: 
      use __bridge to convert directly (no change in ownership)
                [(SyphonOpenGLServer *)mSyphon setName:title];
                  ^
                  __bridge 
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:42:26: note: 
      use CFBridgingRelease call to transfer ownership of a +1 'void *' into ARC
                [(SyphonOpenGLServer *)mSyphon setName:title];
                                       ^
                                       CFBridgingRelease( )
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:53:3: error: 
      'NSAutoreleasePool' is unavailable: not available in automatic reference counting
      mode
                NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:10:12: note: 
      'NSAutoreleasePool' has been explicitly marked unavailable here
@interface NSAutoreleasePool : NSObject {
           ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:53:31: error: 
      'NSAutoreleasePool' is unavailable: not available in automatic reference counting
      mode
                NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
                                            ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:10:12: note: 
      'NSAutoreleasePool' has been explicitly marked unavailable here
@interface NSAutoreleasePool : NSObject {
           ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:55:12: error: 
      cast of C pointer type 'void *' to Objective-C pointer type 'SyphonOpenGLServer *'
      requires a bridged cast
                name = [[(SyphonOpenGLServer *)mSyphon name] cStringUsingEncoding...
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:55:13: note: 
      use __bridge to convert directly (no change in ownership)
                name = [[(SyphonOpenGLServer *)mSyphon name] cStringUsingEncoding...
                          ^
                          __bridge 
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:55:34: note: 
      use CFBridgingRelease call to transfer ownership of a +1 'void *' into ARC
                name = [[(SyphonOpenGLServer *)mSyphon name] cStringUsingEncoding...
                                               ^
                                               CFBridgingRelease( )
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:87:9: error: 
      'NSAutoreleasePool' is unavailable: not available in automatic reference counting
      mode
        NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:10:12: note: 
      'NSAutoreleasePool' has been explicitly marked unavailable here
@interface NSAutoreleasePool : NSObject {
           ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:87:37: error: 
      'NSAutoreleasePool' is unavailable: not available in automatic reference counting
      mode
        NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
                                    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:10:12: note: 
      'NSAutoreleasePool' has been explicitly marked unavailable here
@interface NSAutoreleasePool : NSObject {
           ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:93:14: error: 
      assigning to 'void *' from incompatible type 'SyphonOpenGLServer *'
  ...[[SyphonOpenGLServer alloc] initWithName:@"Untitled" context:CGLGetCurrentContext() options:nil];
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:96:4: error: 
      cast of C pointer type 'void *' to Objective-C pointer type 'SyphonOpenGLServer *'
      requires a bridged cast
                [(SyphonOpenGLServer *)mSyphon publishFrameTexture:texData.textur...
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:96:5: note: 
      use __bridge to convert directly (no change in ownership)
                [(SyphonOpenGLServer *)mSyphon publishFrameTexture:texData.textur...
                  ^
                  __bridge 
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:96:26: note: 
      use CFBridgingRelease call to transfer ownership of a +1 'void *' into ARC
                [(SyphonOpenGLServer *)mSyphon publishFrameTexture:texData.textur...
                                       ^
                                       CFBridgingRelease( )
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:107:5: error: 
      'NSAutoreleasePool' is unavailable: not available in automatic reference counting
      mode
    NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:10:12: note: 
      'NSAutoreleasePool' has been explicitly marked unavailable here
@interface NSAutoreleasePool : NSObject {
           ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:107:33: error: 
      'NSAutoreleasePool' is unavailable: not available in automatic reference counting
      mode
    NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
                                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:10:12: note: 
      'NSAutoreleasePool' has been explicitly marked unavailable here
@interface NSAutoreleasePool : NSObject {
           ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [/Users/sloev/Documents/of_nightly/addons/obj/osx/Debug/ofxSyphon/src/ofxSyphonServer.o] Error 1
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:22:5: error: 
      'NSAutoreleasePool' is unavailable: not available in automatic reference counting
      mode
    NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:10:12: note: 
      'NSAutoreleasePool' has been explicitly marked unavailable here
@interface NSAutoreleasePool : NSObject {
           ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:22:33: error: 
      'NSAutoreleasePool' is unavailable: not available in automatic reference counting
      mode
    NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
                                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:10:12: note: 
      'NSAutoreleasePool' has been explicitly marked unavailable here
@interface NSAutoreleasePool : NSObject {
           ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:24:6: error: 
      cast of C pointer type 'void *' to Objective-C pointer type
      'SyphonNameboundClient *' requires a bridged cast
    [(SyphonNameboundClient*)mClient release];
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:24:7: note: 
      use __bridge to convert directly (no change in ownership)
    [(SyphonNameboundClient*)mClient release];
      ^
      __bridge 
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:24:30: note: 
      use CFBridgingRelease call to transfer ownership of a +1 'void *' into ARC
    [(SyphonNameboundClient*)mClient release];
                             ^
                             CFBridgingRelease( )
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:24:38: error: 
      'release' is unavailable: not available in automatic reference counting mode
    [(SyphonNameboundClient*)mClient release];
                                     ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/objc/NSObject.h:37:1: note: 
      'release' has been explicitly marked unavailable here
- (oneway void)release OBJC_ARC_UNAVAILABLE;
^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:24:38: error: 
      ARC forbids explicit message send of 'release'
    [(SyphonNameboundClient*)mClient release];
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:31:10: error: 
      cast of C pointer type 'void *' to Objective-C pointer type
      'SyphonNameboundClient *' requires a bridged cast
mClient([(SyphonNameboundClient*)s.mClient retain]),
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:31:11: note: 
      use __bridge to convert directly (no change in ownership)
mClient([(SyphonNameboundClient*)s.mClient retain]),
          ^
          __bridge 
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:31:34: note: 
      use CFBridgingRelease call to transfer ownership of a +1 'void *' into ARC
mClient([(SyphonNameboundClient*)s.mClient retain]),
                                 ^
                                 CFBridgingRelease( )
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:31:44: error: 
      'retain' is unavailable: not available in automatic reference counting mode
mClient([(SyphonNameboundClient*)s.mClient retain]),
                                           ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/objc/NSObject.h:36:1: note: 
      'retain' has been explicitly marked unavailable here
- (instancetype)retain OBJC_ARC_UNAVAILABLE;
^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:31:44: error: 
      ARC forbids explicit message send of 'retain'
mClient([(SyphonNameboundClient*)s.mClient retain]),
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:31:1: error: 
      cannot initialize a member subobject of type 'void *' with an rvalue of type
      'SyphonNameboundClient *'
mClient([(SyphonNameboundClient*)s.mClient retain]),
^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:32:14: error: 
      cast of C pointer type 'void *' to Objective-C pointer type 'SyphonOpenGLImage *'
      requires a bridged cast
latestImage([(SyphonOpenGLImage*)s.latestImage retain]),
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:32:15: note: 
      use __bridge to convert directly (no change in ownership)
latestImage([(SyphonOpenGLImage*)s.latestImage retain]),
              ^
              __bridge 
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:32:34: note: 
      use CFBridgingRelease call to transfer ownership of a +1 'void *' into ARC
latestImage([(SyphonOpenGLImage*)s.latestImage retain]),
                                 ^
                                 CFBridgingRelease( )
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:32:48: error: 
      'retain' is unavailable: not available in automatic reference counting mode
latestImage([(SyphonOpenGLImage*)s.latestImage retain]),
                                               ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/objc/NSObject.h:36:1: note: 
      'retain' has been explicitly marked unavailable here
- (instancetype)retain OBJC_ARC_UNAVAILABLE;
^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:32:48: error: 
      ARC forbids explicit message send of 'retain'
latestImage([(SyphonOpenGLImage*)s.latestImage retain]),
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:32:1: error: 
      cannot initialize a member subobject of type 'void *' with an rvalue of type
      'SyphonOpenGLImage *'
latestImage([(SyphonOpenGLImage*)s.latestImage retain]),
^           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:49:5: error: 
      'NSAutoreleasePool' is unavailable: not available in automatic reference counting
      mode
    NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:10:12: note: 
      'NSAutoreleasePool' has been explicitly marked unavailable here
@interface NSAutoreleasePool : NSObject {
           ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:49:33: error: 
      'NSAutoreleasePool' is unavailable: not available in automatic reference counting
      mode
    NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
                                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:10:12: note: 
      'NSAutoreleasePool' has been explicitly marked unavailable here
@interface NSAutoreleasePool : NSObject {
           ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:51:6: error: 
      cast of C pointer type 'void *' to Objective-C pointer type
      'SyphonNameboundClient *' requires a bridged cast
    [(SyphonNameboundClient*)mClient release];
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:51:7: note: 
      use __bridge to convert directly (no change in ownership)
    [(SyphonNameboundClient*)mClient release];
      ^
      __bridge 
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:51:30: note: 
      use CFBridgingRelease call to transfer ownership of a +1 'void *' into ARC
    [(SyphonNameboundClient*)mClient release];
                             ^
                             CFBridgingRelease( )
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:51:38: error: 
      'release' is unavailable: not available in automatic reference counting mode
    [(SyphonNameboundClient*)mClient release];
                                     ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/objc/NSObject.h:37:1: note: 
      'release' has been explicitly marked unavailable here
- (oneway void)release OBJC_ARC_UNAVAILABLE;
^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:51:38: error: 
      ARC forbids explicit message send of 'release'
    [(SyphonNameboundClient*)mClient release];
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:52:16: error: 
      cast of C pointer type 'void *' to Objective-C pointer type
      'SyphonNameboundClient *' requires a bridged cast
    mClient = [(SyphonNameboundClient*)s.mClient retain];
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:52:17: note: 
      use __bridge to convert directly (no change in ownership)
    mClient = [(SyphonNameboundClient*)s.mClient retain];
                ^
                __bridge 
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonClient.mm:52:40: note: 
      use CFBridgingRelease call to transfer ownership of a +1 'void *' into ARC
    mClient = [(SyphonNameboundClient*)s.mClient retain];
                                       ^
                                       CFBridgingRelease( )
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [/Users/sloev/Documents/of_nightly/addons/obj/osx/Debug/ofxSyphon/src/ofxSyphonClient.o] Error 1
5 warnings and 3 errors generated.
make[1]: *** [/Users/sloev/Documents/of_nightly/addons/obj/osx/Debug/ofxSyphon/src/ofxSyphonServerDirectory.o] Error 1
make: *** [Debug] Error 2

 *  The terminal process "/bin/zsh '-c', 'make Debug -j -s 2>&1 || exit 1'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 
ofTheo commented 2 years ago

@sloev - can you try this ARC branch I just pushed up? https://github.com/ofTheo/ofxSyphon/tree/feature-arc I also pulled in @dimitre 's changes from #49 #47

I tested both the server and client with the nightly build and it seemed to work fine. If works for you I'll do a PR for just the ARC changes.

sloev commented 2 years ago

hi @ofTheo thanks for the reply, here is the stack trace of :

 *  Executing task in folder example-Basic: make Debug -j -s 2>&1 || exit 1 

Compiling OF library for Debug
Done!

Compiling example-Basic for Debug
Compiling /Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm
Compiling /Users/sloev/Documents/of_nightly/addons/ofxSyphon/example-Basic/src/ofApp.cpp
Compiling /Users/sloev/Documents/of_nightly/addons/ofxSyphon/example-Basic/src/main.cpp
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:30:30: warning: unused
      variable 'fakeServer' [-Wunused-variable]
        SyphonOpenGLServer * fakeServer = (__bridge_transfer SyphonOpenGLServer *)mSyphon;
                             ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.mm:35:23: error: out-of-line
      definition of 'setName' does not match any declaration in 'ofxSyphonServer'
void ofxSyphonServer::setName(string n)
                      ^~~~~~~
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/src/ofxSyphonServer.h:16:22: note: type of 1st
      parameter of member declaration does not match definition ('const std::string &' (aka 'const
      basic_string<char, char_traits<char>, allocator<char> > &') vs 'std::__1::string' (aka
      'basic_string<char, char_traits<char>, allocator<char> >'))
        void setName (const std::string &n);
                            ^
1 warning and 1 error generated.
make[1]: *** [/Users/sloev/Documents/of_nightly/addons/obj/osx/Debug/ofxSyphon/src/ofxSyphonServer.o] Error 1
make[1]: *** Waiting for unfinished jobs....
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/example-Basic/src/ofApp.cpp:3:11: warning: 
      unused variable 'width' [-Wunused-const-variable]
const int width = 800;
          ^
/Users/sloev/Documents/of_nightly/addons/ofxSyphon/example-Basic/src/ofApp.cpp:4:11: warning: 
      unused variable 'height' [-Wunused-const-variable]
const int height = 600;
          ^
2 warnings generated.
make: *** [Debug] Error 2

 *  The terminal process "/bin/zsh '-c', 'make Debug -j -s 2>&1 || exit 1'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 
sloev commented 2 years ago

@ofTheo the signature issue is fixed with this: b683dfc65217de5b70d010ffbea08aac0207b49d but now i am back to the big sur dyld issues :-(

Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
=thread-selected,id="1"
=library-unloaded,id="/Users/sloev/Documents/of_nightly/examples/video/videoPlayerExample/bin/videoPlayerExample_debug.app/Contents/MacOS/videoPlayerExample_debug",target-name="/Users/sloev/Documents/of_nightly/examples/video/videoPlayerExample/bin/videoPlayerExample_debug.app/Contents/MacOS/videoPlayerExample_debug",host-name="/Users/sloev/Documents/of_nightly/examples/video/videoPlayerExample/bin/videoPlayerExample_debug.app/Contents/MacOS/videoPlayerExample_debug"
Loaded '/usr/lib/dyld'. Symbols loaded.
Loaded '/Users/sloev/Documents/of_nightly/examples/video/videoPlayerExample/bin/videoPlayerExample_debug.app/Contents/MacOS/videoPlayerExample_debug'. Symbols loaded.
dyld: Library not loaded: @loader_path/../Frameworks/Syphon.framework/Versions/A/Syphon
  Referenced from: /Users/sloev/Documents/of_nightly/examples/video/videoPlayerExample/bin/videoPlayerExample_debug.app/Contents/MacOS/videoPlayerExample_debug

like mentioned here: https://forum.openframeworks.cc/t/building-in-macos-11-0-big-sur/36581/16?u=johannes_valbjorn

sloev commented 2 years ago

copying Syphon.Framework from

Screenshot 2022-09-09 at 10 36 50

into

Screenshot 2022-09-09 at 10 37 29

did the trick

sloev commented 2 years ago

it works!

https://user-images.githubusercontent.com/873297/189311562-4fa51d35-6a34-436a-a8ff-8d303ea8ad3b.mov

steps:

  1. download ofx nightly 20220908
  2. download https://github.com/ofTheo/ofxSyphon/tree/feature-arc and add it to addons folder
  3. apply fix mentioned here: https://github.com/ofTheo/ofxSyphon/compare/feature-arc...sloev:ofxSyphon:patch-1
  4. use project generator to update examples/video/videoplayer with a. addons: ofxsyphon b. template: visual studio code
  5. open vscode workspace folder
  6. copy Syphon.Framework from /addons/ofxSyphon/libs/Syphon/lib/osx/Syphon.framework to examples/video/videoPlayerExample/bin/videoPlayerExample_debug.app/Contents/Frameworks/Syphon.framework
  7. run debug start debugging
ofTheo commented 2 years ago

Awesome @sloev! Forgot to fix that std::string argument on the merge. Will fix that and do a PR with just the ARC changes.

The dyld issue I think is more a VSCode issue with Frameworks as it worked fine in Xcode. At some point we need to get our ProjectGenerator to add Frameworks properly. ( In Xcode we automatically copy Frameworks to that folder ).

dimitre commented 2 years ago

Great news @ofTheo! it is working great here too (after string fix)