kylemcdonald / ofxEdsdk

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

Problem addons in VS 2015 / Windows 10 #48

Open paoolea opened 7 years ago

paoolea commented 7 years ago

Hi, I have this error:

Severity Code Description Project File Line Suppression State Error C4716 'ofxEdsdk::Camera::close': must return a value mySketch c:\users------\of\windows\of_v0.9.0_vs_release\addons\ofxedsdk\src\ofxedsdk.cpp 109

selcukartut commented 6 years ago

Here are the settings we tried and it worked, we hope it helps. Greetings from Filika/Istanbul

openframeworks version: 0.9.8 operating system: win10 openframeworks addon: https://github.com/kylemcdonald/ofxEdsdk canon sdk version: 3.5.0 (download from Canon Developer Site)

1-Move the EDSDK Folder contents inside /addons/ofxEdsdk/libs/ 2-Create new project with ProjectGenerator & include ofxEdsdk 3-In Solution Explorer Window Right Click on Project Name > Go to Properties 4-Edit ofApp.h and add #pragma comment (lib,"../../../addons/ofxEdsdk/libs/EDSDK/Library/EDSDK.lib") after #pragma once 5-Compile the project, if you get The Code Execution Error do the following copy the EDSDK.dll under /addons/ofxEdsdk/libs/EDSDK/Dll and paste to your project's bin folder