ARM crosscompile

Revision as of 13:05, 12 July 2017 by Xemul (talk | contribs) (Moved)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

If you are cross compiling for ARM, use distribution packages or download prebuilt toolchains from Linaro.

 sudo apt-get install lib32stdc++6 lib32z1 # These are ia32 binaries
 mkdir -p deps/`uname -m`-linux-gnu
 cd deps
 wget http://releases.linaro.org/14.09/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.xz
 tar --strip=1 -C `uname -m`-linux-gnu -xf gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.xz
 wget http://releases.linaro.org/14.09/components/toolchain/binaries/gcc-linaro-aarch64-linux-gnu-4.9-2014.09_linux.tar.xz
 tar --strip=1 -C `uname -m`-linux-gnu -xf gcc-linaro-aarch64-linux-gnu-4.9-2014.09_linux.tar.xz
 cd ..