issue compiling ofxsyphon addon

Hi everyone,

i am working on a project where we would like to try to use syphon to transfer texture to another program. However, I am having difficulties trying to compile just the example.

Just to make sure that there is nothing strange with my setup, I took a empty example to make sure that things are compiling, then just add the addon to the project keeping my testapp the same, and still i get compiling error.

The error that I am getting are:

  
  
CompileC build/openFrameworks.build/Debug/openFrameworks.build/Objects-normal/i386/SyphonNameboundClient.o ../../../addons/ofxSyphon/libs/Syphon/lib/osx/SyphonNameboundClient.m normal i386 objective-c com.apple.compilers.gcc.4_0  
cd /Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon  
setenv LANG en_US.US-ASCII  
/Developer/usr/bin/gcc-4.0 -x objective-c -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mfix-and-continue -Wno-protocol -Wno-deprecated-declarations -mmacosx-version-min=10.6 -gdwarf-2 -I/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/build/openFrameworks.build/Debug/openFrameworks.build/openFrameworksDebug.hmap -F/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/bin -F/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/libs/Syphon/lib/osx -I/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/bin/include -I../../../libs/poco/include -I/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/build/openFrameworks.build/Debug/openFrameworks.build/DerivedSources/i386 -I/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/build/openFrameworks.build/Debug/openFrameworks.build/DerivedSources -include /var/folders/bU/bUrfyZTqEwSOhHZ0EcfARU+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/Carbon-blsvybkwvqucdwgfxthkhcybsqnc/Carbon.h -c /Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/libs/Syphon/lib/osx/SyphonNameboundClient.m -o /Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/build/openFrameworks.build/Debug/openFrameworks.build/Objects-normal/i386/SyphonNameboundClient.o  
  
In file included from /Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/libs/Syphon/lib/osx/Syphon.framework/Headers/Syphon.h:32,  
                 from /Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/libs/Syphon/lib/osx/SyphonNameboundClient.h:48,  
                 from /Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/libs/Syphon/lib/osx/SyphonNameboundClient.m:30:  
/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/libs/Syphon/lib/osx/Syphon.framework/Headers/SyphonClient.h:49: error: syntax error before '^' token  
/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/libs/Syphon/lib/osx/Syphon.framework/Headers/SyphonClient.h:61: error: syntax error before '^' token  
/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/libs/Syphon/lib/osx/Syphon.framework/Headers/SyphonClient.h:61: error: 'type name' declared as function returning a function  
  
CompileC build/openFrameworks.build/Debug/openFrameworks.build/Objects-normal/i386/ofxSyphonClient.o ../../../addons/ofxSyphon/src/ofxSyphonClient.mm normal i386 objective-c++ com.apple.compilers.gcc.4_0  
cd /Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon  
setenv LANG en_US.US-ASCII  
/Developer/usr/bin/gcc-4.0 -x objective-c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mfix-and-continue -fobjc-call-cxx-cdtors -Wno-protocol -Wno-deprecated-declarations -Wno-invalid-offsetof -mmacosx-version-min=10.6 -gdwarf-2 -I/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/build/openFrameworks.build/Debug/openFrameworks.build/openFrameworksDebug.hmap -F/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/bin -F/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/libs/Syphon/lib/osx -I/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/bin/include -I../../../libs/poco/include -I/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/build/openFrameworks.build/Debug/openFrameworks.build/DerivedSources/i386 -I/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/build/openFrameworks.build/Debug/openFrameworks.build/DerivedSources -D__MACOSX_CORE__ -lpthread -include /var/folders/bU/bUrfyZTqEwSOhHZ0EcfARU+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/Carbon-gezminfwoanpwgasuffvlrpelvrn/Carbon.h -c /Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/src/ofxSyphonClient.mm -o /Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/build/openFrameworks.build/Debug/openFrameworks.build/Objects-normal/i386/ofxSyphonClient.o  
  
