ofxSyphon errors

Hi,

I have been at this all day with no luck. I am trying to compile the SyphonExample and am getting these errors. I was getting others but noticed the syphon.framework was missing in a few places so I added it.

Thanks for you help in advance

d: warning: ignoring file /Developer/of_preRelease_v007_osx/addons/ofxSyphon/libs/Syphon/lib/osx/Syphon.framework/Syphon, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols for architecture i386:
“_SyphonServerDescriptionNameKey”, referenced from:
-[SyphonNameboundClient parametersMatchDescription:] in SyphonNameboundClient.o
“.objc_class_name_SyphonClient”, referenced from:
pointer-to-literal-objc-class-name in SyphonNameboundClient.o
“_SyphonServerAnnounceNotification”, referenced from:
-[SyphonNameboundClient init] in SyphonNameboundClient.o
-[SyphonNameboundClient setClient:havingLock:] in SyphonNameboundClient.o
“.objc_class_name_SyphonServer”, referenced from:
pointer-to-literal-objc-class-name in ofxSyphonServer.o
“_SyphonServerDescriptionAppNameKey”, referenced from:
-[SyphonNameboundClient parametersMatchDescription:] in SyphonNameboundClient.o
“_SyphonServerRetireNotification”, referenced from:
-[SyphonNameboundClient setClient:havingLock:] in SyphonNameboundClient.o
“_SyphonServerDescriptionUUIDKey”, referenced from:
-[SyphonNameboundClient setClientFromSearchHavingLock:] in SyphonNameboundClient.o
-[SyphonNameboundClient handleServerUpdate:] in SyphonNameboundClient.o
-[SyphonNameboundClient handleServerRetire:] in SyphonNameboundClient.o
“_SyphonServerUpdateNotification”, referenced from:
-[SyphonNameboundClient init] in SyphonNameboundClient.o
“.objc_class_name_SyphonServerDirectory”, referenced from:
pointer-to-literal-objc-class-name in SyphonNameboundClient.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

did you build the syphon addon?
the xcode project is in /Syphon Implementations/OpenFrameworks
also look at the Read-Me in that location.

it took me a while to figure out that including the framework alone didn’t help.

from the error you’re getting you have a framework build for the wrong platform.

i also built both debug and release versions of the addon

good luck

/*j

When i build that it doesnt bring in the syphon.framework anywhere. Where did you pull that in? did you build the syphon framework that is in syphon-implementations-read-only/Syphon Framework?
if you did, did you build it before or after the ofxSyphon?

thanks for your help

I got it to work.

however If i add ofxSyphon add-on to a project I get a strange error after the build but Ill just modify the example when I need to use Syphon.

Thanks for your help

hmm, i don’t recall a 100% accurately what i had to do to get it to work.

but the main part is that the _addon_ not the framework needs to be built on the user’s machine. this will contain the framework in its addons/ofxSyphon/libs/Syphon/lib/osx directory.

make sure to move the addons-folder to the oF addons location and the example-folder to the corresponding folder. this should ensure that all the paths stay correct.

as for strange errors when running the thing: please post, someone might be able to shed some light.

cheers

/*j

Yea I did all that.
Here is whats popping up.

![](http://forum.openframeworks.cc/uploads/default/2116/Screen Shot 2012-01-24 at 14.57.45.png)

there might be more useful information in the text-output of the console…

You have to make sure that the Syphon.framework is included with your target.

Just add Syphon.framework to your Targets->[YourApplication]->Copy Files

i got the same error; FluxReality’s tip resolved that.
thanx!

ps. hey jasch, nice to see you appearing in the ofForum :slight_smile: