openFrameworks Help

Hello, I am trying to use an openframeworks addon (ofxOpenNI depth camera one) using xCode, it’s first time battling with openFrameworks - does anyone have any experience of getting these to work? I’m just getting hundreds of linker errors at the moment. Thanks!

I havnt used open frameworks but have used lots of other libraries and frameworks that need installing.

What O/S linux, windows or mac?
Have you had any of the basic open frameworks examples compiled and running?
If yes then the addon youve installed isnt installed correctly or in the right place.
Or it has other requirements that need to be installed before it will compile.

If youve just installed open frameworks and havnt tried getting one of the existing examples running.
Id start there to make sure the basic stuff is up and running before adding any extra addons.
Once youve got the basic install checked and a running example then try adding the addon you need.

Gordon

I am running it on a mac I’m afraid. I have the other openframeworks examples running the ‘core addons’ so it seems that I have installed it.

I am trying to run the basic example given with the addon it doesn’t seen to want to link the header files for the addon. in xCode you seem to have to adder ‘header search paths’ which I have though it makes little difference

I’ll look up a little more about openFrameworks addons perhaps try a different one see if I can get that to work.

I do.

If Google hasn’t given you a step-through appropriate for your particular combination of oF and Xcode then this is stuff to do side by side in front of your actual machine.

I’ll run though the steps again tomorrow and try other addons, see if I have any better luck. If not - if you don’t mind I may bug you when we are both in the space and you have a bit of free time.

Thanks to both of you for the replies though.

I have the examples running now. The rather long winded process shown on this video seemed to do the trick if anyone comes across the same problem in the future

Great. I have no love for setting up build environments, but it’s this arcana that allows open-source (as things stand) to work.

Taking a step back, I’d be all behind a written-from-the-ground up oF using swift. Fast as c++, compatible with c libraries, all the modern everythings, develop on OS X and deploy on Linux if it needs to go beyond your laptop. We’ll see, and Apple have to open source Swift first (later this year).

@tobyspark I’d love OF for swift too. Haven’t played with OF for a couple of years for exactly these frustrating errors upon errors when you’re just trying to open example files.

When i muck about with new stuff like this I try to remember to do it in a virtual machine.
That way if it goes wrong i can scrap the VM and start again. Or take snapshots as i go and roll them back if therss a problem.
I dont always remember and get carried away filling my development machine with all sorts of crud.

Its also useful if theres a chance of conflicts between versions or other frameworks/environments.
Useful as well for multiple O/S support. You can run an instance of the other O/S in a window on your host machine.

Also if you need to change your machine to upgrade you can copy your VM over to the new machine and you dont need to go through the hoops again to get it working.

I use Oracle VBox on linux as it works well.
You need a host with plenty of ram though and plenty of processors if you want it to be anywhere near as quick as a standalone machine.