kylemcdonald / ofxEdsdk

Interfacing with Canon cameras from openFrameworks for OSX. An alternative to ofxCanon and CanonCameraWrapper.
Other
111 stars 51 forks source link

compile problem on OSX 10.8.2 #11

Closed hiroyuki closed 10 years ago

hiroyuki commented 10 years ago

Hi I found compile problem with EDSDK 2_13 on OSX. The reason of it is the source, ofxEdsdk.cpp includes some Obj-C lines. So solution for this is just rename the file into ofxEdsdk.mm.

I forked the project here But I'm afraid you need rename the file back to ofxEdsdk.cpp when using on WIN.

thanks for great addon!

elliotwoods commented 10 years ago

further notes in #12 (i'll close that as duplicate)

roymacdonald commented 10 years ago

there's no need to rename the files. you just need to specify in xcode that ofxEdsdk.cpp is an objective-c++ file. Select it on the left pane and on the right pane you have a dropdown list where you specify the file type. I thought that this change was included in my commit where I added those obj-c lines. I'll PR a fix

roymacdonald commented 10 years ago

https://github.com/kylemcdonald/ofxEdsdk/pull/13