path: root/README.cross
diff options
authorTor Lillqvist <>2014-01-20 15:01:25 +0200
committerTor Lillqvist <>2014-01-20 15:01:45 +0200
commit78a61583c266a1fd222cd78c912e35e93f7010d3 (patch)
tree6863e8a2d1c3066126bf7f137e41ac0802f0aa42 /README.cross
parent6e08873d98add4375d9d72057b9226d3bbc272fe (diff)
Minor update for Raspbian
Change-Id: I5208aa7e6f40acc6d18a0617dc104474e1e87870
Diffstat (limited to 'README.cross')
1 files changed, 17 insertions, 9 deletions
diff --git a/README.cross b/README.cross
index 2d133ebe3551..6cbea22c7776 100644
--- a/README.cross
+++ b/README.cross
@@ -386,28 +386,36 @@ Raspbian
In theory, this should work also for another Linux, it does not need to be Raspbian.
But this cross-compilation work is tested from Debian based system to Raspbian.
-You will need Raspbian's pkg-config files and system libraries to build against.
-Available at
-$ wget
-$ tar -xf raspbian_rootfs.tar.bz2
+You will need headers, pkg-config files and libraries from a Raspbian
+system to build against. Available at
+ . Look for the latest
+raspbian-root-*.tar.gz . For instance:
+$ wget
+$ mkdir raspbian-root
+$ cd raspbian-root
+$ tar -xf raspbian-root-20140120.tar.gz
You can build cross-compiler yourself or get the executables here:
$ git clone git://
tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian is known to work.
Then create pkg-config wrapper, something like:
$ cat > pkg-config-wrapper-host << _EOF
-export PKG_CONFIG_LIBDIR=\${SYSROOT}/usr/lib/pkgconfig:\${SYSROOT}/usr/lib/arm-linux-gnueabihf/pkgconfig:\${SYSROOT}/usr/share/pkgconfig
+if [ "$CROSS_COMPILING" = YES ]; then
+ SYSROOT=$HOME/lo/raspbian-root
+ export PKG_CONFIG_PATH=${SYSROOT}/usr/lib/arm-linux-gnueabihf/pkgconfig:${SYSROOT}/usr/share/pkgconfig
+ export PKG_CONFIG_LIBDIR=${SYSROOT}/usr/lib/pkgconfig
exec pkg-config "\$@"
$ chmod +x pkg-config-wrapper-host
This does not work with pkg-config 0.23. 0.26 is known to work.
And you are ready to build with autogen.input similar to: