aboutsummaryrefslogtreecommitdiffstats
path: root/INSTALL
blob: e28a6a5678509feae37c50124b08bd3f1c82fe66 (plain)
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
45
46
47
48
49
50
Requirements:
-------------
* make and a C and C++ compiler
* optionally libjpeg v6 or later
* optionally Qt4 for building qv4l2

Building:
---------

If you checked out the source repository you need to install the autotools
environment first. Then type "autoreconf -vfi" to generate the configure
script.

Then execute "configure" with any desired options. You can get a summary via
the --help option.
After configuration simply type "make" to start the build process.

Installing:
-----------

To install do "make install". The configured paths will be used.

Note that v4l-utils' "make install" supports DESTDIR for installing into
a build root for example:
make install DESTDIR=/mnt/sysimage

Cross Compiling:
----------------

Cross compiling has been tested with the Code Sourcery and Linaro ARM Linux
toolchain.

Currently it is necessary to disable the generation of shared libraries.
Othewise linking against libv4l2 might fail due to missing libv4lconvert
symbols (due to a failure to find libv4lconvert).

To cross compile with the Code Sourcery toolchain run the following commands:

export PATH=/opt/arm-2009q3/bin:$PATH
export PKG_CONFIG_LIBDIR=/path/to/cross/root/lib
./configure --host=arm-none-linux-gnueabi --without-jpeg --disable-shared
make

To cross compile with the Linaro toolchain run the following commands:

export PATH=/opt/gcc-linaro-arm-linux-gnueabihf-2012.09-20120921_linux/bin:$PATH
export PKG_CONFIG_LIBDIR=/path/to/cross/root/lib
./configure --host=arm-linux-gnueabihf --without-jpeg --disable-shared
make

Privacy Policy