Merge #7747: [docs] added depends cross compile info

3e55b3a [doc] added depends cross compile info (accraze)
This commit is contained in:
Wladimir J. van der Laan 2016-03-31 13:25:26 +02:00
commit 209dbeb05f
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
1 changed files with 23 additions and 0 deletions

View File

@ -248,3 +248,26 @@ Additional Configure Flags
A list of additional configure flags can be displayed with:
./configure --help
ARM Cross-compilation
-------------------
These steps can be performed on, for example, an Ubuntu VM. The depends system
will also work on other Linux distributions, however the commands for
installing the toolchain will be different.
First install the toolchain:
sudo apt-get install g++-arm-linux-gnueabihf
To build executables for ARM:
cd depends
make HOST=arm-linux-gnueabihf NO_QT=1
cd ..
./configure --prefix=$PWD/depends/arm-linux-gnueabihf --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++
make
For further documentation on the depends system see [README.md](../depends/README.md) in the depends directory.