path: root/INSTALL
diff options
authorGregor Jasny <gjasny@googlemail.com>2012-09-30 19:35:00 +0200
committerGregor Jasny <gjasny@googlemail.com>2012-09-30 19:35:00 +0200
commit47904733268ddace7c1ae8f3a283fcc746922695 (patch)
tree202dd7ed706ccea9f089838612017d0428f25f34 /INSTALL
parentc7ffd22dd0a4e76f144f9c64bb761fb5b89bbc13 (diff)
Add basic cross compiling instructions
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Diffstat (limited to 'INSTALL')
1 files changed, 25 insertions, 0 deletions
diff --git a/INSTALL b/INSTALL
index c7a8685c..e28a6a56 100644
@@ -23,3 +23,28 @@ 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
+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
+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

Privacy Policy