-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathINSTALL
44 lines (31 loc) · 1.47 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Compiling and installing from git clone
=======================================
If you are starting with a git clone of libgphoto2-python, you will
need a number of tools to initialize the build system:
* autoconf
* automake
* libtool
Then you can run "autoreconf -is" in the top-level libgphoto2-python
directory, and after autoreconf is finished, you will have almost the
same files a released source tarball has.
If starting from an git clone and you intend to use the "python
setup.py" installation mechanism described below, you need to run
"./configure" once to create the setup.py script.
Compiling and installing from a released source tarball
=======================================================
Compiling and installing also requires a number of tools:
* Python
* Pyrex
* C compiler
For simple cases where you don't need any special compile options, you
want to use the system's default libgphoto2 installation and you can
afford to install into the system's standard Python site-packages
directory, compiling and installing is as easy as:
$ python setup.py build
$ sudo python setup.py install
For more complicated build cases or out of source tree builds, you can
use the "configure" mechanism with all the options it offers:
$ ./configure --prefix=... PYREXC=... LIBGPHOTO2_CFLAGS=... LIBGPHOTO2_LIBS=...
$ make
$ make install # possibly as root, depending on the prefix
For more details on the available options, run "./configure --help".