This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| development:toolchain [2018/01/10 12:29] – [Example: Compile a program from Source] preisig | development:toolchain [2021/08/04 09:20] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== Toolchain ===== | ===== Toolchain ===== | ||
| However, if for some reasons you want or have to cross-compile a C application, | However, if for some reasons you want or have to cross-compile a C application, | ||
| - | [[ftp:// | + | [[https:// |
| The toolchains consists of a compiler ([[https:// | The toolchains consists of a compiler ([[https:// | ||
| a assembler and linker ([[https:// | a assembler and linker ([[https:// | ||
| Line 11: | Line 11: | ||
| The following Cross-Compilation toolchains are available: | The following Cross-Compilation toolchains are available: | ||
| - | * [[ftp:// | + | * [[https:// |
| - | * [[ftp:// | + | * [[https:// |
| - | * [[ftp:// | + | * [[https:// |
| Line 23: | Line 23: | ||
| 1. Download and install the corresponding toolchain from above on your Linux x86 PC | 1. Download and install the corresponding toolchain from above on your Linux x86 PC | ||
| <code bash> | <code bash> | ||
| - | wget ftp:// | + | wget https:// |
| tar -xvf toolchain-ppc-4.4.5-x86_64.tar.bz2 -C /opt | tar -xvf toolchain-ppc-4.4.5-x86_64.tar.bz2 -C /opt | ||
| export PATH=$PATH:/ | export PATH=$PATH:/ | ||
| Line 51: | Line 51: | ||
| 3. Compile it | 3. Compile it | ||
| - | __Power PC:__ | + | __PowerPC:__ |
| <code bash> | <code bash> | ||
| powerpc-openwrt-linux-gcc -Wall hello.c -o hello | powerpc-openwrt-linux-gcc -Wall hello.c -o hello | ||
| Line 94: | Line 94: | ||
| ===== Oracle Virtual Box Image ===== | ===== Oracle Virtual Box Image ===== | ||
| - | For small projects or if you don't have a Linux environement you can also use the very small [[ftp:// | + | For small projects or if you don't have a Linux environement you can also use the very small [[https:// |