raspberry:cross-platform-compile:check-architecture
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| raspberry:cross-platform-compile:check-architecture [2026/09/04 07:48] – created - external edit 127.0.0.1 | raspberry:cross-platform-compile:check-architecture [2026/09/04 07:55] (current) – oscar | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== GCC and Linux Architectures | + | ===== Check Architecture & Distribution |
| - | GCC is also used to cross compile Linux applications. Applications can be compiled for 32-bit or 64-bit Linux systems. | + | ==== Check Architecture ==== |
| - | ^Architecture^Compilers^ | + | |
| - | |32-bit|arm-linux-gnueabihf-gcc \\ arm-linux-gnueabihf-g++| | + | |
| - | |64-bit|aarch64-linux-gnu-gcc \\ aarch64-linux-gnu-g++| | + | |
| - | Check the current target architecture by logging into the Pi: | + | |
| To check if system is running a 32 (Raspberry) or 64 (X86) architecture, | To check if system is running a 32 (Raspberry) or 64 (X86) architecture, | ||
| + | < | ||
| + | # dpkg --print-architecture | ||
| + | ------------------------- | ||
| + | armhf | ||
| + | </ | ||
| < | < | ||
| # getconf LONG_BIT | # getconf LONG_BIT | ||
| ------------------ | ------------------ | ||
| 32 | 32 | ||
| + | </ | ||
| + | < | ||
| # file / | # file / | ||
| ------------------------- | ------------------------- | ||
| Line 16: | Line 18: | ||
| </ | </ | ||
| - | # dpkg --print-architecture | + | ==== Required compilers ==== |
| - | ------------------------- | + | GCC is also used to cross compile Linux applications. Applications can be compiled for 32-bit or 64-bit Linux systems. |
| - | armhf | + | ^Architecture^Compilers^ |
| + | |32-bit|arm-linux-gnueabihf-gcc \\ arm-linux-gnueabihf-g++| | ||
| + | |64-bit|aarch64-linux-gnu-gcc \\ aarch64-linux-gnu-g++| | ||
raspberry/cross-platform-compile/check-architecture.1788508100.txt.gz · Last modified: by 127.0.0.1