/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../libs/freeimage/include/FreeImage.h:130: error: conflicting declaration 'typedef int32_t BOOL'  
/Developer/SDKs/MacOSX10.6.sdk/usr/include/objc/objc.h:43: error: 'BOOL' has a previous declaration as 'typedef signed char BOOL'  
/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/libs/Syphon/lib/osx/Syphon.framework/Headers/SyphonClient.h:49: error: expected unqualified-id before '^' token  
/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/libs/Syphon/lib/osx/Syphon.framework/Headers/SyphonClient.h:49: error: expected `)' before '^' token  
/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/libs/Syphon/lib/osx/Syphon.framework/Headers/SyphonClient.h:49: error: abstract declarator 'void' used as declaration  
/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/libs/Syphon/lib/osx/Syphon.framework/Headers/SyphonClient.h:49: error: instance variable '<unnamed>' has unknown size  
/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/libs/Syphon/lib/osx/Syphon.framework/Headers/SyphonClient.h:49: error: expected `;' before '^' token  
/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/libs/Syphon/lib/osx/Syphon.framework/Headers/SyphonClient.h:61: error: expected `)' before '(' token  
/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/libs/Syphon/lib/osx/Syphon.framework/Headers/SyphonClient.h:61: error: expected identifier before '(' token  
/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/libs/Syphon/lib/osx/Syphon.framework/Headers/SyphonClient.h:61: error: expected `;' before '(' token  
  
CompileC build/openFrameworks.build/Debug/openFrameworks.build/Objects-normal/i386/ofxSyphonServer.o ../../../addons/ofxSyphon/src/ofxSyphonServer.mm normal i386 objective-c++ com.apple.compilers.gcc.4_0  
cd /Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon  
setenv LANG en_US.US-ASCII  
/Developer/usr/bin/gcc-4.0 -x objective-c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mfix-and-continue -fobjc-call-cxx-cdtors -Wno-protocol -Wno-deprecated-declarations -Wno-invalid-offsetof -mmacosx-version-min=10.6 -gdwarf-2 -I/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/build/openFrameworks.build/Debug/openFrameworks.build/openFrameworksDebug.hmap -F/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/bin -F/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/libs/Syphon/lib/osx -I/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/bin/include -I../../../libs/poco/include -I/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/build/openFrameworks.build/Debug/openFrameworks.build/DerivedSources/i386 -I/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/build/openFrameworks.build/Debug/openFrameworks.build/DerivedSources -D__MACOSX_CORE__ -lpthread -include /var/folders/bU/bUrfyZTqEwSOhHZ0EcfARU+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/Carbon-gezminfwoanpwgasuffvlrpelvrn/Carbon.h -c /Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/src/ofxSyphonServer.mm -o /Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/build/openFrameworks.build/Debug/openFrameworks.build/Objects-normal/i386/ofxSyphonServer.o  
  
/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../libs/freeimage/include/FreeImage.h:130: error: conflicting declaration 'typedef int32_t BOOL'  
/Developer/SDKs/MacOSX10.6.sdk/usr/include/objc/objc.h:43: error: 'BOOL' has a previous declaration as 'typedef signed char BOOL'  
/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/libs/Syphon/lib/osx/Syphon.framework/Headers/SyphonClient.h:49: error: expected unqualified-id before '^' token  
/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/libs/Syphon/lib/osx/Syphon.framework/Headers/SyphonClient.h:49: error: expected `)' before '^' token  
/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/libs/Syphon/lib/osx/Syphon.framework/Headers/SyphonClient.h:49: error: abstract declarator 'void' used as declaration  
/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/libs/Syphon/lib/osx/Syphon.framework/Headers/SyphonClient.h:49: error: instance variable '<unnamed>' has unknown size  
/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/libs/Syphon/lib/osx/Syphon.framework/Headers/SyphonClient.h:49: error: expected `;' before '^' token  
/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/libs/Syphon/lib/osx/Syphon.framework/Headers/SyphonClient.h:61: error: expected `)' before '(' token  
/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/libs/Syphon/lib/osx/Syphon.framework/Headers/SyphonClient.h:61: error: expected identifier before '(' token  
/Users/macbookpro/Documents/Programming/of_preRelease_v0.06_xcode_FAT/apps/addonsExamples/OfxSyphon/../../../addons/ofxSyphon/libs/Syphon/lib/osx/Syphon.framework/Headers/SyphonClient.h:61: error: expected `;' before '(' token  
  
  
  

anyone has tried something like this and experience similar problem?

Strange. No problems on my Mac Pro, 10.6, XCode 3.2.5. (I’m one of the creators of the OF implementation of Syphon.) My guess would be that XCode is not compiling your sources correctly.

First off, what version of XCode, Mac OS? And you’re using OF v0.06? You might want to try v0.061 at a minimum. That’s the version I wrote the original for.
Second, could you bring up the info on some of the source files that are receiving errors, and make sure that under File Type, they are set to ‘sourcecode.cpp.objcpp’? Also make sure that under your build variables that ‘Compile Sources As’ is set to ‘According to File Type’.

So i took your advice and downloaded v0.061. double checked everything that I know. finally got it to compile without any error.

however, i ran into a different problem. at the bottom of xcode after it has compiled, i have the following msg:

GDB: Data Formatter temporarily unavailable, will re-try after a ‘continue’. (Cannot call into the loader at present, it is locked.)

I dont have enough experience in xcode to really know what it means. Googled it and seem like most ppl are referring this to something related to memory issues; but do not provide much solution.

my bad. i got it to compile and working (i think) using the example provided in svn. I probably did something stupid when i try to put the xcode project together.

I will play around with it and try to grasp better understanding of this.

Thanks. Cheers.

Hi Kevin

I’m facing similar error … at the end of compilation i got this on the bottom of Xcode :

GDB: Data Formatters temporarily unavailable

Do you have an idea of how to solve this ? What’s the reason ?
Before getting this i got some link problems when trying to include ofxSyphon on my app …
http://forum.openframeworks.cc/t/ofxsyphon-linking-problems-…/6552/0

But now i don’t get the link errors but this error …
Totally confused … any idea of what’s going on ?

What i’m trying to do is just include ofxSyphon on a small app i made …

Thanks for any advice …

e*

As far as I know there are two ways to get that: making an infinite recursion loop in an initializer or when your program can’t find a linked in shared library at launch time.

The README says:

To create a usable OpenFrameworks add-on you must open ofxSyphon Xcode project and build the ofxSyphon target, which will pull in the shared files and Syphon framework and generate the complete directory structure for OpenFrameworks.

That seems like it might be a cause of a shared linked lib error if that didn’t go right.

Hi Joshua …

For the problem i found that i post on this thread, Joshua is right. I got confused with the way of installing this addon and after following step by step i solved the : GDB: Data Formatters temporarily unavailable

ofxSyphon comes with a ofxSyphon XCode project which you need to compile in order to generate the files you’re gonna use on OF. Basically it generates the /addons/ofxSyphon folder and the /apps/addonsExamples/SyphonExamples.

Using this folders solved my issue with this … but then i face another problem on link stage that still i have not been able to solve … check out my progess on the other thread : http://forum.openframeworks.cc/t/ofxsyphon-linking-problems-…/6552/0

thnkx