~ubuntu-branches/ubuntu/saucy/libgphoto2/saucy-proposed

« back to all changes in this revision

Viewing changes to INSTALL

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-07-31 07:00:09 UTC
  • mfrom: (1.4.4)
  • Revision ID: package-import@ubuntu.com-20130731070009-enrbvg3hry64cxl1
Tags: 2.5.2-0ubuntu1
* New upstream release.
* Drop 01-increase_max_entries.patch, 02-libusbx_no_debug.patch,
  03-libusbx-fixes.patch: fixed upstream.
* Add libxml2-dev build dependency for new optional features.
* ABI changes: libgphoto2-2 → libgphoto2-6,
  libgphoto2-port0 → libgphoto2-port10
* debian/libgphoto2-dev-doc.install: Adjust to changed HTML API doc folder
  name.
* debian/libgphoto2-port10.install: Adjust for changed libgphoto-port ABI.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
########################################################################
2
 
# This file describes how to install libgphoto2.
 
2
# This file describes how to compile and install libgphoto2.
3
3
########################################################################
4
4
 
5
5
Follow these steps to build and install libgphoto2 from the source
48
48
Step 1: Configure the sources
49
49
=============================
50
50
 
51
 
Now run either one of
52
 
 
53
 
 
54
 
  ./configure --prefix=/usr/local
 
51
  $ ./configure --prefix=/usr/local
55
52
 
56
53
     to prepare a tarball source tree for installation in (e.g.) /usr/local
57
54
 
58
 
 
59
 
  ./configure --prefix=/home/me/root --with-drivers=ptp2,canon
60
 
 
61
 
       to prepare a tarball source tree for installation in
62
 
       /home/me/root and for compilation only of the drivers 
63
 
       for PTP and Canon cameras.
64
 
 
65
55
or run ./configure --help in order to find out about more
66
56
configuration parameters.
67
57
 
97
87
 
98
88
The classic way to compile the program is just to run
99
89
 
100
 
    make
 
90
    $ make
101
91
 or
102
 
    make -jN    (if you have N CPU cores)
 
92
    $ make -jN    (if you have N CPU cores)
103
93
 
104
94
and wait until the source is built.
105
95
 
 
96
If you want to compile only one or two specific camlibs, run something like
 
97
 
 
98
    $ make -C camlibs canon.la ptp2.la
 
99
 
106
100
 
107
101
==============================
108
102
Step 3: Installing the program
111
105
To install the stuff you just compiled by running "make", you can just
112
106
run 
113
107
 
114
 
   make install
 
108
    $ make install
115
109
 
116
110
now. If installing to a directory which is not writable by your
117
111
current user, you will have to run it as root.
119
113
This installs the software and documentation into the proper
120
114
directories on your system.
121
115
 
 
116
If you want to install only one or two specific camlibs, run something like
 
117
 
 
118
    $ make CAMLIBS="canon.la ptp2.la" install-camlibs
 
119
 
122
120
 
123
121
====================================================
124
122
Step 4: Installation is finished - now what do I do?
161
159
    configure with the --without-usb flag.  
162
160
  - If 'make' reports an error, try using GNU make (often called gmake
163
161
    or gnumake) instead of the make that comes with your system.
164
 
  - If one camera driver has compilation errors, re-run configure with
165
 
    an appropriate --with-drivers= flag to prevent that driver from
166
 
    being compiled.
 
162
  - If one camera driver (camlib) has compilation errors, re-run
 
163
    configure with an appropriate --with-camlibs= flag to prevent that
 
164
    specific camlib from being compiled.
 
165
 
167
166
 
168
167
The list of working systems is a little outdated as of 2002-11-20, but
169
168
we have still left it here as a reference.