kritzikratzi / edsdk4j

Canon SDK for Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't find where to put EDSDK.dll

terrymoes opened this issue · comments

Hi,

I'm trying to set up an Eclipse workspace to try your library.
I've downloaded the SDK from Canon and your library.

I've copied your library somewhere on my harddrive, and put the complete EDSDK folder I've downloaded from Canon at the root of your folder.
[...]edsdk4j-master\EDSDK\Dll

I then created a new Eclipse Workscape and imported the edsdk4j project.
Except some warnings, Eclipse is not complaining about anything.

But when I'm trying to run one of your sample, execution inevitably fails when trying to load the EDSDK dll.

I've tried copying the complete EDSDK folder in several places with no success. I've also tried copying the DLL folder from EDSDK on the root of my hard drive and changing the path to the DLL in the source code with no effect.

Could you please help me with this issue?

Many thanks!
Best greetings,
Terry

hey!

just to be sure: did you pull the latest version of the edsdk4j? i made a ton of changes yesterday

the codebase is a bit unstable at the moment, i'm doing some much needed cleanup and improvements over the next few days. there might be some more refactoring, but nothing as drastic as yesterdays commit.

your folder setup looks good. i'm still using edsdk2.9 from canon (i think 2.13 or 2.14 is the latest) and i hope that's not the problem.

there are two other possible problems:

either you're using a 64 bit jvm (always run with -d32 !!!),

or the library is really not being found. in the second case ...
in the source code look at
edsdk4j/src/edsdk/api/CanonCamera.java

first you'll want to add an e.printStackTrace() in line 133.

if that doesn't help you fix your problem maybe add your own directory in line 107, something like
if( !result ) result = loadLibrary( new File( "c:\some-folder" ) );

hope that helps.

Hi,

Thanks for your very quick answer!

I didn't pull the latest version, I downloaded the library a few weeks ago.
I'm using the canon 2.13.

But... you got it from the your first try. I was using eclipse and java
64 bits.
Just switch to 32 bits and got it to work right away. Just launched E02
and took the picture.

Many many thanks, you rule!
I'm going to download your latest version tomorrow.

Thanks again,
Terry

Le 19/04/2014 15:38, hansi raber a écrit :

hey!

just to be sure: did you pull the latest version of the edsdk4j? i
made a ton of changes yesterday

the codebase is a bit unstable at the moment, i'm doing some much
needed cleanup and improvements over the next few days. there might be
some more refactoring, but nothing as drastic as yesterdays commit.

your folder setup looks good. i'm still using edsdk2.9 from canon (i
think 2.13 or 2.14 is the latest) and i hope that's not the problem.

there are two other possible problems:

either you're using a 64 bit jvm (always run with -d32 !!!),

or the library is really not being found. in the second case ...
can you play around a bit with the library loading code? you can find
it in
edsdk4j/src/edsdk/api/CanonCamera.java

first you'll want to add an e.printStackTrace() in line 133.

if that doesn't help you fix your problem maybe add your own directory
in line 107, something like
if( !result ) result = loadLibrary( new File( "c:\some-folder" ) );

hope that helps.


Reply to this email directly or view it on GitHub
#4 (comment).

hey!

glad it's fixed. i'll be sure to mention the 32 bit restriction in the readme.

best, hansi.

Hello men, Please help, Canon site is not working to download the SDK, I registered and got a developer account but those credentials are not working , please share 2.14 SDK version, I need to set up in Eclipse and be able to take pics, not time to complete this task as I'm not getting canon sdk, please share to rajab.java5@gmail.com Thanks a ton in advance.

I'm using canon EOS 1200 D, first install EOS Utility on your windows, test your EOS Utility run or not. I'm using Live view from this utility.
And then, i clone from github https://github.com/kritzikratzi/edsdk4j
compile it using "ant", you can download it from apache ant, better if u search from google.
Find where your ant are installed, and then from command line, ant -buildfile C:\edsdk4j
If found error, Not find EDSDK or EDSDK_64 folder, skip that, check the folder C:\edsdk4j. Now you will find dist\edsdk4j-snapshot folder, u can use the edsdk.jar.
I'm use this file for my project using netbeans 8.

I try on my computer win 8 x64, I've install jdk 7 32 bit. Try to make simple project from netbeans, with jdk 7 32 bit as your sdk. Build it, u can test the code from sample from github. After u build your project from netbeans, find dist folder, find lib folder and create EDSDK/Dll folder inside it.
Copy EDSDK.dll and the other dll from eos canon utility installed. My .dll stored in folder C:\Program Files (x86)\Canon\EOS Utility\EU2

Note. My github clone for edsdk4j stored in C:\edsdk4j

Sory my english not good. I try it, and working well.