PDA

View Full Version : using cygwin gcc with Canon SDK 6.0


fhooper
5th of July 2003 (Sat), 12:46
Any one else using the cygwin gcc compiler for programs using the new Canon SDK 6.0 library?

I was able to successfully use gcc to compile and link with the CDSDK library, using the "sample" program listed in the CDSDK.pdf document. However, when I run this console-based program, which connects to the first available digital camera device, and downloads images from the camera, I run into a problem when it attempts to "cdOpenSource()".

The program runs throught the startup, and does the Rest/Next commands to identify the canon camera (an S10) correctly. However, I get a error on the next step, doing a cdOpenSource(), where it returns an error code of 0x86. Checking this error code shows a "DeviceInvalidParameter" - which is not a listed error code for this function call!. Additionally, when I print the input to this function call (a variable type "cdSourceInput"), it appears to show the correct name, camera type, etc.

At this point, I am stumped - anyone have any ideas on what to try next?

fhooper
4th of August 2003 (Mon), 10:31
Has anyone gotten Canon SDK 6.0 to work with any camera, compiler combination?

Does it work with the S10 ( I know the specs state that it works with the S10, but does anyone have direct experierence?

stopbath
2nd of December 2003 (Tue), 14:47
Sounds like (but I may well be wrong) that the library was changed, and the program was not updated also.

What parameter(s) is cdOpenSource() expecting. Perhaps a modification is needed to the existing parameter that's getting passed in (address instead of value?).

From the error message it sounds like it's doing validation on the parameter and not happy, or it can't access something.

atleypnorth
3rd of December 2003 (Wed), 02:40
yes i have the sdk 6.0 working with g5 / v3 / some of the S which i cant remember ...

for the cdOpenSource you are passing in the that was filled in by the call to cdEnumDeviceNext ?

just check that the values in there look ok ...
and then maybe check what the compiler options are for record alignment. I do use a version of gcc under windows but not for using the sdk!