Thank you very much. This could hardly have been easier for ptpcam. I downloaded from github into /usr/src/ptpcam:
git clone https://github.com/jrabbit/libptp-chdk.git
I had already downloaded into /usr/src/chdkptp with svn from /usr/src:
svn co http://subversion.assembla.com/svn/chdkptp/trunk chdkptp
I copied ptp.h into both /usr/src/ptpcam and /usr/src/chdkptp with:
wget http://trac.assembla.com/chdk/browser/branches/release-1_0/core/ptp.h?format=txt
I copied /usr/src/chdkptp/config-sample-linux.mk to config.mk in /usr/src/ptpcam
In /usr/src/ptpcam, I ran "make". This resulted in a ptpcam executable.
I copied it to /usr/bin, plugged in and turned on the camera (an A590is), and did the following:
mode 1
lua set_zoom(3)
lua shoot()
mode 0
download A/DCIM/133CANON/IMG_7429.JPG IMG_7429.JPG
This worked. Now I can use my dockstar to take photos remotely. Congratulations and thanks to everyone involved.
I have not been successful yet with chdkptp, but I think I'm close. I copied ptp.h into /usr/src/chdkptp/core and ran make. This is the output. Something simple is missing, I think, maybe a ".h" file, but I don't know what it is.
make[1]: Entering directory `/usr/src/chdkptp/lfs'
make[1]: Leaving directory `/usr/src/chdkptp/lfs'
gcc -MMD -DCHDKPTP_OSTYPE=\"Linux\" -g -I/usr/include/lua5.1 -I/usr/src/chdkptp -c -o ptp.o ptp.c
ptp.c: In function 'ptp_chdk_get_memory':
ptp.c:1650: error: 'PTP_OC_CHDK' undeclared (first use in this function)
ptp.c:1650: error: (Each undeclared identifier is reported only once
ptp.c:1650: error: for each function it appears in.)
ptp.c:1652: error: 'PTP_CHDK_GetMemory' undeclared (first use in this function)
ptp.c: In function 'ptp_chdk_set_memory_long':
ptp.c:1672: error: 'PTP_OC_CHDK' undeclared (first use in this function)
ptp.c:1674: error: 'PTP_CHDK_SetMemory' undeclared (first use in this function)
ptp.c: In function 'ptp_chdk_call':
ptp.c:1692: error: 'PTP_OC_CHDK' undeclared (first use in this function)
ptp.c:1694: error: 'PTP_CHDK_CallFunction' undeclared (first use in this function)
ptp.c: In function 'ptp_chdk_upload':
ptp.c:1717: error: 'PTP_OC_CHDK' undeclared (first use in this function)
ptp.c:1719: error: 'PTP_CHDK_UploadFile' undeclared (first use in this function)
ptp.c: In function 'ptp_chdk_download':
ptp.c:1761: error: 'PTP_OC_CHDK' undeclared (first use in this function)
ptp.c:1763: error: 'PTP_CHDK_TempData' undeclared (first use in this function)
ptp.c:1775: error: 'PTP_CHDK_DownloadFile' undeclared (first use in this function)
ptp.c: In function 'ptp_chdk_exec_lua':
ptp.c:1806: error: 'PTP_OC_CHDK' undeclared (first use in this function)
ptp.c:1808: error: 'PTP_CHDK_ExecuteScript' undeclared (first use in this function)
ptp.c:1809: error: 'PTP_CHDK_SL_LUA' undeclared (first use in this function)
ptp.c:1821: error: 'PTP_CHDK_S_ERRTYPE_NONE' undeclared (first use in this function)
ptp.c: In function 'ptp_chdk_get_version':
ptp.c:1830: error: 'PTP_OC_CHDK' undeclared (first use in this function)
ptp.c:1832: error: 'PTP_CHDK_Version' undeclared (first use in this function)
ptp.c: In function 'ptp_chdk_get_script_status':
ptp.c:1849: error: 'PTP_OC_CHDK' undeclared (first use in this function)
ptp.c:1851: error: 'PTP_CHDK_ScriptStatus' undeclared (first use in this function)
ptp.c: In function 'ptp_chdk_get_script_support':
ptp.c:1867: error: 'PTP_OC_CHDK' undeclared (first use in this function)
ptp.c:1869: error: 'PTP_CHDK_ScriptSupport' undeclared (first use in this function)
ptp.c: In function 'ptp_chdk_write_script_msg':
ptp.c:1891: error: 'PTP_OC_CHDK' undeclared (first use in this function)
ptp.c:1893: error: 'PTP_CHDK_WriteScriptMsg' undeclared (first use in this function)
ptp.c: In function 'ptp_chdk_read_script_msg':
ptp.c:1912: error: 'PTP_OC_CHDK' undeclared (first use in this function)
ptp.c:1914: error: 'PTP_CHDK_ReadScriptMsg' undeclared (first use in this function)
make: *** [ptp.o] Error 1