I'm looking for a x86-64 linux distribution that can be used to cross compile Raspberry Pi applications. It needs to be able to use all the libraries supporting the rPi, such as wxWidgets and GTK. I can do little test cases with cross compiler tools, but just setting a dpkg foreign architecture of armhf doesn't do everything that's required. Ssetting the package repo's to those used in the target Raspbian environment doesn't appear to allow "apt-get install wxwidgets" or similar operations.
It seems as though an environment like this should be popular since compiling bigger applications is so slow compiling natively.
You can build your own cross-toolchain or take a pre-made one, for example one from Linaro:releases.linaro.org/.../
In the Debian and Ubuntu repositories you can find pre-made cross-toolchains as well.
Hi Chris,Here an example for debian stretchhttps://packages.debian.org/stretch/linux-headers-4.9.0-3-all-armhfRegards
For GCC 8.x cross-comopiers onwards please go to Arm Developer site here:https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-a/downloads
Please note that from GCC 8 onwards Arm will take over cross-compiler toolchain releases from Linaro.
kind regardsPrzemyslaw Wirkus
View all questions in GNU Toolchain forum