简体   繁体   English

OSX EdsOpenSession上的Canon EDSDK 2.11 exc_bad_access

[英]Canon EDSDK 2.11 on OSX EdsOpenSession exc_bad_access

I'm trying to use the Canon EDSDK 2.11 on OSX with a EOS Xsi. 我正在尝试在OSX上使用EOS Xsi使用Canon EDSDK 2.11。 I tried running the sample code, I've written my own code, and I even downloaded openFrameworks and an add-on for the Canon EDSK, ofxCanon, and ran its sample code. 我尝试运行示例代码,编写了自己的代码,甚至下载了openFrameworks和佳能EDSK,ofxCanon的附加组件,并运行了其示例代码。 Every time any of the code reaches a call to EdsOpenSession I get a exc_bad_access error. 每当任何代码到达对EdsOpenSession的调用时,我都会收到一个exc_bad_access错误。

Can anyone tell me what might be going on and what I might be doing wrong? 谁能告诉我可能发生了什么,我做错了什么?

I had the same problem. 我有同样的问题。 It seems there is some issues with the SDK downloaded from Canon site. 从佳能网站下载的SDK似乎存在一些问题。 Here what you can try, it solved the problem for me. 在这里您可以尝试,它为我解决了问题。

Install and update EOSUtility (make sure it works) 安装和更新EOSUtility(确保它可以正常工作)

Go to /Applications/Canon Utilities/ 转到/应用程序/佳能实用程序/

Show Package Content of EOS Utility. 显示EOS Utility的包装内容。

In frameworks directory you will have EDSDK.framework 在frameworks目录中,您将拥有EDSDK.framework

Copy it over the one you got from Canon site. 将其复制到您从佳能网站获得的那张照片上。

Hope it will help. 希望它会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM