Cinder Problems Compiling/Building Kinect Library

For those of you with  this problem “‘Obj’ is a protected member of ‘cinder::Kinect'”. You’ve got a couple build settings that need to be updated

Here’s scenerio. You’ve installed Cinder, installed Cinder Kinect library (https://github.com/cinder/Cinder-Kinect) in blocks and rebuilt.

Now you’re getting build errors when you try to run the sample projects.

Here’s what I did:

  1. Changed the default SDK to 10.7 (if you havent already)
  2. change the build compiler to LLVM GCC 4.2
  3. Change the Inline Methods Hidden Option to ‘No’
  4. Change the Symbols Hidden By Default to ‘No’

“Clean & Build” and you should be good to go!

Also, once you’ve compiled the sample you’ll want to build your own. Your going to end up having linker erros. Follow this: https://forum.libcinder.org/topic/how-to-use-cinderblocks-in-xcode

and you should be all set. Bascially, you need to tell xcode where to find some of these libraries when using blocks.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.