August 17, 2010 1

Compiling/Building Cinder

By admin in Uncategorized

This is not specifically related to iphone, but will be tied into the next post.

Cinder is a creative coding framework created by the Barbarian group, it is meant to be used the way Processing, or OpenFrameworks.
It allows you to make visually interesting things, without worrying about the burden of all the…..stuff, required to just put something on the screen using C++ and OpenGL.

The code you write is also cross platform, so you can code once and for the most part that same concept will work on iOS/OSX/PC.

It’s amazing!

So in this post, one thing I notice I have had to do a few times, but was tricky at first is being able to use the very latest version of cinder is getting it to compile correctly. So this might help some people.

Alright, Lets compile the latest version of Cinder from Github where it’s hosted.. Make sure you download off the top right button, not ( as of this writing ) – the 8.0 and 8.1 versions – those are fairly old by now.

Download it and extract it, preferably to your workspace directory
Download the boost library (required to compile) – http://sourceforge.net/projects/boost/files/boost/1.44.0/
Go into where you extracted cinder, and create a directory called ‘boost’

Extract the boost library (probably will get a directory along the lines of boost_143_0), and go into it and copy the ‘boost’ directory from in there.
Paste the the ‘boost’ directory inside of the Cinder directory.

The path should be something like this, “~/Cinder/boost/boost” ( yes that’s correct, boost inside boost :) )
-

Now that that’s done, open up terminal and browse to the cinder library (one trick is to type ‘cd ‘ into the terminal then drag the folder into and it will set the path)
type ‘cd xcode’
type ‘./fullbuild’

Cinder will now compile and build, it will take a few minutes.

That’s it!

Now of course you want to make a project, so go into the cinder directory ( using regular Finder again), and inside tools, use Tinderbox to create the project for you – it will point to the Cinder framework in the project you make for you!
-

Happy coding!

Tags:

One Response to “Compiling/Building Cinder”

  1. Pier says:

    There is a typo in your post. The last terminal command is:

    ./fullbuild.sh

Leave a Reply

Powered by WP Hashcash

Spam protection by WP Captcha-Free