source: trunk/README @ 80

Revision 80, 3.4 KB checked in by reyalp, 18 months ago (diff)

add a simple script for making binary releases, re-organize acknowledgments for 3rd party packages

  • Property svn:eol-style set to native
Line 
1=Introduction=
2chdkptp is a tool to access the custom PTP extension of the CHDK firmware addon for canon
3cameras.
4
5This is an alpha version - protocol, functionality, APIs, commands, command line options
6are all subject to change.
7
8chdkptp source is available from http://subversion.assembla.com/svn/chdkptp/
9Roadmap is under development in http://www.assembla.com/spaces/chdkptp/tickets
10
11For information about CHDK, see http://chdk.wikia.com/wiki/CHDK
12For information about the CHDK PTP extension, see http://chdk.wikia.com/wiki/PTP_Extension
13
14chdkptp is forked from libptp and ptpcam, as modified by mweerden, the chdkde project developers
15and others. All source is released under GPL or MIT licenses
16
17The original ptpcam source, written by Mariusz Woloszyn < emsi[A@T]ipartners.pl >
18is available from http://libptp.sourceforge.net/
19
20mweerdens modified version can be found at https://github.com/mweerden/CHDK/tree/ptp
21
22the CHDKDE ptpcam source may be found at http://tools.assembla.com/chdkde/browser/trunk/tools/ptpcam
23
24chdkptp includes software from several other projects, see THANKS.TXT for details.
25
26=Dependencies=
27- IUP version 3.4 http://www.tecgraf.puc-rio.br/iup/ (earlier 3.x versions may also work)
28  Optional, edit makefile to build without iup gui support
29- Lua version 5.1 http://www.lua.org/
30- LibUSB (libusb-win32 on windows)
31- CHDK source for PTP protocol header http://tools.assembla.com/chdk/browser/trunk
32
33=Windows development environment=
34Mingw with gcc 4.5+ is the primary development environment.
35All instructions below assume you are using this.
36Using a mingw bash shell for development is suggested.
37
38==Installing mingw==
39http://www.mingw.org/
40Download the gui installer. Install at least mingw C compiler. Msys is suggested, and may be required
41E.g. http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/mingw-get-inst/mingw-get-inst-20101030/
42
43==Installing IUP libraries==
44Get the mingw4 binary package of IUP,
45http://sourceforge.net/projects/iup/files/3.3/Windows%20Libraries/
46file iup-3.3_Win32_mingw4_lib.zip
47
48Note, this package has the libraries in the root, with etc/ and include/ subdirectories.
49You may want to put the libraries in /lib to match the IUP recommended filesystem layout
50The examples and win32 binaries are not required, but may be helpful
51
52==Installing and building Lua==
53Get the lua 5.1.4 source from http://www.lua.org/download.html
54In a msys shell, go to the lua directory and type
55make mingw
56make local
57
58==Installing LibUSB development package==
59TODO
60describe filter driver installation
61http://sourceforge.net/projects/libusb-win32/files/libusb-win32-releases/1.2.2.0/
62libusb-win32-bin-1.2.2.0.zip
63Unzip somewhere convenient
64or is it libusb-win32-devel-filter-1.2.2.0.exe ?
65
66=Linux development environment=
67The following is based on Ubuntu 10.04, 64 bit. YMMV
68Install the following packages and any required dependencies
69libusb-1.0-0
70libusb-dev (may be called libusb-1.0-dev ?)
71liblua5.1-0-dev
72liblua5.1-0
73
74IUP - using precompiled binaries
75Download the appropriate IUP library for your platform from
76http://www.tecgraf.puc-rio.br/iup/
77unpack the package
78adjust the IUP_LIB_DIR and IUP_INCLUDE_DIR in config.mk
79
80You will also need a fully working gcc environment.
81
82=Configuring the source (all platforms)=
83Edit config.mk to reflect the installation directories of the above packages
84See config-sample-*.mk for examples
85
86=Building=
87make
88
89=Running=
90See USAGE.TXT
Note: See TracBrowser for help on using the repository browser.