diff options
author | Hans Ulrich Niedermann <gp@n-dimensional.de> | 2007-09-03 10:16:24 +0000 |
---|---|---|
committer | Hans Ulrich Niedermann <gp@n-dimensional.de> | 2007-09-03 10:16:24 +0000 |
commit | a6cecb5c7fc5bea428e6f347b8edca794b5d0891 (patch) | |
tree | 54dcc96cf4fe1f573ddd2a58d4c5ea20d092beda | |
parent | 29cfd0fe9e027b498970ea3356f018d42e91e19a (diff) | |
download | libgphoto2-a6cecb5c7fc5bea428e6f347b8edca794b5d0891.tar.gz |
reformat/improve compile/install docs
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10627 67ed7778-7388-44ab-90cf-0a291f65f57c
-rw-r--r-- | INSTALL | 35 | ||||
-rw-r--r-- | camlibs/Makefile.am | 8 |
2 files changed, 21 insertions, 22 deletions
@@ -1,5 +1,5 @@ ######################################################################## -# This file describes how to install libgphoto2. +# This file describes how to compile and install libgphoto2. ######################################################################## Follow these steps to build and install libgphoto2 from the source @@ -48,20 +48,10 @@ We recommend you call autoreconf like this: Step 1: Configure the sources ============================= -Now run either one of - - - ./configure --prefix=/usr/local + $ ./configure --prefix=/usr/local to prepare a tarball source tree for installation in (e.g.) /usr/local - - ./configure --prefix=/home/me/root --with-drivers=ptp2,canon - - to prepare a tarball source tree for installation in - /home/me/root and for compilation only of the drivers - for PTP and Canon cameras. - or run ./configure --help in order to find out about more configuration parameters. @@ -97,12 +87,16 @@ will have to run "gmake" or something similar. The classic way to compile the program is just to run - make + $ make or - make -jN (if you have N CPU cores) + $ make -jN (if you have N CPU cores) and wait until the source is built. +If you want to compile only one or two specific camlibs, run something like + + $ make -C camlibs canon.la ptp2.la + ============================== Step 3: Installing the program @@ -111,7 +105,7 @@ Step 3: Installing the program To install the stuff you just compiled by running "make", you can just run - make install + $ make install now. If installing to a directory which is not writable by your current user, you will have to run it as root. @@ -119,6 +113,10 @@ current user, you will have to run it as root. This installs the software and documentation into the proper directories on your system. +If you want to install only one or two specific camlibs, run something like + + $ make -C camlibs CAMLIBS="canon.la ptp2.la" install-camlibs + ==================================================== Step 4: Installation is finished - now what do I do? @@ -161,9 +159,10 @@ General Hints: configure with the --without-usb flag. - If 'make' reports an error, try using GNU make (often called gmake or gnumake) instead of the make that comes with your system. - - If one camera driver has compilation errors, re-run configure with - an appropriate --with-drivers= flag to prevent that driver from - being compiled. + - If one camera driver (camlib) has compilation errors, re-run + configure with an appropriate --with-camlibs= flag to prevent that + specific camlib from being compiled. + The list of working systems is a little outdated as of 2002-11-20, but we have still left it here as a reference. diff --git a/camlibs/Makefile.am b/camlibs/Makefile.am index 6b097d130..a8f8dfc83 100644 --- a/camlibs/Makefile.am +++ b/camlibs/Makefile.am @@ -143,11 +143,11 @@ all-local: Makefile ######################################################################## -# Shortcut for installation of a subset of camlibs/drivers -# Usage: make DRIVER="canon.la ptp2.la" install-drivers +# Shortcut for installation of a subset of camlibs +# Usage: make CAMLIBS="canon.la ptp2.la" install-camlibs -install-drivers: - $(MAKE) BUILD_THESE_CAMLIBS="$(DRIVERS)" install-camlibLTLIBRARIES +install-camlibs: + $(MAKE) BUILD_THESE_CAMLIBS="$(CAMLIBS)" install-camlibLTLIBRARIES ######################################################################## |