I’m very new to openFrameworks and I want to write software to grab photos from a Canon camera. Roxlu’s ofxCanon seems to be the right place to start, but currently it comes with instructions for Mac users only. I spent a few hours today trying to run it on Windows with CodeBlocks. It’s not that complicated, but I wrote down a few steps that might save some time for someone (and me) in the future. My intention was to send it to the author of the addon, but I couldn’t find a way to contact him, so I’m sharing it here:
ofxCanon
Installation on Windows
-
Download ofxCanon files from https://github.com/roxlu/ofxCanon. Optional: unzip the files in /addons/ofxCanon
-
Apply for a Canon Developers account and download the SDK (e.g. EDSDKv2.8.zip)
-
Create a new openFrameworks project by duplicating apps/myApps/emptyExample
-
Open the project in CodeBlocks (v. 10.05)
-
Click on Project > Build Options…
-
Make sure to select your project name on the left, not release or debug, then click on the tab Search directories
-
Click on Add and search for the ofxCanon/src folder (e.g. …\addons\ofxCanon\src)
-
Click on Add again and search for the EDSDK/Header folder (e.g. …\canon\EDSDKv2.8\EDSDK\Header)
-
Move to the Linker settings tab, click on Add and search for the EDSDK.lib file (e.g. …\canon\EDSDKv2.8\EDSDK\Library\EDSDK.lib)
-
Optional: if you want to see the source files in your project, click on Project > Add files recursively… and add both ofxCanon/src and EDSDK/Header. More info: http://forum.openframeworks.cc/t/adding-code,-include-paths–addons-in-cb/3090/0
-
Copy the files from EDSDK/Dll to myApps//bin
-
Refer to ofxCanon/example to test your project.
=======