mkalten / reacTIVision

computer vision framework for tangible interactive surfaces
Other
308 stars 65 forks source link

Fix SDL2 includes in OSX #1

Closed segabor closed 10 years ago

segabor commented 10 years ago

This changeset fixes SDL includes in OSX so Xcode will find SDL headers in SDL2 framework.

mkalten commented 10 years ago

Hey Gábor, thanks for this first patch! I guess that this is the proper way to include SDL2, I will check how this applies to Linux.

Although it seems that both ways actually find the headers in the Framework, Did you have any problems compiling the other way?

segabor commented 10 years ago

Hi,

AFAIK this has been the only way to refer header files in frameworks since NeXTSTEP / OPENSTEP unless Headers folder is added explicitly to include path. See Apple's doc on this.

And yes when I opened the project in Xcode first time all SDL references broke at once. Perhaps your project does refer to SDL headers directly. Years of coding in ObjC told me what to do :)

mkalten commented 10 years ago

yes, you are right, I added the SDL2 Framework to the XCode include path, so I never noticed ;) thanks for the heads up, I'll include your patch and will fix that also for the other platforms. cheers, Martin.K