Newbie trying to get started with Syphon and C++

Home Forums Syphon Syphon Implementations – User Newbie trying to get started with Syphon and C++

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  bangnoise 2 weeks, 5 days ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #59312

    interwebjill
    Participant

    Hello,

    I have written some camera capture code in c++ and have bound the image to a texture. I am trying to figure out how to incorporate syphon. When I import the syphon framework via Syphon/Syphon.h, I get a zillion errors related to NSObjCRuntime.h, NSZone.h, NSObject.h.

    Am I missing a framework? Or are the dependencies not playing nicely together?

    I am using xcode.

    Thanks

    #59313

    interwebjill
    Participant

    This is what worked for me:

    In the build settings -> Custom Compiler Flags, set the “Other C Flags” to “-x objective-c” and set the “Other C++ Flags” to “-x objective-c++”

    via:

    Bastien
    https://stackoverflow.com/questions/11857765/ios-parse-issues-in-nsobjcruntime-nszone-and-nsobject

    #59315

    bangnoise
    Keymaster

    If you name implementation files which mix Objective C and C++ with the .mm extension, Xcode will handle them properly – just be careful about Objective C types in headers you want to include in any pure C++ files.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.