Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run a basic example on OSx #49

Open
Javingka opened this issue Mar 12, 2017 · 3 comments
Open

Can't run a basic example on OSx #49

Javingka opened this issue Mar 12, 2017 · 3 comments

Comments

@Javingka
Copy link

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
Copy link

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.

  • Add it in ofxEdsk/libs (merge it so it doesn't erase the include folder, plus be sure not to add it in the src folder).
  • Using the projectGenerator, update the example project.

Here's how it should look :
image

@dimitre
Copy link

dimitre commented May 2, 2017

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
Copy link
Author

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.

Javingka pushed a commit to Javingka/ofxEdsdk that referenced this issue Sep 14, 2017
As happened on issue kylemcdonald#49. the EDSDK shouldn't be copied to lib instead of src?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants