Sunday, April 3, 2011

Fedora/ARM Cross Toolchain - Cross-compiling for ARM

Hello,
These are quick instructions to install Fedora/ARM cross toolchain in your computer if your computer has i386 or x86_64 architecture. So, after installation, you are able to cross compile your source code for ARM architeture in your i386 or x86_64 computer. These are the commands you should run:

# cd /etc/yum.repos.d/
# wget http://ftp.linux.org.uk/pub/linux/arm/fedora/cross/cross.repo
# yum install armv5tel-redhat-linux-gnueabi-gcc
This will install everything necessary to run the C compiler and  cross-build ARM libraries and binaries that are entirely binary  compatible with the native Fedora/ARM libraries and binaries.

Regards,
Khosro Taraghi

2 comments:

  1. how make instead (opposite) on arm linux x86_64 toolchain? thanks in advance

    ReplyDelete
  2. I am using fedora 13.Always when i try to install anything using yum it shows "Error: Cannot retrieve repository metadata (repomd.xml) for repository: cross. Please verify its path and try again".can anybody tell reason and solution for this...?

    ReplyDelete