aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2012-10-07 18:53:52 +0200
committerGregor Jasny <gjasny@googlemail.com>2012-10-07 18:53:52 +0200
commitd09be1eba6598941078ad7be6748daa610d7ae4c (patch)
treef95e459f1e0e869a80c8dd7b88f1c557c5f37791
parent89e07437f4fcdf4eb5d16b471217795951f21994 (diff)
buildsystem: Easse cross compiling on Debian derivates
Debian based libtool packages suffer from a cross compiling problem where the rpaths are not picked up properly. See: - https://bugs.lttng.org/issues/321 - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=297726 Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
-rw-r--r--INSTALL8
-rw-r--r--contrib/test/Makefile.am2
-rw-r--r--utils/rds-ctl/Makefile.am2
-rw-r--r--utils/v4l2-compliance/Makefile.am2
-rw-r--r--utils/v4l2-ctl/Makefile.am2
5 files changed, 6 insertions, 10 deletions
diff --git a/INSTALL b/INSTALL
index e28a6a56..bc92d7e0 100644
--- a/INSTALL
+++ b/INSTALL
@@ -30,21 +30,17 @@ 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
+./configure --host=arm-none-linux-gnueabi --without-jpeg
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
+./configure --host=arm-linux-gnueabihf --without-jpeg
make
diff --git a/contrib/test/Makefile.am b/contrib/test/Makefile.am
index ce1ba22f..768e9855 100644
--- a/contrib/test/Makefile.am
+++ b/contrib/test/Makefile.am
@@ -21,7 +21,7 @@ pixfmt_test_CFLAGS = $(X11_CFLAGS)
pixfmt_test_LDFLAGS = $(X11_LIBS)
v4l2grab_SOURCES = v4l2grab.c
-v4l2grab_LDADD = ../../lib/libv4l2/libv4l2.la
+v4l2grab_LDADD = ../../lib/libv4l2/libv4l2.la ../../lib/libv4lconvert/libv4lconvert.la
ioctl_test_SOURCES = ioctl-test.c
diff --git a/utils/rds-ctl/Makefile.am b/utils/rds-ctl/Makefile.am
index 9a84257b..df546ad4 100644
--- a/utils/rds-ctl/Makefile.am
+++ b/utils/rds-ctl/Makefile.am
@@ -1,5 +1,5 @@
bin_PROGRAMS = rds-ctl
rds_ctl_SOURCES = rds-ctl.cpp
-rds_ctl_LDADD = ../../lib/libv4l2/libv4l2.la ../../lib/libv4l2rds/libv4l2rds.la
+rds_ctl_LDADD = ../../lib/libv4l2/libv4l2.la ../../lib/libv4lconvert/libv4lconvert.la ../../lib/libv4l2rds/libv4l2rds.la
diff --git a/utils/v4l2-compliance/Makefile.am b/utils/v4l2-compliance/Makefile.am
index 8bcc480b..7b479fbd 100644
--- a/utils/v4l2-compliance/Makefile.am
+++ b/utils/v4l2-compliance/Makefile.am
@@ -2,6 +2,6 @@ bin_PROGRAMS = v4l2-compliance
v4l2_compliance_SOURCES = v4l2-compliance.cpp v4l2-test-debug.cpp v4l2-test-input-output.cpp \
v4l2-test-controls.cpp v4l2-test-io-config.cpp v4l2-test-formats.cpp v4l2-test-buffers.cpp \
v4l2-test-codecs.cpp v4l2-compliance.h
-v4l2_compliance_LDADD = ../../lib/libv4l2/libv4l2.la
+v4l2_compliance_LDADD = ../../lib/libv4l2/libv4l2.la ../../lib/libv4lconvert/libv4lconvert.la
EXTRA_DIST = fixme.txt
diff --git a/utils/v4l2-ctl/Makefile.am b/utils/v4l2-ctl/Makefile.am
index a8681772..bfcb6fe1 100644
--- a/utils/v4l2-ctl/Makefile.am
+++ b/utils/v4l2-ctl/Makefile.am
@@ -9,4 +9,4 @@ v4l2_ctl_SOURCES = v4l2-ctl.cpp v4l2-ctl.h v4l2-ctl-common.cpp v4l2-ctl-tuner.cp
v4l2-ctl-io.cpp v4l2-ctl-stds.cpp v4l2-ctl-vidcap.cpp v4l2-ctl-vidout.cpp \
v4l2-ctl-overlay.cpp v4l2-ctl-vbi.cpp v4l2-ctl-selection.cpp v4l2-ctl-misc.cpp \
v4l2-ctl-streaming.cpp
-v4l2_ctl_LDADD = ../../lib/libv4l2/libv4l2.la
+v4l2_ctl_LDADD = ../../lib/libv4l2/libv4l2.la ../../lib/libv4lconvert/libv4lconvert.la

Privacy Policy