kritzikratzi / edsdk4j

Canon SDK for Java
Other
109 stars 33 forks source link

Cannot find CanonUtils.class [from Oliver Ellmers] #18

Closed kritzikratzi closed 9 years ago

kritzikratzi commented 9 years ago

Oliver Elmers: [quote] I am currently building an application with your edsdk library for processing, where I need control over a 5D MK2 EOS camera.

The example sketches and my own sketch cannot find the edsdk.utils.CanonConstants class.

I was wondering if either of you two would be able to shine some light on my situation.

All the best! [/quote]

kritzikratzi commented 9 years ago

hey! can you please describe a bit more about what you are trying to do, how you set up your classpath and what exact error you are getting?

oliverellmers commented 9 years ago

Hey there!

Thanks for the response.

I am trying to control the EOS cameras features such as deleting after download, setting image directory, focussing, color spaces etc via processing. But the utils.canonConstants library cannot be found.

Is this enough information?

library path: D:\Working Directories\Development\Processing Sketchbook\libraries\edsdk\library\ libpath

canon utils path: D:\Working Directories\Development\Processing Sketchbook\libraries\edsdk\src\edsdk\utils\CanonConstants.java canonconstantspath

Error: The function setDeleteJpegAfterDownload(boolean) does not exist No library found for edsdk.utils.CanonConstants error

Best,

O.

kritzikratzi commented 9 years ago

aaah, this is about the processing version. is it possible you've simply forgotten to import the library?

can you try using the sketch menu, from there select import library >> edsdk

oliverellmers commented 9 years ago

The library has definitely been imported correctly, as I am successfully taking photographs with the edsdk. It is only the utile.canonconstants class / library that cannot be found - the import lines of text are at the top of the sketch, you cannot see them in the above screen shot.

When I comment out the functions that require the canonconstants lib, I am able to take photographs fine. I just cannot set image directories, or delete after shooting etc.

O.

kritzikratzi commented 9 years ago

hm... maybe i made an error when exporting the library. not sure i have time today, but i'll take a look, latest tomorrow !

oliverellmers commented 9 years ago

awesome thanks a bunch for that, really appreciate your help :)

kritzikratzi commented 9 years ago

hey!

http://asdfg.me/up/edsdk-processing/snippets/index.html

There was an error in the documentation, the command is setDeleteJpgAfterDownload (Jpg, not Jpeg). I've fixed it. Can you try again?

oliverellmers commented 9 years ago

AHA! It seems to be working now! Thank you for your help!

I am still however receiving the "No library found for edsdk.utils.CanonConstants " error, although everything is working fine now..

kritzikratzi commented 9 years ago

yep, was a known bug when using import static. see https://github.com/processing/processing/issues/8

but i'm not sure if the fix is in the latest processing 2.x series, or if you have to wait for processing 3.