kylemcdonald / ofxEdsdk

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

Can't run a basic example on OSx #49

Open Javingka opened 7 years ago

Javingka commented 7 years ago

Hi guys,

I am trying to run a basic example using Cannon 5D Mark II

I made a new project using the ProjectGenerator, including the ofxEdsdk addon.

My ofApp.h file looks like this:

#pragma once

#include "ofMain.h"
#include "ofxEdsdk.h"

class ofApp : public ofBaseApp{

public:
void setup();
void update();
void draw();

ofxEdsdk::Camera camera;

void keyPressed(int key);
void keyReleased(int key);
void mouseMoved(int x, int y );
void mouseDragged(int x, int y, int button);
void mousePressed(int x, int y, int button);
void mouseReleased(int x, int y, int button);
void mouseEntered(int x, int y);
void mouseExited(int x, int y);
void windowResized(int w, int h);
void dragEvent(ofDragInfo dragInfo);
void gotMessage(ofMessage msg);

};

When I run this code gives this errors:

screen shot 2017-03-12 at 1 24 47 pm

Do you have any clue of what could be happening here?

The versions I am using are this: Openframework v 0.9.8 OSx El Capitan 10.11.4 beta EDSDK version 3.4.20.5, Copyright 2016 Canon Inc.

karolsenami commented 7 years ago

I had the same problem. Are you sure you're using the EDSK v3.04 Mac Version ? I only tried it with of0.9.2 yet.

Here's how it should look : image

dimitre commented 7 years ago

In fact I think the step 6 in project description should read

Copy the EDSDK folder into this directory: OF > addons > ofEdsdk > libs

instead of

Copy the EDSDK folder into this directory: OF > addons > ofEdsdk > src

seems to compile fine using v0305 here

Javingka commented 7 years ago

Thanks @karolsenami. Actually I had the EDSDK folder inside /src. So I deleted from there and it solved the issue!.

@dimitre you are right, that would help.